SNMP::Info::Layer3::F5
SNMP Interface to F5 network devices.
- Provided by: libsnmp-info-perl (Version: 3.31-1)
- Report a bug
SNMP Interface to F5 network devices.
Eric Miller
# Let SNMP::Info determine the correct subclass for you.
my $f5 = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $f5->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
Abstraction subclass for F5 network devices.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $f5 = new SNMP::Info::Layer3::F5(...);
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.
("sysInterfaceName").
Example:
my $interfaces = $f5->interfaces();
my $vlans = $f5->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.