SNMP Wiring Survey, MAC Search, Truck Identification



  • I have a bunch of HP Precurves 2848,3500

    I want to find out how MAC=PORT fits. I'm doing a survey of SNMP.

    snmpwalk -v2c -c public switch1.mydomain 1.3.6.1.2.1.17.7.1.2.2.1.2 
    

    In this form, I'm getting a bunch of type lines.

    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.0.27.120.236.125.187 = INTEGER: 36
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.0.29.96.154.226.97 = INTEGER: 6
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.0.30.11.7.132.102 = INTEGER: 30
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.0.30.11.234.50.104 = INTEGER: 49
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.0.30.11.234.209.106 = INTEGER: 49
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.1.30.11.234.225.144 = INTEGER: 49
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.1.30.103.80.144.161 = INTEGER: 292
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.1.31.41.235.36.67 = INTEGER: 49
    SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.1.33.90.221.183.59 = INTEGER: 49
    

    After filtering (discharge of unnecessary, dec2hex, port allocation)

    snmpwalk -v2c -c public switch1.mydomain 1.3.6.1.2.1.17.7.1.2.2.1.2 | sed "s/\./ /g; s/SNMPv2-SMI::mib-2 17 7 1 2 2 1 2 //g ; s/ = INTEGER://g" | awk '{printf "MAC:%02X%02X%02X%02X%02X%02X Port %02d\n",$2,$3,$4,$5,$6,$7,$8}'
    

    I'll get that list.

    MAC:001B78EC7DBB Port 36
    MAC:001D609AE261 Port 06
    MAC:001E0B078466 Port 30
    MAC:001E0BEA3268 Port 49
    MAC:001E0BEAD16A Port 49
    MAC:011E0BEAE190 Port 49
    MAC:011E675090A1 Port 292
    MAC:011F29EB2443 Port 49
    MAC:01215ADDB73B Port 49
    

    The primary has 48 regular ports, + 4 10GbE, for communication with other bruises (not known as 2x10GbE-GEN, 2x10GbE-CX4)

    Everything would be fine while the ports are going to wing= 48. When ports go tar48 (this is exactly the four additional ones (they are listed as A1-A4) in the primary). And if the normal numbering continues, then 49,50,51.51. There's no problem with this, either, if the port of grad 48, the MAS is on another wedding, going there and looking for a port until grad=48.

    And here are ports 291, 294, 297.... and other, experimentally, it's a tranny.

    But how do you know what kind of tranq is, what ports and what number they're all about, a mystery?

    P.S. I found snmp brazer matching numbers and names.

    snmpwalk -v2c -c public switch1.mydomain .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr
    

    Yes.

    IF-MIB::ifDescr.47 = STRING: 47
    IF-MIB::ifDescr.48 = STRING: 48
    IF-MIB::ifDescr.49 = STRING: A1
    IF-MIB::ifDescr.50 = STRING: A2
    IF-MIB::ifDescr.51 = STRING: A3
    IF-MIB::ifDescr.52 = STRING: A4
    IF-MIB::ifDescr.291 = STRING: Trk2
    IF-MIB::ifDescr.292 = STRING: Trk3
    IF-MIB::ifDescr.293 = STRING: Trk4
    

    That's what I need!



  • I found a snmp brazer matching numbers and names--

    snmpwalk -v2c -c public switch1.mydomain .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2