- Preface
- Configuration Management
- Administering the Cisco ME 1200 NID
- Configuring Notifications
- Zero Touch Provisioning
- Configuring Synchronous Ethernet
- Configuring Ethernet Virtual Connections
- Configuring Switch Ports
- Configuring Spanning-Tree Protocol
- Configuring Link Aggregation Control Protocol (LACP)
- Provisioning Link Layer Discovery Protocol
- Configuring SNMP
- Configuring PTP
- Configuring ACLs
- Configuring Quality of Service (QoS)
- Configuring Ethernet OAM, Link OAM, and CFM
- Configuring Performance Monitoring
- Configuring EPS
- Configuring ERPS
- Configuring L2CP
- Configuring MAC Security
- Configuring NTP
- Configuring Storm Control
- Configuring Syslog
- Configuring Dedicated Debug Shell
- Configuring SPAN
- Configuring RSPAN
- Configuring RFC 2544
- Configuring sFlow
- Configuring UDLD
- Configuring Flex Links
- Configuring Y.1564
- Configuring LST
- Configuring Security Access Control Lists
- Multicast Vlan Register
- Double-tagged management VLAN using IVID parameter
- Configuring LAG Aggregation
Configuring SNMP
This document describes the Simple Network Management Protocol (SNMP) feature and configuration steps to implement network management using SNMP.
Prerequisites for Configuring SNMP
Information About SNMP
SNMP is an application layer protocol that facilitates the exchange of management information among network devices, such as nodes and routers. It comprises part of the TCP/IP suite. System administrators can remotely manage network performance, find and solve network problems, and plan for network growth by using SNMP.
How to Provision SNMP
Configuring and Retrieving Default SNMP Configurations
Configuration Example
The example shows how to configure and retrieve Default SNMP Configurations:
Switch(config-controller-ProvisionSnmpConf)# setSnmpDefaultConf setSnmpDefaultConfigRequest 1 Switch(config-controller-ProvisionSnmpConf)# getSnmpDefaultConf getSnmpDefaultConfRequest Switch(config-controller-ProvisionSnmpConf)# getSnmpDefaultConf review Switch(config-controller-ProvisionSnmpConf)# getSnmpDefaultConf commit Switch(config-controller-ProvisionSnmpConf)# exit
The following is a sample output on the NID.
Switch(config-controller-ProvisionSnmpConf)#getSnmpDefaultConf getSnmpDefaultConfRequest Switch(config-controller-ProvisionSnmpConf)# Switch(config-controller-ProvisionSnmpConf)#getSnmpDefaultConf review Commands in queue: getSnmpDefaultConf getSnmpDefaultConfRequest Switch(config-controller-ProvisionSnmpConf)#getSnmpDefaultConf commit GetSnmpDefaultConf_Output.getSnmpDefaultResponse.trap = false GetSnmpDefaultConf_Output.getSnmpDefaultResponse.version = 'v2c' GetSnmpDefaultConf_Output.getSnmpDefaultResponse.snmp_server = 'disable' GetSnmpDefaultConf Commit Success!!!
Configuring SNMPv2c Community Parameters
Configuration Example
The example shows how to configure and retrieve SNMPv2c community parameters:
Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf snmp_server enable Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf version v2c Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf trap true Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf community_v2c comm_name Public Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf community_v2c mode ro Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf review Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf commit Switch(config-controller-ProvisionSnmpConf)# getSnmpServerConf getSnmpServerConfigRequest Switch(config-controller-ProvisionSnmpConf)# getSnmpServerConf review Switch(config-controller-ProvisionSnmpConf)# getSnmpServerConf commit Switch(config-controller-ProvisionSnmpConf)# exit
The following is a sample output on the NID.
Switch(config-controller-ProvisionSnmpConf)#getSnmpServerConf commit GetSnmpServerConf_Output.snmp_server_conf.trap = true GetSnmpServerConf_Output.snmp_server_conf.version.t = 2 GetSnmpServerConf_Output.snmp_server_conf.version.u.v2c = 'v2c' GetSnmpServerConf_Output.snmp_server_conf.snmp_server.t = 1 GetSnmpServerConf_Output.snmp_server_conf.snmp_server.u.enable = 'enabled GetSnmpServerConf_Output.snmp_server_conf.community_v2c.comm_name = 'Public' GetSnmpServerConf_Output.snmp_server_conf.community_v2c.mode.t = 1 GetSnmpServerConf_Output.snmp_server_conf.community_v2c.mode.u.ro = 'RO' GetSnmpServerConf Commit Success!!!
Configuring SNMPv3 Community
Configuration Example
The example shows how to configure and retrieve SNMPv3 Community:
Switch(config-controller-ProvisionSnmpConf)# setSnmpCommunity snmp_community_conf community_ip 10.10.10.1 Switch(config-controller-ProvisionSnmpConf)# setSnmpCommunity snmp_community_conf community_mask 255.255.255.0 Switch(config-controller-ProvisionSnmpConf)# setSnmpCommunity snmp_community_conf community_name user12 Switch(config-controller-ProvisionSnmpConf)# getSnmpCommunity getSnmpCommunityConfReques Switch(config-controller-ProvisionSnmpConf)# getSnmpCommunity review Switch(config-controller-ProvisionSnmpConf)# getSnmpCommunity commit Switch(config-controller-ProvisionSnmpConf)# exit
The following is a sample output on the NID.
Switch(config-controller-ProvisionSnmpConf)#$SnmpCommunityConfReques Switch(config-controller-ProvisionSnmpConf)# Switch(config-controller-ProvisionSnmpConf)#getSnmpCommunity review Commands in queue: getSnmpCommunity getSnmpCommunityConfRequest Switch(config-controller-ProvisionSnmpConf)# Switch(config-controller-ProvisionSnmpConf)#getSnmpCommunity com Switch(config-controller-ProvisionSnmpConf)#getSnmpCommunity commit GetSnmpCommunity_Output.getSnmpCommunityResponse[0].community_name = 'public' GetSnmpCommunity_Output.getSnmpCommunityResponse[0].community_ip = '0.0.0.0' GetSnmpCommunity_Output.getSnmpCommunityResponse[0].community_mask = '0.0.0.0' GetSnmpCommunity_Output.getSnmpCommunityResponse[1].community_name = 'private' GetSnmpCommunity_Output.getSnmpCommunityResponse[1].community_ip = '0.0.0.0' GetSnmpCommunity_Output.getSnmpCommunityResponse[1].community_mask = '0.0.0.0' GetSnmpCommunity_Output.getSnmpCommunityResponse[2].community_name = 'user12' GetSnmpCommunity_Output.getSnmpCommunityResponse[2].community_ip = '10.10.10.1' GetSnmpCommunity_Output.getSnmpCommunityResponse[2].community_mask = '255.255.255.0' GetSnmpCommunity Commit Success!!!
Configuring Trap Destination
Configuration Example
The example shows how to configure and retrieve trap destination:
Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config address ipv4 10.106.212.248 Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config host_id trap-config Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config inf_retries 255 Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config inform_mode enable Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config set_trap enable Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config timeout_inform 2147 Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config udp_port_no 162 Switch(config-controller-ProvisionSnmpConf)# setSnmpHost snmp_host_config version v2c Switch(config-controller-ProvisionSnmpConf)# setSnmpHost review Switch(config-controller-ProvisionSnmpConf)# setSnmpHost commit Switch(config-controller-ProvisionSnmpConf)# getSnmpHost getSnmpHostRequest Switch(config-controller-ProvisionSnmpConf)# getSnmpHost review Switch(config-controller-ProvisionSnmpConf)# getSnmpHost commit Switch(config-controller-ProvisionSnmpConf)# exit
Configuring an Entry in SNMP View List
Configuration Example
The example shows how to configure and retrieve an entry in SNMP view list:
Switch(config-controller-ProvisionSnmpConf)# setSnmpView setSnmpViewRequest view_type included Switch(config-controller-ProvisionSnmpConf)# setSnmpView setSnmpViewRequest view_oid .1.3.6.1.2.1.31 Switch(config-controller-ProvisionSnmpConf)# setSnmpView setSnmpViewRequest view_name ifMIB Switch(config-controller-ProvisionSnmpConf)# setSnmpView review Switch(config-controller-ProvisionSnmpConf)# setSnmpView commit Switch(config-controller-ProvisionSnmpConf)# getSnmpView getSnmpViewRequest Switch(config-controller-ProvisionSnmpConf)# getSnmpView review Switch(config-controller-ProvisionSnmpConf)# getSnmpView commit Switch(config-controller-ProvisionSnmpConf)# exit
The following is a sample output on the NID.
Switch(config-controller-ProvisionSnmpConf)# Switch(config-controller-ProvisionSnmpConf)#getSnmpView getSnmpViewRequest Switch(config-controller-ProvisionSnmpConf)#getSnmpView review Commands in queue: getSnmpView getSnmpViewRequest Switch(config-controller-ProvisionSnmpConf)#getSnmpView commit GetSnmpView_Output.getSnmpViewResponse[0].view_name = 'ifMIB' GetSnmpView_Output.getSnmpViewResponse[0].view_oid = '.1.3.6.1.2.1.31' GetSnmpView_Output.getSnmpViewResponse[0].view_type = 'included' GetSnmpView_Output.getSnmpViewResponse[1].view_name = 'default_view' GetSnmpView_Output.getSnmpViewResponse[1].view_oid = '.1' GetSnmpView_Output.getSnmpViewResponse[1].view_type = 'included'
Creating an SNMPv3 User
Configuration Example
The example shows how to create and retrieve an SNMPv3 user:
Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest priv_passwd 12345678 Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest priviledgeauth aes Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest protocol_passwd 12345678 Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest protocolauth md5 Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest user_engine_id 800007e5017f000001 Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest user_name user1 Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf review Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf commit Switch(config-controller-ProvisionSnmpConf)# getSnmpUserConf getSnmpUserConfRequest Switch(config-controller-ProvisionSnmpConf)# getSnmpUserConf review Switch(config-controller-ProvisionSnmpConf)# getSnmpUserConf commit Switch(config-controller-ProvisionSnmpConf)# exit
The following is a sample output on the NID.
Switch(config-controller-ProvisionSnmpConf)#$ getSnmpUserConfRequest Switch(config-controller-ProvisionSnmpConf)#getSnmpUserConf review Commands in queue: getSnmpUserConf getSnmpUserConfRequest Switch(config-controller-ProvisionSnmpConf)#getSnmpUserConf commit GetSnmpUserConf_Output.getSnmpUserConfResponse[0].user_name = 'user1' GetSnmpUserConf_Output.getSnmpUserConfResponse[0].engine_id = '800007e5017f000001' GetSnmpUserConf_Output.getSnmpUserConfResponse[0].protocol = 'MD5' GetSnmpUserConf_Output.getSnmpUserConfResponse[0].priv = 'DES' GetSnmpUserConf_Output.getSnmpUserConfResponse[1].user_name = 'default_user' GetSnmpUserConf_Output.getSnmpUserConfResponse[1].engine_id = '800007e5017f000001' GetSnmpUserConf_Output.getSnmpUserConfResponse[1].protocol = 'None' GetSnmpUserConf_Output.getSnmpUserConfResponse[1].priv = 'None' GetSnmpUserConf Commit Success!!!
Creating an SNMP User
Configuration Example
The example shows how to create and retrieve an SNMP user:
Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest priv_passwd 12345678 Switch(config-controller-ProvisionSnmpConf)# setSnmpConfig snmp_config engine_id 800007e5017f000001 Switch(config-controller-ProvisionSnmpConf)# setSnmpConfig snmp_config contact user2 Switch(config-controller-ProvisionSnmpConf)# setSnmpConfig snmp_config location Bangalore Switch(config-controller-ProvisionSnmpConf)# setSnmpConfig review Switch(config-controller-ProvisionSnmpConf)# setSnmpConfig commit Switch(config-controller-ProvisionSnmpConf)# getSnmpConfig getSnmpConfigRequest Switch(config-controller-ProvisionSnmpConf)# getSnmpConfig review Switch(config-controller-ProvisionSnmpConf)# getSnmpConfig commit Switch(config-controller-ProvisionSnmpConf)# exit
The following is a sample output on the NID.
Switch(config-controller-ProvisionSnmpConf)#$getSnmpConfigRequest Switch(config-controller-ProvisionSnmpConf)# getSnmpConfig commit GetSnmpConfig_Output.getSnmpConfigResponse.location = 'Bangalore' GetSnmpConfig_Output.getSnmpConfigResponse.contact = 'user2' GetSnmpConfig_Output.getSnmpConfigResponse.engine_id = '800007e5017f000001'
Feedback