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

  • NID must be added to the controller.
  • NID must be accessible from the controller.

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

     Command or ActionPurpose
    Step 1 configure terminal


    Example:
    Switch# configure terminal
     

    Enters global configuration mode.

     
    Step 2controller nid 1/NID_ID


    Example:
    Switch(config)# controller nid 1/1
     

    Enters the controller configuration mode.

     
    Step 3ProvisionSnmpConf


    Example:
    Switch(config-controller)# ProvisionSnmpConf
     
    Enters the ProvisionSnmpConf mode.  
    Step 4setSnmpDefaultConf setSnmpDefaultConfigRequest request_id


    Example:
    Switch(config-controller-ProvisionSnmpConf)# setSnmpDefaultConf  setSnmpDefaultConfigRequest 1
     
    Configures SNMP default configuration status.
    • setSnmpDefaultConfigRequest—Specifies SNMP default configuration.
    • request_id—Request ID. The default value is 1.
     
    Step 5getSnmpDefaultConf getSnmpDefaultConfRequest


    Example:
    Switch(config-controller-ProvisionSnmpConf)# getSnmpDefaultConf  getSnmpDefaultConfRequest
     
    Retrieves SNMP default configuration status.
    • getSnmpDefaultConfRequest—Retrieves SNMP default configuration.
     
    Step 6getSnmpDefaultConf review


    Example:
    Switch(config-controller-ProvisionSnmpConf)# getSnmpDefaultConf review
     
    Displays the configuration.  
    Step 7getSnmpDefaultConf commit


    Example:
    Switch(config-controller-ProvisionSnmpConf)# getSnmpDefaultConf commit
     
    Sends the configuration to NID.  
    Step 8exit


    Example:
    Switch(config-controller-ProvisionSnmpConf)# exit
     
    Exits to the config-controller mode.  

    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

       Command or ActionPurpose
      Step 1 configure terminal


      Example:
      Switch# configure terminal
       

      Enters global configuration mode.

       
      Step 2controller nid 1/NID_ID


      Example:
      Switch(config)# controller nid 1/1
       

      Enters the controller configuration mode.

       
      Step 3ProvisionSnmpConf


      Example:
      Switch(config-controller)# ProvisionSnmpConf
       
      Enters the ProvisionSnmpConf mode.  
      Step 4setSnmpServerConf snmsnp_server_conf { trap {true | false} | version {v1 | v2c | v3} | snmp_server {enable | disable} | community_v2c {comm_name comm_name | mode {ro | rw}}}


      Example:
      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
       
      Configures SNMP server.
      • trap—Specifies SNMP traps.
      • true—Enables SNMP trap.
      • false—Disables SNMP trap.
      • version—Specifies SNMP host version.
      • v1—Specifies SNMP version v1.
      • v2c—Specifies SNMP version v2c.
      • v3—Specifies SNMP version v3.
      • snmp_server—Specifies the SNMP server.
      • Enable—Enables the SNMP server.
      • Disable—Disables the SNMP server.
      • community_v2c—Specifies the v2c community.
      • comm_name—Specifies the v2c community name.
      • comm_name—v2c community name.
      • mode—Specifies read or write mode.
      • ro—Read mode.
      • rw—Write mode.
       
      Step 5setSnmpServerConf review


      Example:
      Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf review
       
      Displays the configuration.  
      Step 6setSnmpServerConf commit


      Example:
      Switch(config-controller-ProvisionSnmpConf)# setSnmpServerConf commit
       
      Sends the configuration to NID.  
      Step 7getSnmpServerConf getSnmpServerConfigRequest


      Example:
      Switch(config-controller-ProvisionSnmpConf)# getSnmpServerConf getSnmpServerConfigRequest
       
      Retrieves SNMP server configuration.  
      Step 8getSnmpServerConf review


      Example:
      Switch(config-controller-ProvisionSnmpConf)# getSnmpServerConf review
       
      Displays the configuration.  
      Step 9getSnmpServerConf commit


      Example:
      Switch(config-controller-ProvisionSnmpConf)# getSnmpServerConf commit
       
      Sends the configuration to NID.  
      Step 10exit


      Example:
      Switch(config-controller-ProvisionSnmpConf)# exit
       
      Exits to the config-controller mode.  

      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

         Command or ActionPurpose
        Step 1 configure terminal


        Example:
        Switch# configure terminal
         

        Enters global configuration mode.

         
        Step 2controller nid 1/NID_ID


        Example:
        Switch(config)# controller nid 1/1
         

        Enters the controller configuration mode.

         
        Step 3ProvisionSnmpConf


        Example:
        Switch(config-controller)# ProvisionSnmpConf
         
        Enters the ProvisionSnmpConf mode.  
        Step 4setSnmpCommunity snmp_community_conf {community-namecommunity_name name | community_ip ip_address | community_mask mask}


        Example:
        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
         
        Configures SNMP default configuration status.
        • community_name—Configures SNMP community string.
        • name—Name of the community.
        • community_ip—Specifies community IP.
        • ip_address—IP address.
        • community_mask—Specifies community mask.
        • mask—Mask address.
         
        Step 5getSnmpCommunity getSnmpCommunityConfRequest


        Example:
        Switch(config-controller-ProvisionSnmpConf)# getSnmpCommunity  getSnmpCommunityConfRequest
         
        Configures SNMP default configuration status.
        • getSnmpCommunityConfRequest—Retrieves SNMP configuration information.
         
        Step 6getSnmpCommunity review


        Example:
        Switch(config-controller-ProvisionSnmpConf)# getSnmpCommunity review
         
        Displays the configuration.  
        Step 7getSnmpCommunity commit


        Example:
        Switch(config-controller-ProvisionSnmpConf)# getSnmpCommunity commit
         
        Sends the configuration to NID.  
        Step 8exit


        Example:
        Switch(config-controller-ProvisionSnmpConf)# exit
         
        Exits to the config-controller mode.  

        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

           Command or ActionPurpose
          Step 1 configure terminal


          Example:
          Switch# configure terminal
           

          Enters global configuration mode.

           
          Step 2controller nid 1/NID_ID


          Example:
          Switch(config)# controller nid 1/1
           

          Enters the controller configuration mode.

           
          Step 3ProvisionSnmpConf


          Example:
          Switch(config-controller)# ProvisionSnmpConf
           
          Enters the ProvisionSnmpConf mode.  
          Step 4setSnmpHost snmp_host_config {host_id host_id | set_trap {enable | disable} | version {v1 | v2c | v3} udp_port_no udp_port_no | address {ipv4 ipv4_address | ipv6 ipv6_address} | inform_mode {enable | disable} | inf_retries retry_instances | timeout_inform timeout_inform_value}


          Example:
          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 
           
          Configures SNMP host.
          • host_id—Specifies the host name.
          • host_id—Host name.
          • set_trap—Specifies the trap.
          • enable—Enables the trap.
          • disable—Disables the trap.
          • version—Specifies SNMP host version.
          • v1—Specifies SNMP version v1.
          • v2c—Specifies SNMP version v2c.
          • v3—Specifies SNMP version v3.
          • udp_port_no—Specifies the host port number.
          • udp_port_no—Host port number.
          • address—Specifies the IP address.
          • ipv4—Specifies IPv4 address.
          • ipv4_address— IPv4 address.
          • ipv6—Specifies IPv6 address.
          • ipv6_address—IPv6 address.
          • inform_mode—Specifies inform mode.
          • enable—Enables inform mode.
          • disable—Disables inform mode.
          • inf_retries—Specifies inform retries.
          • retry_instances—Inform retry number.
          • timeout_inform—Specifies timeout inform.
          • timeout_inform_value—Timeout inform value.
           
          Step 5setSnmpHost review


          Example:
          Switch(config-controller-ProvisionSnmpConf)# setSnmpHost review
           
          Displays the configuration.  
          Step 6setSnmpHost commit


          Example:
          Switch(config-controller-ProvisionSnmpConf)# setSnmpHost commit
           
          Sends the configuration to NID.  
          Step 7getSnmpHost getSnmpHostRequest


          Example:
          Switch(config-controller-ProvisionSnmpConf)# getSnmpHost  getSnmpHostRequest
           
          Retrieves SNMP host configuration information.  
          Step 8getSnmpHost review


          Example:
          Switch(config-controller-ProvisionSnmpConf)# getSnmpHost review
           
          Displays the configuration.  
          Step 9getSnmpHost commit


          Example:
          Switch(config-controller-ProvisionSnmpConf)# getSnmpHost commit
           
          Sends the configuration to NID.  
          Step 10exit


          Example:
          Switch(config-controller-ProvisionSnmpConf)# exit
           
          Exits to the config-controller mode.  

          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

             Command or ActionPurpose
            Step 1 configure terminal


            Example:
            Switch# configure terminal
             

            Enters global configuration mode.

             
            Step 2controller nid 1/NID_ID


            Example:
            Switch(config)# controller nid 1/1
             

            Enters the controller configuration mode.

             
            Step 3ProvisionSnmpConf


            Example:
            Switch(config-controller)# ProvisionSnmpConf
             
            Enters the ProvisionSnmpConf mode.  
            Step 4setSnmpView setSnmpViewRequest {view-nameview_name | view_oid oid_value | view_type {included | excluded}}


            Example:
            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
             
            Configures SNMP view.
            • view_name—Specifies view name.
            • view_oid—Specifies object identifier.
            • oid_value—Object identifier value.
            • view_type—Specifies view type.
            • included—Includes view type.
            • excluded—Excludes view type.
             
            Step 5setSnmpView review


            Example:
            Switch(config-controller-ProvisionSnmpConf)# setSnmpView review
             
            Displays the configuration.  
            Step 6setSnmpView commit


            Example:
            Switch(config-controller-ProvisionSnmpConf)# setSnmpView commit
             
            Sends the configuration to NID.  
            Step 7getSnmpView getSnmpViewRequest


            Example:
            Switch(config-controller-ProvisionSnmpConf)# getSnmpView  getSnmpViewRequest
             
            Retrieves SNMP default configuration status.
            • getSnmpViewRequest—Retrieves SNMP default configuration.
             
            Step 8getSnmpView review


            Example:
            Switch(config-controller-ProvisionSnmpConf)# getSnmpView review
             
            Displays the configuration.  
            Step 9getSnmpView commit


            Example:
            Switch(config-controller-ProvisionSnmpConf)# getSnmpView commit
             
            Sends the configuration to NID.  
            Step 10exit


            Example:
            Switch(config-controller-ProvisionSnmpConf)# exit
             
            Exits to the config-controller mode.  

            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

               Command or ActionPurpose
              Step 1 configure terminal


              Example:
              Switch# configure terminal
               

              Enters global configuration mode.

               
              Step 2controller nid 1/NID_ID


              Example:
              Switch(config)# controller nid 1/1
               

              Enters the controller configuration mode.

               
              Step 3ProvisionSnmpConf


              Example:
              Switch(config-controller)# ProvisionSnmpConf
               
              Enters the ProvisionSnmpConf mode.  
              Step 4setSnmpUserConf setSnmpUsersRequest {user_name user_name | user_engine_id user_engine_id | protocolauth {md5 | sha} | protocol_passwd protocol_passwd | priviledgeauth {aes | des} | priv_passwd priv_passwd}


              Example:
              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
               
              Configures an SNMP user.
              • user_name—Specifies user name.
              • user_name—User name.
              • user_engine_id—Specifies user engine ID.
              • user_engine_id—User engine ID.
              • protocolauth—Specifies authentication protocol.
              • md5—Specifies MD5 authentication protocol.
              • sha—Specifies SHA authentication protocol.
              • protocol_passwd—Specifies protocol password.
              • protocol_passwd—Protocol password.
              • priviledgeauth—Specifies privilege authentication type.
              • aes—Specifies AES authentication.
              • des—Specifies DES authentication.
              • priv_passwd—Specifies privacy password.
              • priv_passwd—Privacy password.
               
              Step 5setSnmpUserConf review


              Example:
              Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf review
               
              Displays the configuration.  
              Step 6setSnmpUserConf commit


              Example:
              Switch(config-controller-ProvisionSnmpConf)# setSnmpUserConf commit
               
              Sends the configuration to NID.  
              Step 7getSnmpUserConf getSnmpUserConfRequest


              Example:
              Switch(config-controller-ProvisionSnmpConf)#  getSnmpUserConf getSnmpUserConfRequest
               
              Retrieves SNMP user configuration.  
              Step 8getSnmpUserConf review


              Example:
              Switch(config-controller-ProvisionSnmpConf)# getSnmpUserConf review
               
              Displays the configuration.  
              Step 9getSnmpUserConf commit


              Example:
              Switch(config-controller-ProvisionSnmpConf)# getSnmpUserConf commit
               
              Sends the configuration to NID.  
              Step 10exit


              Example:
              Switch(config-controller-ProvisionSnmpConf)# exit
               
              Exits to the config-controller mode.  

              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

                 Command or ActionPurpose
                Step 1 configure terminal


                Example:
                Switch# configure terminal
                 

                Enters global configuration mode.

                 
                Step 2controller nid 1/NID_ID


                Example:
                Switch(config)# controller nid 1/1
                 

                Enters the controller configuration mode.

                 
                Step 3ProvisionSnmpConf


                Example:
                Switch(config-controller)# ProvisionSnmpConf
                 
                Enters the ProvisionSnmpConf mode.  
                Step 4setSnmpConfig snmp_config {location location_name | contact contact_name | engine_id engine_id }


                Example:
                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
                 
                Configures an SNMP user.
                • location—Specifies SNMP location.
                • location_name—SNMP location name.
                • contact—Specifies SNMP contact.
                • contact_name—SNMP contact name.
                • engine_id—Specifies engine ID.
                • engine_id—Engine ID.
                 
                Step 5setSnmpConfig review


                Example:
                Switch(config-controller-ProvisionSnmpConf)# setSnmpConfig review
                 
                Displays the configuration.  
                Step 6setSnmpConfig commit


                Example:
                Switch(config-controller-ProvisionSnmpConf)# setSnmpConfig commit
                 
                Sends the configuration to NID.  
                Step 7getSnmpConfig getSnmpConfigRequest


                Example:
                Switch(config-controller-ProvisionSnmpConf)# getSnmpConfig getSnmpConfigRequest
                 
                Retrieves SNMP user configuration.  
                Step 8getSnmpConfig review


                Example:
                Switch(config-controller-ProvisionSnmpConf)# getSnmpConfig review
                 
                Displays the configuration.  
                Step 9getSnmpConfig commit


                Example:
                Switch(config-controller-ProvisionSnmpConf)# getSnmpConfig commit
                 
                Sends the configuration to NID.  
                Step 10exit


                Example:
                Switch(config-controller-ProvisionSnmpConf)# exit
                 
                Exits to the config-controller mode.  

                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'