[c-nsp] OID to pick up Device Type of Cisco devices

lee.e.rian at census.gov lee.e.rian at census.gov
Sat Nov 1 11:30:23 EDT 2008


-----mussieg wrote: -----

>I highly doubt you will find an OID that tells you if a device is
>router or a switch.  For awhile now, Cisco has managed to merge the
>various functions (bridge, switch, router ..etc) into a single
>chassis.  Your best bet might be to create your own mapping file and
>use the output of sysDescr.0 to determine which one is which ..

Especially considering his example was a Catalyst 6500 chassis.  He'd have
to distinguish switched/routed ports present or not...

I'm not a work, so I can't check, but the RFC1213 sysServices might show if
the routing and/or bridging functionality is enabled:

          sysServices OBJECT-TYPE
              SYNTAX  INTEGER (0..127)
              ACCESS  read-only
              STATUS  mandatory
              DESCRIPTION
                      "A value which indicates the set of services that
                      this entity primarily offers.

                      The value is a sum.  This sum initially takes the
                      value zero, Then, for each layer, L, in the range
                      1 through 7, that this node performs transactions
                      for, 2 raised to (L - 1) is added to the sum.  For
                      example, a node which performs primarily routing
                      functions would have a value of 4 (2^(3-1)).  In
                      contrast, a node which is a host offering
                      application services would have a value of 72
                      (2^(4-1) + 2^(7-1)).  Note that in the context of
                      the Internet suite of protocols, values should be
                      calculated accordingly:

                           layer  functionality
                               1  physical (e.g., repeaters)
                               2  datalink/subnetwork (e.g., bridges)
                               3  internet (e.g., IP gateways)
                               4  end-to-end  (e.g., IP hosts)
                               7  applications (e.g., mail relays)


Lee
>
>
>-------------- Original message ----------------------
>From: "Lakshminarayanan P" <lnarayanan.p at gmail.com>
>> Hi All,
>>
>>
>>
>> There is a requirement for me to pick up "device types" of Cisco
>devices
>> using SNMP. Could somebody share a OID or direct me to the MIB file
>that can
>> help me get this information?
>>
>>
>>
>> For example, a 2811 polled with this OID should return a value
>which says
>> that the device is a "Router".
>>
>>
>>
>> While I understand that a lot of Cisco modular devices can act as a
>Switch /
>> Router / Firewall / Load Balancer based on the modules installed
>and/or the
>> IOS running, I just need to get the basic device type. As an
>example, a
>> Catalyst 6500 chassis polled with this OID should return something
>like
>> "Switch" regardless of the presence of a Firewall Services Module
>on it.
>>
>>
>>
>> Is there such an Object?
>>
>>
>>
>> Thanks in anticipation.....
>>
>> Lakshminarayanan
>> _______________________________________________
>> cisco-nsp mailing list  cisco-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-nsp
>> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
>_______________________________________________
>cisco-nsp mailing list  cisco-nsp at puck.nether.net
>https://puck.nether.net/mailman/listinfo/cisco-nsp
>archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list