| SNMP::Info::Layer3::F5(3pm) | User Contributed Perl Documentation | SNMP::Info::Layer3::F5(3pm) |
SNMP::Info::Layer3::F5 - 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.
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.
("sysInterfaceMediaActiveDuplex").
("sysInterfaceMtu").
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.
| 2023-09-30 | perl v5.36.0 |