Ad Widget

Collapse

Accurate swt port descriptions with templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jasper9890
    Junior Member
    • Nov 2006
    • 3

    #1

    Accurate swt port descriptions with templates

    I think i've been going about building my templates for switches wrong. Could someone share the process you went thru to get accurate switch port descriptions on graphs? Thanks!
  • triplem
    Junior Member
    • Jun 2006
    • 4

    #2
    Walk your switch with the IF-MIB (assuming your switch supports the IF-MIB):

    snmpwalk -v2c -c communityname -m IF-MIB someswitch

    You're looking for the following:

    IF-MIB::ifAlias.1
    IF-MIB::ifAlias.2
    etc...

    works fine for Cisco switches.

    from the IF-MIB.txt:

    ifAlias OBJECT-TYPE
    SYNTAX DisplayString (SIZE(0..64))
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
    "This object is an 'alias' name for the interface as
    specified by a network manager, and provides a non-volatile
    'handle' for the interface.

    (snip)

    An example of the value which a network manager might store
    in this object for a WAN interface is the (Telco's) circuit
    number/identifier of the interface.

    Comment

    Working...