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 device's RSTP port roles (by given vlan id)

rstpPortRole(int $vid, boolean $translate) : array

Only ports participating in RSTP for the given VLAN id are returned.

This function will also convert STP port IDs to the device proper port IDs. E.g. sample output:

Array ( [10101] => 3 [10103] => 3 [10105] => 3 [5048] => 2 )

see \$STP_X_RSTP_PORT_ROLES
see \STP_X_RSTP_PORT_ROLE_ROOT

Parameters

$vid

int

The RSTP VLAN ID to query port roles for

$translate

boolean

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

Returns

arrayThe device's RSTP port roles (by given vlan id)

 Properties

 

$STP_X_RSTP_PASSING_PORT_ROLES

$STP_X_RSTP_PASSING_PORT_ROLES 

 

$STP_X_RSTP_PORT_ROLES

$STP_X_RSTP_PORT_ROLES 

 Constants

 

OID_STP_X_RSTP_PORT_ROLE

OID_STP_X_RSTP_PORT_ROLE 

 

STP_X_RSTP_PORT_ROLE_ALTERNATE

STP_X_RSTP_PORT_ROLE_ALTERNATE 

 

STP_X_RSTP_PORT_ROLE_BACKUP

STP_X_RSTP_PORT_ROLE_BACKUP 

 

STP_X_RSTP_PORT_ROLE_BOUNDARY

STP_X_RSTP_PORT_ROLE_BOUNDARY 

 

STP_X_RSTP_PORT_ROLE_DESIGNATED

STP_X_RSTP_PORT_ROLE_DESIGNATED 

 

STP_X_RSTP_PORT_ROLE_DISABLED

STP_X_RSTP_PORT_ROLE_DISABLED 

 

STP_X_RSTP_PORT_ROLE_MASTER

STP_X_RSTP_PORT_ROLE_MASTER 

 

STP_X_RSTP_PORT_ROLE_ROOT

STP_X_RSTP_PORT_ROLE_ROOT