Rechercher une page de manuel
SNMP::Info::Layer3::Extreme.3pm
Langue: en
Version: 2007-11-25 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
SNMP::Info::Layer3::Extreme - Perl5 Interface to Extreme Network DevicesAUTHOR
Eric Miller, Bill FennerSYNOPSIS
# Let SNMP::Info determine the correct subclass for you. my $extreme = new SNMP::Info( AutoSpecify => 1, Debug => 1, # These arguments are passed directly on to SNMP::Session DestHost => 'myswitch', Community => 'public', Version => 1 ) or die "Can't connect to DestHost.\n";
my $class = $extreme->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
DESCRIPTION
Provides abstraction to the configuration information obtainable from an Extreme device through SNMP.For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $extreme = new SNMP::Info::Layer3::Extreme(...);
Inherited Classes
- SNMP::Info::Layer3
- SNMP::Info::MAU
Required MIBs
- EXTREME-BASE-MIB
- EXTREME-SYSTEM-MIB
- EXTREME-FDB-MIB
- EXTREME-VLAN-MIB
- Inherited Classes' MIBs
- See classes listed above for their required MIBs.
GLOBALS
These are methods that return scalar value from SNMP- #=item $extreme->bulkwalk_no # #Return 1. Bulkwalk is currently turned off for this class.
- $extreme->model()
- Returns model type. Checks $extreme->id() against the EXTREME-BASE-MIB.
- $extreme->vendor()
- Returns extreme
- $extreme->os()
- Returns extreme
- $extreme->serial()
- Returns serial number
(extremeSystemID)
- $extreme->temp()
- Returns system temperature
(extremeCurrentTemperature)
- $extreme->ps1_status()
- Returns status of power supply 1
(extremePowerSupplyStatus.1)
- $extreme->fan()
- Returns fan status
(extremeFanOperational.1)
- $extreme->mac()
- Returns base mac
(dot1dBaseBridgeAddress)
Overrides
Globals imported from SNMP::Info::Layer3
See documentation in ``GLOBALS'' in SNMP::Info::Layer3 for details.
Globals imported from SNMP::Info::MAU
See documentation in ``GLOBALS'' in SNMP::Info::MAU for details.
TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash.Overrides
- $extreme->fw_mac()
- (extremeFdbMacFdbMacAddress)
- $extreme->fw_port()
- (extremeFdbMacFdbPortIfIndex)
- $extreme->fw_status()
- (extremeFdbMacFdbStatus)
- $extreme->i_vlan()
- Returns a mapping between ifIndex and the VLAN.
- $stack->bp_index()
- Returns reference to hash of bridge port table entries map back to interface identifier (iid)
Returns (ifIndex) for both key and value since we're using EXTREME-FDB-MIB rather than BRIDGE-MIB.
Table Methods imported from SNMP::Info::Layer3
See documentation in ``TABLE METHODS'' in SNMP::Info::Layer3 for details.
Table Methods imported from SNMP::Info::MAU
See documentation in ``TABLE METHODS'' in SNMP::Info::MAU for details.
- $extreme->set_i_vlan ( vlan, ifIndex )
- Changes an access (untagged) port VLAN, must be supplied with the numeric VLAN ID and port ifIndex. This method should only be used on end station (non-trunk) ports.
Example: my %if_map = reverse %{$extreme->interfaces()}; $extreme->set_i_vlan('2', $if_map{'FastEthernet0/1'}) or die "Couldn't change port VLAN. ",$extreme->error(1);
- $extreme->set_i_pvid ( pvid, ifIndex )
- Sets port default VLAN, must be supplied with the numeric VLAN ID and port ifIndex. This method should only be used on trunk ports.
Example: my %if_map = reverse %{$extreme->interfaces()}; $extreme->set_i_pvid('2', $if_map{'FastEthernet0/1'}) or die "Couldn't change port default VLAN. ",$extreme->error(1);
- $extreme->set_add_i_vlan_tagged ( vlan, ifIndex )
- Adds the VLAN to the enabled VLANs list of the port, must be supplied with the numeric VLAN ID and port ifIndex.
Example: my %if_map = reverse %{$extreme->interfaces()}; $extreme->set_add_i_vlan_tagged('2', $if_map{'FastEthernet0/1'}) or die "Couldn't add port to egress list. ",$extreme->error(1);
- $extreme->set_remove_i_vlan_tagged ( vlan, ifIndex )
- Removes the VLAN from the enabled VLANs list of the port, must be supplied with the numeric VLAN ID and port ifIndex.
Example: my %if_map = reverse %{$extreme->interfaces()}; $extreme->set_remove_i_vlan_tagged('2', $if_map{'FastEthernet0/1'}) or die "Couldn't add port to egress list. ",$extreme->error(1);
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre