分类:
2015-05-19 14:55:47
为了监控SNMP状态和排除SNMP配置中的一些故障,我司产品提供了SNMP的监控指令,可以方便的查看当前网络设备的SNMP的状态,在特权用户模式下,执行show snmp来查看当前的SNMP状态。
Ruijie# show snmp
Chassis: 1234567890 0987654321
Contact: wugb@i-net.com.cn
Location:
2381 SNMP packets input
5 Bad SNMP version errors
6 Unknown community name
0 Illegal operation for community name supplied
0 Encoding errors
9325 Number of requested variables
0 Number of altered variables
31 Get-request PDUs
2339 Get-next PDUs
0 Set-request PDUs
2406 SNMP packets output
0 Too big errors (Maximum packet size 1500)
4 No such name errors
0 Bad values errors
0 General errors
2370 Get-response PDUs
36 SNMP trap PDUs
SNMP global trap: disabled
SNMP logging: enabled
SNMP agent: enabled
.
对于上述的统计报文信息的解释见下表:
显示信息 |
描述 |
Bad SNMP version errors |
SNMP版本不对 |
Unknown community name |
不能识别的认证名称 |
Illegal operation for community name supplied |
非法操作 |
Encoding errors |
编码错误 |
Get-request PDUs |
Get-request报文 |
Get-next PDUs |
Get-next报文 |
Set-request PDUs |
Set-request报文 |
Too big errors (Maximum packet size 1500) |
响应报文太大 |
No such name errors |
不存在指定的管理单元 |
Bad values errors |
设定值类型错误 |
General errors |
一般性错误 |
Get-response PDUs |
Get-response报文 |
SNMP trap PDUs |
SNMP trap报文 |
在特权用户模式下,执行show snmp mib来查看当前的代理支持的MIB对象。
Ruijie# show snmp mib
sysDescr
sysObjectID
sysUpTime
sysContact
sysName
sysLocation
sysServices
sysORLastChange
snmpInPkts
snmpOutPkts
snmpInBadVersions
snmpInBadCommunityNames
snmpInBadCommunityUses
snmpInASNParseErrs
snmpInTooBigs
snmpInNoSuchNames
snmpInBadValues
snmpInReadOnlys
snmpInGenErrs
snmpInTotalReqVars
snmpInTotalSetVars
snmpInGetRequests
snmpInGetNexts
snmpInSetRequests
snmpInGetResponses
snmpInTraps
snmpOutTooBigs
snmpOutNoSuchNames
snmpOutBadValues
snmpOutGenErrs
snmpOutGetRequests
snmpOutGetNexts
snmpOutSetRequests
snmpOutGetResponses
snmpOutTraps
snmpEnableAuthenTraps
snmpSilentDrops
snmpProxyDrops
entPhysicalEntry
entPhysicalEntry.entPhysicalIndex
entPhysicalEntry.entPhysicalDescr
entPhysicalEntry.entPhysicalVendorType
entPhysicalEntry.entPhysicalContainedIn
entPhysicalEntry.entPhysicalClass
entPhysicalEntry.entPhysicalParentRelPos
entPhysicalEntry.entPhysicalName
entPhysicalEntry.entPhysicalHardwareRev
entPhysicalEntry.entPhysicalFirmwareRev
entPhysicalEntry.entPhysicalSoftwareRev
entPhysicalEntry.entPhysicalSerialNum
entPhysicalEntry.entPhysicalMfgName
entPhysicalEntry.entPhysicalModelName
entPhysicalEntry.entPhysicalAlias
entPhysicalEntry.entPhysicalAssetID
entPhysicalEntry.entPhysicalIsFRU
entPhysicalContainsEntry
entPhysicalContainsEntry.entPhysicalChildIndex
entLastChangeTime
在特权用户模式下,执行show snmp user来查看当前代理上配置的SNMP用户。
Ruijie# show snmp user
User name: test
Engine ID: 80001
storage-type: permanent active
Security level: auth priv
Auth protocol: SHA
Priv protocol: DES
Group-name: g1
在特权用户模式下,执行show snmp group来查看当前代理上配置的组。
Ruijie# show snmp group
groupname: g1
securityModel: v3
securityLevel:authPriv
readview: default
writeview: default
notifyview:
groupname: public
securityModel: v1
securityLevel:noAuthNoPriv
readview: default
writeview: default
notifyview:
groupname: public
securityModel: v
securityLevel:noAuthNoPriv
readview: default
writeview: default
notifyview:
在特权用户模式下,执行show snmp view来查看当前代理上配置的视图。
Ruijie# show snmp view
default(include)
test-view(include)