| SNMP::Info::Layer3::AlteonAD(3pm) | User Contributed Perl Documentation | SNMP::Info::Layer3::AlteonAD(3pm) |
SNMP::Info::Layer3::AlteonAD - SNMP Interface to Radware Alteon ADC Switches.
Eric Miller
# Let SNMP::Info determine the correct subclass for you.
my $alteon = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $alteon->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
Abstraction subclass for Radware Alteon Series ADC switches and Nortel BladeCenter Layer2-3 GbE Switch Modules.
These are methods that return scalar value from SNMP
See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
These are methods that return tables of information in the form of a reference to a hash.
Utilizes description for network interfaces. Ports are determined by formula ("ifIndex mod 256").
Example:
my $interfaces = $alteon->interfaces();
my $vlans = $alteon->i_vlan_membership();
foreach my $iid (sort keys %$interfaces) {
my $port = $interfaces->{$iid};
my $vlan = join(',', sort(@{$vlans->{$iid}}));
print "Port: $port VLAN: $vlan\n";
}
See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
| 2023-09-30 | perl v5.36.0 |