Outputting system information to the SNMP module
The SNMP module receives the trap information only, and discards the log and debugging information.
To monitor device running status, trap information is usually sent to the SNMP NMS. For this purpose, you must configure output of traps to the SNMP module, and set the trap sending parameters for the SNMP module. For more information about SNMP, see "Configuring SNMP."
To output system information to the SNMP module:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable the information center. | info-center enable | Optional. Enabled by default. |
3. Specify a name for a channel identified by its number. | info-center channel channel-number name channel-name | Optional. See Table 2 for default channel names. |
4. Configure an output channel for the SNMP module. | info-center snmp channel { channel-number | channel-name } | Optional. By default, system information is output to the SNMP module through channel 5 (known as snmpagent). |
5. Configure an output rule for the SNMP module. | info-center source { module-name | default } channel { channel-number | channel-name } [trap { level severity | state state } * ] | Optional. |
6. Configure the timestamp format. | info-center timestamp { debugging | log | trap } { boot | date | none } | Optional. The timestamp format for log, trap and debugging information is date by default. |