For example, level 6
means you will receive level 6 and 7 messages. Level 4 means you will get messages for
levels 4??“7.
Con?¬?guring an SNMP Managed Node
Router(config)#logging on Enables logging to all
supported destinations
Router(config)#logging 192.168.10.53 Sends logging messages to
a syslog server host at
address 192.168.10.53
Router(config)#logging sysadmin Sends logging messages to
a syslog server host named
sysadmin
Router(config)#logging trap x Sets the syslog server
logging level to value x,
where x = a number
between 0 and 7 or a
word de?¬?ning the level
Router(config)#logging source-interface
loopback 0
Sets the source IP address
of the syslog packets,
regardless of the interface
where the packets actually
exit the router
Router(config)#service timestamps log datetime Includes a timestamp in all
subsequent syslog
messages
Router(config)#snmp-server engineID local 1234 Sets a string to identify the
local device as 1234. If no
engine ID is de?¬?ned, one
is generated for you.
Router(config)#snmp-server group scottgroup v3
auth
De?¬?nes an SNMP group
named scottgroup for
SNMPv3 using
authentication
124 Con?¬?guring an SNMP Managed Node
Router(config)#snmp-server group hansgroup v3
auth priv
De?¬?nes an SNMP group
named hansgroup for
SNMPv3 using
authentication and
encryption (privacy)
Router(config)#snmp-server user Scott
scottgroup v3 auth md5 scott2passwd
De?¬?nes a user Scott
belonging to the group
scottgroup.
Pages:
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116