1 Reply Latest reply on Jul 23, 2019 5:58 AM by Andrew Waters

    MAC Table on CISCO Switch through SNMP

    Michel BIGAULT
      Share This:

      Hi all,

       

      The customer has several CISCO Switches (NEXUS 5K & 7K) with multiple VLAN.

      They would like to retrieve the MAC Table on each VLAN on the network device with DISCOVERY by using SNMP.

      You can run on the switch a specific command-line by specifying the VLAN :

      snmpwalk -v 2c -c XXXXX@4 xx.yy.zz.tt 1.3.6.1.2.1.17.4.3.1.1

       

      and the result is fine :

      sh mac address-table vlan 4

         VLAN     MAC Address      Type      age     Secure NTFY   Ports/SWID.SSID.LID

      ---------+-----------------+--------+---------+------+----+------------------

      * 4        AAAAAAAAAAA      dynamic   20         F    F  Po201

      * 4       AAAAAAAAAAAA    dynamic   0          F    F  Po201

      + 4       AAAAAAAAAAA     dynamic   0          F    F  Po2

      * 4        AAAAAAAAAAA     dynamic   0          F    F  Po201

      * 4        AAAAAAAAAAA    dynamic   0          F    F  Po201

       

      The question is :

      How can I setup a pattern using discovery.snmpGetTable or discovery.snmpGet to specify the VLAN Number and get the MAC Address ?

       

      Thanks for your answers,

       

      Michel BIGAULT