Wired Intelligent Edge

 View Only
  • 1.  AOS-CX SNMP simple steps to Configure!

    Posted Jul 16, 2020 01:54 AM

    CX Simple Steps to Configure SNMP

     

    Prior condition or prerequisite:

    Let's Start:

     

    Step1: Make sure you have reachability to snmp server from your CX switch as below, I am using mgmt vrf, you can use default or any other vrf which has reachability to snmp-server.

     

    AOS-CX# sh running-config interface mgmt
    interface mgmt
    no shutdown
    ip static 10.6.8.13/24
    default-gateway 10.6.8.1
    AOS-CX# ping 10.80.2.187 vrf mgmt
    PING 10.80.2.187 (10.80.2.187) 100(128) bytes of data.
    108 bytes from 10.80.2.187: icmp_seq=1 ttl=126 time=0.369 ms
    108 bytes from 10.80.2.187: icmp_seq=2 ttl=126 time=0.565 ms
    108 bytes from 10.80.2.187: icmp_seq=3 ttl=126 time=0.478 ms
    108 bytes from 10.80.2.187: icmp_seq=4 ttl=126 time=0.580 ms
    108 bytes from 10.80.2.187: icmp_seq=5 ttl=126 time=0.523 ms
    --- 10.80.2.187 ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4086ms
    rtt min/avg/max/mdev = 0.369/0.503/0.580/0.075 ms

     

    Step2: Let's enable or configure SNMP on AOS-CX switches as below:

     

    AOS-CX# sh running-config | in snmp
    AOS-CX#
    AOS-CX# conf t
    AOS-CX(config)# snmp-server
    agent-port Configure UDP port to reach SNMP Master Agent
    community The name of the community string (Default:
    public)
    historical-counters-monitor Monitor historical interface counters
    host Configure SNMP trap or inform
    system-contact Configure system contact
    system-description Configure system description
    system-location Configure system location
    trap-source Configure the IP address of the source interface
    for sending SNMP traps
    vrf Specify VRF to run SNMP on
    <cr>


    AOS-CX(config)# snmp-server vrf mgmt

     

    AOS-CX(config)# snmp-server host
    A.B.C.D IPv4 address of SNMP notification host
    X:X::X:X IPv6 address of SNMP notification host
    AOS-CX(config)# snmp-server host 10.80.2.187
    inform Configure SNMP inform notifications
    trap Configure SNMP trap notifications
    AOS-CX(config)# snmp-server host 10.80.2.187 trap
    version Configure version
    AOS-CX(config)# snmp-server host 10.80.2.187 trap version
    v1 Configure version 1 trap
    v2c Configure version 2c trap
    v3 Configure version 3 trap
    AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c
    community Configure community name
    port Configure UDP port
    vrf Configure VRF
    <cr>
    AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community
    WORD Name of the community, max up to 32 characters (Default: public)
    AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community public
    port Configure UDP port
    vrf Configure VRF
    <cr>
    AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community public vrf mgmt
    port Configure UDP port
    <cr>


    AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community public vrf mgmt
    AOS-CX(config)#
    AOS-CX(config)# end
    AOS-CX#

     

    Step3: Let's verify SNMP configuration on AOS-CX:

    AOS-CX# sh snmp
    agent-port SNMP agent-port
    community Configured community names
    system SNMP system MIB configurations
    trap trap configuration
    vrf SNMP enabled VRF
    AOS-CX# sh snmp vrf
    SNMP enabled VRF
    ----------------------------
    mgmt
    AOS-CX# sh snmp agent-port
    SNMP agent port : 161
    AOS-CX# sh snmp community
    ---------------------
    SNMP communities
    ---------------------
    public
    AOS-CX# sh snmp trap
    ---------------------------------------------------------------------------------------------
    Host Port Type Version Community-Name/User-Name vrf
    --------------------------------------------------------------------------------------------
    10.80.2.187 162 trap v2c public mgmt
    AOS-CX# sh snmp system
    <cr>
    AOS-CX# sh snmp system
    SNMP system information
    ----------------------------
    System description : ML.10.05.0001BH
    AOS-CX#


    AOS-CX# sh running-config | in snmp
    snmp-server vrf mgmt
    snmp-server host 10.80.2.187 trap version v2c vrf mgmt
    AOS-CX#

     

    AOS-CX# sh system
    Hostname : BLDG02-F1
    System Description : ML.10.05.0001BH
    System Contact :
    System Location :

    Vendor : Aruba
    Product Name : JL728A 6200F 48G CL4 4SFP+740W Swch
    Chassis Serial Nbr : SG0ZKW800Y
    Base MAC Address : 104f58-f719c0
    ArubaOS-CX Version : ML.10.05.0001BH

    Time Zone : UTC

    Up Time : 6 days, 22 hours, 51 minutes
    CPU Util (%) : 9
    Memory Usage (%) : 19
    AOS-CX#

     

    That's all, simple steps to configure snmp on CX.

    Let's see it on MIB Browser with snmp walk:

     

     

    CX_MIB_Walk.png

     

    Thank you,

    Yash



  • 2.  RE: AOS-CX SNMP simple steps to Configure!

    Posted Jul 17, 2020 04:24 PM

    Any idea how to get connected client info (eg.: mac addresses that are connected to a port)?

    That seems to be missing from my snmpwalks.



  • 3.  RE: AOS-CX SNMP simple steps to Configure!

    Posted Jul 18, 2020 04:40 AM

    @ricardoduarte wrote:

    Any idea how to get connected client info (eg.: mac addresses that are connected to a port)?

    That seems to be missing from my snmpwalks.


    Do you have look API for this ?



  • 4.  RE: AOS-CX SNMP simple steps to Configure!

    Posted Jul 18, 2020 04:59 AM

    Yeah, I could do it.

    But Airwave can't



  • 5.  RE: AOS-CX SNMP simple steps to Configure!

    Posted Jul 20, 2020 07:34 AM

    @ricardoduarte wrote:

    Yeah, I could do it.

    But Airwave can't


    What firmware and what OID do you are using ?



  • 6.  RE: AOS-CX SNMP simple steps to Configure!

    Posted Jul 20, 2020 07:38 AM

    I'm snmpwalking .1 , and the mac addresses of my clients are nowhere to be seen, other than some of them that support lldp (on the lldp OID).