Asset tracking using SNMP

Discussion in 'Cisco' started by Eric, Mar 1, 2004.

  1. Eric

    Eric Guest

    All,

    I am trying to use the snmp OID's in CISCO-ENTITY* to track which ports are
    in which slots on our routers, so I can use that data at a later stage for
    provsioning. On a 7200 this works reasonably well, at least I get some faint
    idea as to what type of card is where. For the 7500 routers however I only
    get to see that it is a PA in a VIP slot, which is not terribly useful. Has
    anyone tried this before (and came up with results?)

    OID used: 1.3.6.1.2.1.47.1.1.1.1

    Cheers!
     
    Eric, Mar 1, 2004
    #1
    1. Advertisements

  2. Entity MIB is gradually rolling out on a platform by platform basis. Which
    IOS version are you using? That matters. Also, some older devices may
    never get entity MIB support.
     
    Phillip Remaker, Mar 2, 2004
    #2
    1. Advertisements

  3. Eric

    Eric Guest

    Phillip,

    All IOS 12.2.18S2. I guess there is nothing left but parsing sh diags
    then...

    Cheers!
     
    Eric, Mar 2, 2004
    #3
  4. Hi,

    If it's being rolled out, what's the replacement mib/method?

    Thanks,

    Erik
     
    Erik Tamminga, Mar 3, 2004
    #4
  5. For the 7500 you can use the OLD-CISCO-CHASSIS-MIB.
    cardTable and cardIfIndexTable might have what you want.

    /hjj

    Here is an example of a 7500:

    ***** cardTable
    SNMP table: cardTable

    index,cardIndex,cardType,cardDescr,cardSerial,cardHwVersion,cardSwVersion,cardSlotNumber,cardContainedByIndex,cardOperStatus,cardSlots
    1,1,rsp4,"R5000",6385559,"1.0","12.2",6,0,up,0
    2,2,chassisInterface,"Environmental Monitor",6676405,"1.0","",-1,0,not-specified,0
    3,3,vip2-50,"Versatile Interface Processor",11514470,"2.02","22.20",0,0,up,2
    5,5,vip2-50,"Versatile Interface Processor",12732071,"2.02","22.20",2,0,up,2
    7,7,vip2-50,"Versatile Interface Processor",7514539,"2.01","22.20",5,0,up,2
    10,10,vip2-50,"Versatile Interface Processor",7523557,"2.01","22.20",8,0,up,2
    13,13,vip2-50,"Versatile Interface Processor",7519525,"2.01","22.20",9,0,up,2
    16,16,vip2-50,"Versatile Interface Processor",17953920,"2.02","22.20",10,0,up,2
    19,19,vip2-50,"Versatile Interface Processor",12715795,"2.02","22.20",11,0,up,2
    22,22,vip2-50,"Versatile Interface Processor",12638746,"2.02","22.20",12,0,up,2
    26,26,pa-possw-sm,"POS Port Adapter (SM)",14078693,"2.0","not available",0,5,up,0
    27,27,pa-1fe-tx-isl,"FastEthernet Port Adapter (TX-ISL)",6642935,"1.0","not available",0,7,not-specified,0
    28,28,pa-1fe-tx-isl,"FastEthernet Port Adapter (TX-ISL)",6642946,"1.0","not available",0,10,not-specified,0
    29,29,pa-8e,"Ethernet Port Adapter",6631846,"1.12","not available",0,13,not-specified,0
    30,30,pa-atmdx-mm-oc3,"ENHANCED ATM OC3 MM Port Adapter",14075046,"2.0","not available",0,16,up,0
    31,31,pa-1fe-fx-isl,"FastEthernet Port Adapter (FX-ISL)",16390731,"1.4","not available",0,19,not-specified,0
    32,32,pa-1fe-tx-isl,"FastEthernet Port Adapter (TX-ISL)",11552844,"1.2","not available",0,22,not-specified,0
    33,33,pa-1fe-tx-isl,"FastEthernet Port Adapter (TX-ISL)",6719157,"1.0","not available",1,7,not-specified,0
    34,34,pa-1fe-tx-isl,"FastEthernet Port Adapter (TX-ISL)",6642964,"1.0","not available",1,10,not-specified,0
    35,35,pa-4me1-unbal,"G703/E1 Serial Port Adapter",9591101,"1.16","not available",1,13,not-specified,0
    36,36,pa-1fe-tx-isl,"FastEthernet Port Adapter (TX-ISL)",8525525,"1.0","not available",1,16,not-specified,0
    37,37,pa-1fe-fx-isl,"FastEthernet Port Adapter (FX-ISL)",16390738,"1.4","not available",1,19,not-specified,0
    38,38,pa-1fe-tx-isl,"FastEthernet Port Adapter (TX-ISL)",6698025,"1.0","not available",1,22,not-specified,0
    39,39,pa-8ce1,"Channelized E1/PRI - balanced",22338059,"1.0","not available",1,3,not-specified,0

    ***** cardTableEntry

    ***** cardIfIndexTable
    SNMP table: cardIfIndexTable

    index,cardIfIndex,cardIfSlotNumber,cardIfPortNumber,cardIfCardIndex,cardIfConnectorTypeEnabled
    1,1,-1,0,26,not-specified
    2,2,-1,0,27,rj-45
    3,3,-1,0,33,rj-45
    4,4,-1,0,28,rj-45
    5,5,-1,0,34,rj-45
    6,6,-1,0,29,not-specified
    7,7,-1,1,29,not-specified
    8,8,-1,2,29,not-specified
    9,9,-1,3,29,not-specified
    10,10,-1,4,29,not-specified
    11,11,-1,5,29,not-specified
    12,12,-1,6,29,not-specified
    13,13,-1,7,29,not-specified
    14,14,-1,0,35,not-specified
    15,15,-1,1,35,not-specified
    16,16,-1,2,35,not-specified
    17,17,-1,3,35,not-specified
    18,18,-1,0,30,not-specified
    19,19,-1,0,36,rj-45
    20,20,-1,0,31,rj-45
    21,21,-1,0,37,rj-45
    22,22,-1,0,32,rj-45
    23,23,-1,0,38,rj-45
    28,28,-1,?,2,not-specified
    29,29,-1,-1,-1,-1
    30,30,-1,-1,-1,-1
    31,31,-1,-1,-1,-1
    32,32,-1,-1,-1,-1
    33,33,-1,-1,-1,-1
    34,34,-1,-1,-1,-1
    35,35,-1,-1,-1,-1
    36,36,-1,-1,-1,-1
     
    Hans =?iso-8859-1?Q?J=F8rgen?= Jakobsen, Mar 3, 2004
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.