rstpPortRole()
$STP_X_RSTP_PASSING_PORT_ROLES
$STP_X_RSTP_PORT_ROLES
OID_STP_X_RSTP_PORT_ROLE
STP_X_RSTP_PORT_ROLE_ALTERNATE
STP_X_RSTP_PORT_ROLE_BACKUP
STP_X_RSTP_PORT_ROLE_BOUNDARY
STP_X_RSTP_PORT_ROLE_DESIGNATED
STP_X_RSTP_PORT_ROLE_DISABLED
STP_X_RSTP_PORT_ROLE_MASTER
STP_X_RSTP_PORT_ROLE_ROOT
A class for performing SNMP V2 queries on Cisco devices
copyright | Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland |
---|---|
author | Barry O'Donovan |
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 |
int
The RSTP VLAN ID to query port roles for
boolean
If true, return the string representation via self::$STP_X_RSTP_PORT_ROLES
array
The device's RSTP port roles (by given vlan id)$STP_X_RSTP_PASSING_PORT_ROLES
$STP_X_RSTP_PORT_ROLES
OID_STP_X_RSTP_PORT_ROLE
STP_X_RSTP_PORT_ROLE_ALTERNATE
STP_X_RSTP_PORT_ROLE_BACKUP
STP_X_RSTP_PORT_ROLE_BOUNDARY
STP_X_RSTP_PORT_ROLE_DESIGNATED
STP_X_RSTP_PORT_ROLE_DISABLED
STP_X_RSTP_PORT_ROLE_MASTER
STP_X_RSTP_PORT_ROLE_ROOT