Hello, everyone!
Today I will continue to show the SNMP configuration. I will show commands for SNMP configuration. This is the third and main article about SNMP configuration.
1. Commands for set the SNMP version, location and contact
TEST(config)#snmp-agent sys-info location ni
TEST(config)#snmp-agent sys-info version v2c
TEST(config)#snmp-agent sys-info contact vlada
And command for display all of these information:
TEST(config)#display snmp-agent sys-info
{ <cr>|contact<K>|location<K>|version<K>||<K> }:
Command:
display snmp-agent sys-info
The contact person for this managed node:
vlada
The physical location of this node:
ni
SNMP version running in the system:
SNMPv2c
2. Commands for display and configure read and write community name:
TEST(config)#display snmp-agent community read
{ <cr>||<K> }:
Command:
display snmp-agent community read
Total number is 0
TEST(config)#snmp-agent community read cipher "xxxxxxxxx"
TEST(config)#display snmp-agent community read
{ <cr>||<K> }:
Command:
display snmp-agent community read
Community name: xxxxxxxxx
Storage type: nonVolatile
View name: ViewDefault
Total number is 1
TEST(config)#display snmp-agent community write
{ <cr>||<K> }:
Command:
display snmp-agent community read
Total number is 0
TEST(config)#snmp-agent community write cipher "xxxxxxxxx"
TEST(config)#display snmp-agent community write
{ <cr>||<K> }:
Command:
display snmp-agent community write
Community name: xxxxxxxxx
Storage type: nonVolatile
View name: ViewDefault
Total number is 1
3. Commands for configuring trap messages
The command for trap message enable:
TEST(config)#snmp-agent trap enable standard
The command for setting a target host:
TEST(config)#snmp-agent target-host trap-hostname "acs" address x.x.x.x udp-port 162 trap-paramsname "xxx"
The command for configuring the parameters for sending traps:
TEST(config)#snmp-agent target-host trap-paramsname "xxx" v2c securityname cipher "xxx" trap-filterprofilename "xxx"
4. Commands for display trap format and source:
TEST(config)#display snmp-agent trap-format
{ <cr>||<K> }:
Command:
display snmp-agent trap-format
System trap format: standard
TEST(config)#display snmp-agent trap-source
{ <cr>||<K> }:
Command:
display snmp-agent trap-source
trap source interface: auto
Thank you!
Reference:
Training material for HCIP Acess, V2.5




