GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SNMP::Info::IEEE802_Bridge(3) User Contributed Perl Documentation SNMP::Info::IEEE802_Bridge(3)

SNMP::Info::IEEE802_Bridge - SNMP Interface to SNMP data available through the IEEE8021-Q-BRIDGE-MIB

Jeroen van Ingen

FIXME update with better example my $bridge = new SNMP::Info ( AutoSpecify => 1, Debug => 1, DestHost => 'switch', Community => 'public', Version => 2 );

 my $class = $bridge->class();
 print " Using device sub class : $class\n";

 # Grab Forwarding Tables
 my $interfaces = $bridge->interfaces();
 my $fw_mac     = $bridge->fw_mac();
 my $fw_port    = $bridge->fw_port();
 my $bp_index   = $bridge->bp_index();

 foreach my $fw_index (keys %$fw_mac){
    my $mac   = $fw_mac->{$fw_index};
    my $bp_id = $fw_port->{$fw_index};
    my $iid   = $bp_index->{$bp_id};
    my $port  = $interfaces->{$iid};

    print "Port:$port forwarding to $mac\n";
 }

IEEE8021-Q-BRIDGE-MIB is used by some newer switches / Layer 2 devices. It is derived from the IETF Q-BRIDGE-MIB (RFC 4363), extending it with the concept of multiple VLAN-aware bridges (PBB).

Create or use a subclass of SNMP::Info that inherits this class. Do not use directly.

For debugging you can call new() directly as you would in SNMP::Info

 my $bridge = new SNMP::Info::IEEE802_Bridge(...);

None.

IEEE8021-Q-BRIDGE-MIB

These are methods that return scalar values from SNMP

These are methods that return tables of information in the form of a reference to a hash.

$bridge->iqb_i_vlan()
("ieee8021QBridgePvid")
$bridge->iqb_i_vlan_type()
("ieee8021QBridgePortAcceptableFrameTypes")
$bridge->iqb_i_vlan_in_flt()
("ieee8021QBridgePortIngressFiltering")

$bridge->iqb_cv_egress()
("ieee8021QBridgeVlanCurrentEgressPorts")
$bridge->iqb_cv_untagged()
("ieee8021QBridgeVlanCurrentUntaggedPorts")
$bridge->iqb_cv_stat()
("ieee8021QBridgeVlanStatus")

$bridge->iqb_v_name()
("ieee8021QBridgeVlanStaticName")
$bridge->iqb_v_egress()
("ieee8021QBridgeVlanStaticEgressPorts")
$bridge->iqb_v_fbdn_egress()
("ieee8021QBridgeVlanForbiddenEgressPorts")
$bridge->iqb_v_untagged()
("ieee8021QBridgeVlanStaticUntaggedPorts")
$bridge->iqb_v_stat()
"active" !

("ieee8021QBridgeVlanStaticRowStatus")

2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.