A class for performing SNMP V2 queries on Cisco devices

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

 Methods

Get the SNMP instance

getSNMP() : \OSS_SNMP\SNMP

Returns

\OSS_SNMP\SNMPInstance of the SNMP object

Returns the maximum MST instance number

maxInstanceNumber() : string
> "The maximum MST (Multiple Spanning Tree) instance id, > that can be supported by the device for Cisco proprietary > implementation of the MST Protocol. > > This object is deprecated and replaced by stpxSMSTMaxInstanceID."
deprecated Use \OSS_SNMP\MIBS\Cisco\SMST::maxInstanceID()

Returns

stringThe maximum MST instance number

Get the device's MST port roles (by given instance id)

portRoles(int $iid, boolean $translate = false) : array
Only ports participating in MST for the given instance id are returned. > "An entry containing the port role information for the RSTP > protocol on a port for a particular Spanning Tree instance." The original OIDs for this are deprecated: > stpxMSTPortRoleTable - 1.3.6.1.4.1.9.9.82.1.11.12 > > "A table containing a list of the bridge ports for a > particular MST instance. This table is only instantiated > when the stpxSpanningTreeType is mst(4). > > This table is deprecated and replaced with > stpxRSTPPortRoleTable."
see

Parameters

$iid

int

The MST instance ID to query port roles for

$translate

boolean

If true, return the string representation via RSTP::$STP_X_RSTP_PORT_ROLES

Returns

arrayThe device's MST port roles (by given instance id)

Returns the operational MST region name.

regionName() : string

Returns

stringThe operational MST region name

Returns the operational MST region revision.

regionRevision() : string
deprecated Use \OSS_SNMP\MIBS\Cisco\SMST::regionRevision()

Returns

stringThe operational MST region revision

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

 

OID_STP_X_MST_MAX_INSTANCE_NUMBER

OID_STP_X_MST_MAX_INSTANCE_NUMBER = '.1.3.6.1.4.1.9.9.82.1.11.1.0' 
 

OID_STP_X_MST_REGION_NAME

OID_STP_X_MST_REGION_NAME = '.1.3.6.1.4.1.9.9.82.1.11.2.0' 
 

OID_STP_X_MST_REGION_REVISION

OID_STP_X_MST_REGION_REVISION = '.1.3.6.1.4.1.9.9.82.1.11.3.0'