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

Returns an associate array of physical aliases

physicalAlias() : array

e.g. [1005] => 10001

Returns

arrayAssociate array of physical aliases

Returns an associate array of entPhysicalClass

physicalClass(boolean $translate) : array

e.g. [1005] => 10 / port

Parameters

$translate

boolean

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

Returns

arrayAssociate array of entPhysicalClass

Returns an associate array of entPhysicalParentRelPos

physicalParentRelPos() : array

e.g. [1005] => 1

Returns

arrayAssociate array of entPhysicalParentRelPos

Utility function for MIBS\Cisco\RSTP::rstpPortRole() to try and translate a port index into a port ID

relPosToAlias() : Array

Makes a number of assumptions including that it has to be of type port, that the ID must be >10000, etc.

Returns

Arrayof relative positions to port IDs

 Properties

 

$ENTITY_PHSYICAL_CLASS

$ENTITY_PHSYICAL_CLASS 

 Constants

 

OID_ENTITY_PHYSICAL_ALIAS

OID_ENTITY_PHYSICAL_ALIAS 

 

OID_ENTITY_PHYSICAL_CLASS

OID_ENTITY_PHYSICAL_CLASS 

 

OID_ENTITY_PHYSICAL_PARENT_REL_POS

OID_ENTITY_PHYSICAL_PARENT_REL_POS 

 

PHYSICAL_CLASS_CHASSIS

PHYSICAL_CLASS_CHASSIS 

 

PHYSICAL_CLASS_CONTAINER

PHYSICAL_CLASS_CONTAINER 

 

PHYSICAL_CLASS_FAN

PHYSICAL_CLASS_FAN 

 

PHYSICAL_CLASS_MODULE

PHYSICAL_CLASS_MODULE 

 

PHYSICAL_CLASS_PORT

PHYSICAL_CLASS_PORT 

 

PHYSICAL_CLASS_POWER_SUPPLY

PHYSICAL_CLASS_POWER_SUPPLY 

 

PHYSICAL_CLASS_SENSOR

PHYSICAL_CLASS_SENSOR