Ad Widget

Collapse

Inventory population for a switchstack

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vulzscht
    Junior Member
    • Jun 2015
    • 3

    #1

    Inventory population for a switchstack

    Hello, Zabbix Masters

    I need some help with inventory population for a switchstack, especially serial numbers.
    For example I have switchstack with two WS-C3750G-24T.
    I can obtain results with CISCO-STACK-MIB (example below), but is there any way to put two serials in one field except some external scripts?

    Code:
    [root@mirage0 externalscripts]# snmpwalk -v2c -c public ccsw0 .1.3.6.1.4.1.9.5.1.3
    CISCO-STACK-MIB::moduleIndex.1 = INTEGER: 1
    CISCO-STACK-MIB::moduleIndex.2 = INTEGER: 2
    CISCO-STACK-MIB::moduleType.1 = INTEGER: other(1)
    CISCO-STACK-MIB::moduleType.2 = INTEGER: other(1)
    CISCO-STACK-MIB::moduleStatus.1 = INTEGER: ok(2)
    CISCO-STACK-MIB::moduleStatus.2 = INTEGER: ok(2)
    CISCO-STACK-MIB::moduleTestResult.1 = INTEGER: 0
    CISCO-STACK-MIB::moduleTestResult.2 = INTEGER: 0
    CISCO-STACK-MIB::moduleAction.1 = INTEGER: other(1)
    CISCO-STACK-MIB::moduleAction.2 = INTEGER: other(1)
    CISCO-STACK-MIB::moduleName.1 = STRING: 
    CISCO-STACK-MIB::moduleName.2 = STRING: 
    CISCO-STACK-MIB::moduleNumPorts.1 = INTEGER: 24
    CISCO-STACK-MIB::moduleNumPorts.2 = INTEGER: 24
    CISCO-STACK-MIB::modulePortStatus.1 = Hex-STRING: 02 01 01 01 02 01 02 02 01 02 02 01 01 02 02 01 
    01 01 01 02 01 02 01 02 01 
    CISCO-STACK-MIB::modulePortStatus.2 = Hex-STRING: 02 01 01 01 01 01 01 01 01 02 02 01 01 01 01 01 
    01 01 01 02 01 02 01 01 01 
    CISCO-STACK-MIB::moduleSubType.1 = INTEGER: empty(2)
    CISCO-STACK-MIB::moduleSubType.2 = INTEGER: empty(2)
    CISCO-STACK-MIB::moduleModel.1 = STRING: WS-C3750G-24T
    CISCO-STACK-MIB::moduleModel.2 = STRING: WS-C3750G-24T
    CISCO-STACK-MIB::moduleHwVersion.1 = STRING: J0
    CISCO-STACK-MIB::moduleHwVersion.2 = STRING: N0
    CISCO-STACK-MIB::moduleFwVersion.1 = STRING: 12.2(55)SE7
    CISCO-STACK-MIB::moduleFwVersion.2 = STRING: 12.2(55)SE7
    CISCO-STACK-MIB::moduleSwVersion.1 = STRING: 12.2(55)SE7
    CISCO-STACK-MIB::moduleSwVersion.2 = STRING: 12.2(55)SE7
    CISCO-STACK-MIB::moduleStandbyStatus.1 = INTEGER: other(1)
    CISCO-STACK-MIB::moduleStandbyStatus.2 = INTEGER: other(1)
    CISCO-STACK-MIB::moduleIPAddress.1 = IpAddress: 0.0.0.0
    CISCO-STACK-MIB::moduleIPAddress.2 = IpAddress: 0.0.0.0
    CISCO-STACK-MIB::moduleIPAddressVlan.1 = INTEGER: 0
    CISCO-STACK-MIB::moduleIPAddressVlan.2 = INTEGER: 0
    CISCO-STACK-MIB::moduleSubType2.1 = INTEGER: empty(2)
    CISCO-STACK-MIB::moduleSubType2.2 = INTEGER: empty(2)
    CISCO-STACK-MIB::moduleSerialNumberString.1 = STRING: CAT0929XXXX
    CISCO-STACK-MIB::moduleSerialNumberString.2 = STRING: FDO1237XXXX
Working...