Wired Intelligent Edge

last person joined: 6 hours ago 

Bring performance and reliability to your network with the Aruba Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of the ArubaOS-Switch and ArubaOS-CX devices, and find ways to improve security across your network to bring together a mobile first solution.
Expand all | Collapse all

CX switching walkmib

This thread has been viewed 10 times
  • 1.  CX switching walkmib

    Posted 19 days ago
    Hi,

    I am looking for a command which can display the SNMP index of the port.

    In Junos, by using this command "show interfaces snmp-index <number>" we can see the interface.

    In HP-Switch-5412Rzl2, we can use this command to see the interface: (config)# walkmib ifdescr  (https://community.arubanetworks.com/blogs/esupport1/2018/10/01/how-to-use-snmp-to-view-the-layer-1-fiber-counters-from-the-command-line-on-arubahpe-switches)

    Can someone please let me know what is the equivalent command in CX switching?

    Thank you.


  • 2.  RE: CX switching walkmib

    Posted 18 days ago
    Hello

    You can use the "snmpwalk" option in the diag utilities command and perform an SNMP walk of the ifdescr OID similar to the way it is done on the 5412zl2.
    SNMP has to be enabled on the switch for this to work.

    You need to enable diagnostic mode with the "diagnostics" command before you can use the diag utilities.
    Here is an example with the 6200F with the commands and the results. Some output omitted for brevity.

    6200#diagnostics

    6200# diag utilities snmpwalk oid ifdescr

    IF-MIB::ifDescr.1 = STRING: 1/1/1

    IF-MIB::ifDescr.2 = STRING: 1/1/2

    IF-MIB::ifDescr.3 = STRING: 1/1/3

    IF-MIB::ifDescr.4 = STRING: 1/1/4

    IF-MIB::ifDescr.5 = STRING: 1/1/5

    IF-MIB::ifDescr.6 = STRING: 1/1/6

    IF-MIB::ifDescr.7 = STRING: 1/1/7

    IF-MIB::ifDescr.8 = STRING: 1/1/8

    IF-MIB::ifDescr.9 = STRING: 1/1/9
    ....
    ...

    IF-MIB::ifDescr.778 = STRING: lag10

    IF-MIB::ifDescr.16777217 = STRING: vlan1

    IF-MIB::ifDescr.16777226 = STRING: vlan10

    IF-MIB::ifDescr.268435456 = STRING: eth0



    ------------------------------
    Emil Gogushev
    ------------------------------