A class for performing SNMP V2 queries on generic devices

copyright Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland
author Barry O'Donovan

 Methods

Utility function to identify configured but unattached LAG ports

findFailedLAGPorts() : array

Returns

arrayArray of indexed port ids (array index, not value) of configured but unattached LAG ports

Gets an associate array of LAG ports with the [id] => name of it's constituent ports

getLAGPorts() : array
E.g.: [5048] => Array ( [10111] => GigabitEthernet1/0/11 [10112] => GigabitEthernet1/0/12 )

Returns

arrayAssociate array of LAG ports with the [id] => name of it's constituent ports

Get the SNMP instance

getSNMP() : \OSS_SNMP\SNMP

Returns

\OSS_SNMP\SNMPInstance of the SNMP object

Returns an associate array of port IDs with a boolean value to indicate if it's an aggregate port (true) or an individual port (false).

isAggregatePorts() : array

Returns

arrayAssociate array of port IDs with a boolean value to indicate if it's an aggregate port (true) or not

Returns an associate array of port IDs with the ID of the aggregate port that they are a member of (else 0 if not a LAG port)

portAttachedIds() : array

Returns

arrayAssociate array of port IDs with the ID of the aggregate port that they are a member of

Set the SNMP instance

setSNMP(\OSS_SNMP\SNMP $snmp) : \OSS_SNMP\MIB

Parameters

$snmp

\OSS_SNMP\SNMP

the SNMP instance

Returns

\OSS_SNMP\MIBAn instance of this class for fluent interfaces

 Properties

 

Instance for the SNMP object

$_snmp 

Default

null

 Constants

 

Boolean value indicating whether the Aggregator represents an Aggregate (`TRUE') or an Individual link (`FALSE')

OID_LAG_AGGREGATE_OR_INDIVIDUAL = '.1.2.840.10006.300.43.1.2.1.1.24' 
 

The identifier value (port ID) of the Aggregator that this Aggregation Port is currently attached to. Zero indicates that the Aggregation Port is not currently attached to an Aggregator.

OID_LAG_PORT_ATTACHED_ID = '.1.2.840.10006.300.43.1.2.1.1.13'