Basic System Configuration & Debugging
FIgure 28-1 Architecture of the MIB tree
The management information base (MIB) is used to describe the hierarchical architecture
of the tree and it is the set defined by the standard variables of the monitored network device.
In the above figure, the managed object B can be uniquely specified by a string of numbers
{1.2.1.1}. The number string is the Object Identifier of the managed object.
28.2.2 Configuring SNMP Basic Functions
Perform following commands in global configuration mode.
Table 28-2 Configuring SNMP Basic Functions
Configure
community
name and some
other info
snmp-server community community
{ ro | rw } { deny | permit } [ view
view-name ]
Configure
system
administrator’s
contact
snmp-server contact syscontact
If there is space in the syscontact
keywords, it should be quoted by
quotation mark.
Enable
destination host
address
snmp-server host host-addr [version {1
| 2c | 3 [auth | noauthpriv | priv]}]
community-string [udp-port port]
[ notify-type [ notifytype-list ] ]
The community name in
snmp-server host version should
not be empty.
Configure
system location
snmp-server location syslocation
By default, the syslocation
is“sample sysLocation factory
default”
If there is space in the keywords, it
should be quoted by quotation
mark.
By default, the sysname is “Switch ”
If there is space in the keywords, it
should be quoted by quotation
mark.
Enable SNMP
server to send
notification
snmp-server enable traps
[ notificationtype-list ]
The default notification type is trap,
and it is defaulted to be disabled.