- Preface
- Installing UCS NID Controller
- Configuration Management
- Administering the Cisco ME 1200 NID
- Configuring Notifications
- Zero Touch Provisioning
- Auto Discovery of Cisco ME 1200 NIDs
- 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 SPAN
- Configuring RSPAN
- Configuring RFC 2544
- Configuring sFlow
- Configuring UDLD
- Configuring LST
- Configuring Flex Links
- Configuring Y.1564
- Configuring Bulk Provisioning
- Template Management
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:
UCS(ProvisionSnmpConf)# setSnmpDefaultConf setSnmpDefaultConfigRequest 1 UCS(ProvisionSnmpConf)# getSnmpDefaultConf getSnmpDefaultConfRequest UCS(ProvisionSnmpConf)# getSnmpDefaultConf review UCS(ProvisionSnmpConf)# getSnmpDefaultConf commit UCS(ProvisionSnmpConf)# exit
The following is a sample output on the NID.
UCS(ProvisionSnmpConf)#getSnmpDefaultConf getSnmpDefaultConfRequest UCS(ProvisionSnmpConf)# UCS(ProvisionSnmpConf)#getSnmpDefaultConf review Commands in queue: getSnmpDefaultConf getSnmpDefaultConfRequest UCS(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:
UCS(ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf snmp_server enable UCS(ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf version v2c UCS(ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf trap true UCS(ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf community_v2c comm_name Public UCS(ProvisionSnmpConf)# setSnmpServerConf snmp_server_conf community_v2c mode ro UCS(ProvisionSnmpConf)# setSnmpServerConf review UCS(ProvisionSnmpConf)# setSnmpServerConf commit UCS(ProvisionSnmpConf)# getSnmpServerConf getSnmpServerConfigRequest UCS(ProvisionSnmpConf)# getSnmpServerConf review UCS(ProvisionSnmpConf)# getSnmpServerConf commit UCS(ProvisionSnmpConf)# exit
The following is a sample output on the NID.
UCS(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:
UCS(ProvisionSnmpConf)# setSnmpCommunity snmp_community_conf community_ip 10.10.10.1 UCS(ProvisionSnmpConf)# setSnmpCommunity snmp_community_conf community_mask 255.255.255.0 UCS(ProvisionSnmpConf)# setSnmpCommunity snmp_community_conf community_name user12 UCS(ProvisionSnmpConf)# getSnmpCommunity getSnmpCommunityConfReques UCS(ProvisionSnmpConf)# getSnmpCommunity review UCS(ProvisionSnmpConf)# getSnmpCommunity commit UCS(ProvisionSnmpConf)# exit
The following is a sample output on the NID.
Configuring Trap Destination
Configuration Example
The example shows how to configure and retrieve trap destination:
UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config address ipv4 10.106.212.248 UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config host_id trap-config UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config inf_retries 255 UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config inform_mode enable UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config set_trap enable UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config timeout_inform 2147 UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config udp_port_no 162 UCS(ProvisionSnmpConf)# setSnmpHost snmp_host_config version v2c UCS(ProvisionSnmpConf)# setSnmpHost review UCS(ProvisionSnmpConf)# setSnmpHost commit UCS(ProvisionSnmpConf)# getSnmpHost getSnmpHostRequest UCS(ProvisionSnmpConf)# getSnmpHost review UCS(ProvisionSnmpConf)# getSnmpHost commit UCS(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:
UCS(ProvisionSnmpConf)# setSnmpView setSnmpViewRequest view_type included UCS(ProvisionSnmpConf)# setSnmpView setSnmpViewRequest view_oid .1.3.6.1.2.1.31 UCS(ProvisionSnmpConf)# setSnmpView setSnmpViewRequest view_name ifMIB UCS(ProvisionSnmpConf)# setSnmpView review UCS(ProvisionSnmpConf)# setSnmpView commit UCS(ProvisionSnmpConf)# getSnmpView getSnmpViewRequest UCS(ProvisionSnmpConf)# getSnmpView review UCS(ProvisionSnmpConf)# getSnmpView commit UCS(ProvisionSnmpConf)# exit
The following is a sample output on the NID.
UCS(ProvisionSnmpConf)# UCS(ProvisionSnmpConf)#getSnmpView getSnmpViewRequest UCS(ProvisionSnmpConf)#getSnmpView review Commands in queue: getSnmpView getSnmpViewRequest UCS(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:
UCS(ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest priv_passwd 12345678 UCS(ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest priviledgeauth aes UCS(ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest protocol_passwd 12345678 UCS(ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest protocolauth md5 UCS(ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest user_engine_id 800007e5017f000001 UCS(ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest user_name user1 UCS(ProvisionSnmpConf)# setSnmpUserConf review UCS(ProvisionSnmpConf)# setSnmpUserConf commit UCS(ProvisionSnmpConf)# getSnmpUserConf getSnmpUserConfRequest UCS(ProvisionSnmpConf)# getSnmpUserConf review UCS(ProvisionSnmpConf)# getSnmpUserConf commit UCS(ProvisionSnmpConf)# exit
The following is a sample output on the NID.
UCS(ProvisionSnmpConf)#$ getSnmpUserConfRequest UCS(ProvisionSnmpConf)#getSnmpUserConf review Commands in queue: getSnmpUserConf getSnmpUserConfRequest UCS(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:
UCS(ProvisionSnmpConf)# setSnmpUserConf setSnmpUsersRequest priv_passwd 12345678 UCS(ProvisionSnmpConf)# setSnmpConfig snmp_config engine_id 800007e5017f000001 UCS(ProvisionSnmpConf)# setSnmpConfig snmp_config contact user2 UCS(ProvisionSnmpConf)# setSnmpConfig snmp_config location Bangalore UCS(ProvisionSnmpConf)# setSnmpConfig review UCS(ProvisionSnmpConf)# setSnmpConfig commit UCS(ProvisionSnmpConf)# getSnmpConfig getSnmpConfigRequest UCS(ProvisionSnmpConf)# getSnmpConfig review UCS(ProvisionSnmpConf)# getSnmpConfig commit UCS(ProvisionSnmpConf)# exit
The following is a sample output on the NID.
UCS(ProvisionSnmpConf)#$getSnmpConfigRequest UCS(ProvisionSnmpConf)# getSnmpConfig commit GetSnmpConfig_Output.getSnmpConfigResponse.location = 'Bangalore' GetSnmpConfig_Output.getSnmpConfigResponse.contact = 'user2' GetSnmpConfig_Output.getSnmpConfigResponse.engine_id = '800007e5017f000001'
Feedback