A class for performing SNMP V2 queries on Cisco devices

copyright Copyright (c) 2012, 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

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

Get the device's VTP VLAN names (indexed by VLAN ID)

vlanNames() : array

Returns

arrayThe device's VTP VLAN names (indexed by VLAN ID)

Get the device's VTP VLAN States (indexed by VLAN ID)

vlanStates(boolean $translate = false) : array
see
see and others

Parameters

$translate

boolean

If true, return the string representation via self::$VTP_VLAN_TYPES

Returns

arrayThe device's VTP VLAN States (indexed by VLAN ID)

Get the device's VTP VLAN Types (indexed by VLAN ID)

vlanTypes(boolean $translate = false) : array
see
see and others

Parameters

$translate

boolean

If true, return the string representation via self::$VTP_VLAN_TYPES

Returns

arrayThe device's VTP VLAN types (indexed by VLAN ID)

 Properties

 

Text representation of VTP VLAN status.

$VTP_VLAN_STATES : array

Default

array(self::VTP_VLAN_STATE_OPERATIONAL => 'operational', self::VTP_VLAN_STATE_SUSPENDED => 'suspended', self::VTP_VLAN_STATE_MTU_TOO_BIG_FOR_DEVICE => 'mtuTooBigForDevice', self::VTP_VLAN_STATE_MTU_TOO_BIG_FOR_TRUNK => 'mtuTooBigForTrunk')
Static
see
 

Text representation of VTP VLAN types.

$VTP_VLAN_TYPES : array

Default

array(self::VTP_VLAN_TYPE_ETHERNET => 'ethernet', self::VTP_VLAN_TYPE_FDDI => 'fddi', self::VTP_VLAN_TYPE_TOKEN_RING => 'tokenRing', self::VTP_VLAN_TYPE_FDDI_NET => 'fddiNet', self::VTP_VLAN_TYPE_TR_NET => 'trNet', self::VTP_VLAN_TYPE_DEPRECATED => 'deprecated')
Static
see
 

Instance for the SNMP object

$_snmp 

Default

null

 Constants

 

OID_STP_X_RSTP_PORT_ROLE

OID_STP_X_RSTP_PORT_ROLE = '.1.3.6.1.4.1.9.9.82.1.12.2.1.3' 
 

OID_VTP_VLAN_NAME

OID_VTP_VLAN_NAME = '.1.3.6.1.4.1.9.9.46.1.3.1.1.4.1' 
 

OID_VTP_VLAN_STATUS

OID_VTP_VLAN_STATUS = '.1.3.6.1.4.1.9.9.46.1.3.1.1.2.1' 
 

OID_VTP_VLAN_TYPE

OID_VTP_VLAN_TYPE = '.1.3.6.1.4.1.9.9.46.1.3.1.1.3.1' 
 

Constant for possible value of VTP VLAN status.

VTP_VLAN_STATE_MTU_TOO_BIG_FOR_DEVICE = 3 
see
 

Constant for possible value of VTP VLAN status.

VTP_VLAN_STATE_MTU_TOO_BIG_FOR_TRUNK = 4 
see
 

Constant for possible value of VTP VLAN status.

VTP_VLAN_STATE_OPERATIONAL = 1 
see
 

Constant for possible value of VTP VLAN status.

VTP_VLAN_STATE_SUSPENDED = 2 
see
 

Constant for possible value of VTP VLAN type.

VTP_VLAN_TYPE_DEPRECATED = 6 
see
 

Constant for possible value of VTP VLAN type.

VTP_VLAN_TYPE_ETHERNET = 1 
see
 

Constant for possible value of VTP VLAN type.

VTP_VLAN_TYPE_FDDI = 2 
see
 

Constant for possible value of VTP VLAN type.

VTP_VLAN_TYPE_FDDI_NET = 4 
see
 

Constant for possible value of VTP VLAN type.

VTP_VLAN_TYPE_TOKEN_RING = 3 
see
 

Constant for possible value of VTP VLAN type.

VTP_VLAN_TYPE_TR_NET = 5 
see