deviceId()
interfaceEnabled()
interfaceNames()
neighbourCapability()
neighbourId()
neighbourInformation()
neighbourPort()
OID_CDP_DEVICE_ID
OID_CDP_INTERFACE_ENABLED
OID_CDP_INTERFACE_NAME
OID_CDP_NEIGHBOUR_CAPABILITY
OID_CDP_NEIGHBOUR_ID
OID_CDP_NEIGHBOUR_PORT
A class for performing SNMP V2 queries on Cisco devices
copyright | Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland |
---|---|
author | Barry O'Donovan |
deviceId() : string
string
The device's CDP (Cisco Discovery Protocol) IDinterfaceEnabled() : array
Applies the TruthValue post processor (self::ppTruthValue()) to turn SNMP values into true / false.
array
The device's interfaces CDP enabled status' (as boolean true / false)interfaceNames() : array
array
The device's interface names as seen in CDPneighbourCapability() : array
array
The device's CDP neighbour capabilities (as a decimal integer) indexed by the current device's port IDneighbourId() : array
array
The device's CDP neighbours (by their CDP ID) indexed by the current device's port IDneighbourInformation() : array
Returns an array of neighbours indexed by the neighbour CDP ID. For example:
Array ( [cr-sw03.ixdub1.opensolutions.ie] => Array ( [0] => Array ( [localPortId] => 10101 [localPort] => GigabitEthernet1/0/1 [remotePort] => GigabitEthernet0/1 )
[1] => Array
(
[localPortId] => 10102
[localPort] => GigabitEthernet1/0/2
[remotePort] => FastEthernet0/2
)
)
[ ... ]
)
see | \neighbourId() |
---|---|
see | \OSS\SNMP\MIBS\Interface::descriptions() |
see | \neighbourPort() |
array
CDP neighbours and their connected portsneighbourPort() : array
E.g. a sample call may return:
Array ( [10101] => GigabitEthernet0/1 [10102] => FastEthernet0/2 [10103] => GigabitEthernet1/0/24 [10105] => GigabitEthernet1/0/2 )
meaning, for example, that our local port with ID 10101 is connected to port GigabitEthernet0/1 on the neighbour connected to that local port. You can discover the neighbour ID via neighbourId().
see | \neighbourId() |
---|
array
The device's CDP neighbours connected port *description* indexed by the current device's port IDOID_CDP_DEVICE_ID
OID_CDP_INTERFACE_ENABLED
OID_CDP_INTERFACE_NAME
OID_CDP_NEIGHBOUR_CAPABILITY
OID_CDP_NEIGHBOUR_ID
OID_CDP_NEIGHBOUR_PORT