101
To switch the format of an NM-specific ifindex:
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Switch the format of an NM-
specific ifindex from 16-bit to
32-bit.
snmp-agent ifmib long-ifindex
enable
Optional.
By default, an NM-specific ifindex
is in 16-bit format.
CAUTION:
Some configurations use parameters that relate to NM-specific ifindex, so the switch of NM-specific
ifindex causes temporary ineffectiveness of these configurations. If the format of the ifindex is switched
back, the configurations will become effective again. Perform the configurations again with the new
NM-specific ifindexes, and then the related configurations become effective. For example, in the
confi
uration of RMON alarm
roup and private alarm
roup, the alarm variables are presented in the
format of OID/variable-name.NM-specific-ifindex; the switching of NM-specific ifindex format makes
the RMON alarm variables ineffective. To monitor the affected nodes again, re-configure the alarm
groups with the new format of NM-specific ifindexes.
Configuring SNMP logging
SNMP logs the Get and Set operations that the NMS performs on the SNMP agent. When the GET
operation is performed, the agent logs the IP address of the NMS, node name of the GET operation and
OID of the node. When the SET operation is performed, the agent logs the IP address of the NMS, node
name of the SET operation, OID of the node, the value configured, and the error code and error index of
the SET response. These logs will be sent to the information center. The level of them is informational and
they are taken as the system prompt information. With parameters for the information center configured,
the output rules for SNMP logs are decided, meaning whether the logs are permitted to display the output
destinations.
SNMP logs Get requests, Set requests and Set responses, but does not log Get responses.
Enabling SNMP logging
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Enable SNMP logging.
snmp-agent log { all | get-
operation | set-operation }
Required.
Disabled by default.
3. 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 only
output to loghost and logfile. To
output SNMP logs to other
destinations such as the console
or a monitor terminal, you must
set the output destinations with
this command.