Configuring SNMP Logging 935
c
CAUTION: The validity of a USM user depends on the switch fabric ID of the 
SNMP agent. If the switch fabric ID used for USM user creation is not identical to 
the current switch fabric ID, the USM user is invalid.
Configuring SNMP 
Logging
Introduction to SNMP
Logging
SNMP logs the GET and SET operations that NMS performs to SNMP Agent. When 
the GET operation is performed, Agent logs the IP address of NMS, node name of 
the GET operation and OID of the node. When the SET operation is performed, 
Agent logs the IP address of NMS, node name of the SET operation, OID of the 
node, the value set and the error code and index returned with the SET operation. 
These logs will be transferred to system information and sent to the information 
center to be checked and tracked.
SNMP logs GET request, SET request and SET response, but does not log GET 
response.
Enabling SNMP Logging
n
■ Logs occupy storage space of the device, thus affecting the performance of the 
device. Therefore, you are recommended to disable SNMP logging.
■ The priority of SNMP log is informational, meaning it is a common prompt of 
the device. To check SNMP logs, enable the information center to output 
system information with the severity of informational.
Configure the maximum size 
of an SNMP packet that can 
be received or sent by an 
SNMP agent
snmp-agent packet 
max-size byte-count 
Optional
15,00 bytes by default 
Configure the switch fabric ID 
for a local SNMP agent
snmp-agent local-switch 
fabricid switch fabricid 
Optional
Company ID and device ID by 
default 
Create or update MIB view 
content for an SNMP agent
snmp-agent mib-view 
{ excluded | included } 
view-name oid-tree [ mask 
mask-value ] 
Optional
ViewDefault by default
To do… Use the command…  Remarks 
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enable SNMP 
logging 
snmp-agent log { all | 
get-operation | set-operation } 
Required
Disabled by default. 
Configure SNMP log 
output rules 
info-center source { module-name | 
default } channel { channel-number 
| channel-name } [ debug { level 
severity | state state } * | log { level 
severity | state state } * | trap { level 
severity | state state } * ] * 
Optional
By default, SNMP logs are 
output to loghost and logfile 
only. To output SNMP logs to 
other destinations such as 
console or monitor terminal, 
you need to set the output 
destinations with this 
command.