NAME
SNMP::Info::Entity - Perl5 Interface to SNMP data stored in ENTITY-MIB.
AUTHOR
Max Baker (max@warped.org
)
SYNOPSIS
# Let SNMP::Info determine the correct subclass for you.
my $entity = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
# These arguments are passed directly on to SNMP::Session
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $entity->class();
print "SNMP::Info determined this device to fall under subclass : $class\n";
DESCRIPTION
ENTITY-MIB is used by some Layer 2 devices like HP Switches and Aironet Access Points
Create or use a device subclass that inherit this class. Do not use directly.
For debugging purposes you can call this class directly as you would SNMP::Info
my $entity = new SNMP::Info::Entity (...);
Inherited Classes
none.
Required MIBs
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
GLOBALS
none.
TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash.
Entity Table
- $entity->e_class()
-
(
entPhysicalClass
) - $entity->e_descr()
-
(
entPhysicalClass
) - $entity->e_fwver()
-
(
entPhysicalFirmwareRev
) - $entity->e_hwver()
-
(
entPhysicalHardwareRev
) - $entity->e_map()
-
(
entAliasMappingIdentifier
) - $entity->e_model()
-
(
entPhysicalModelName
) - $entity->e_name()
-
(
entPhysicalName
) - $entity->e_parent()
-
(
entPhysicalContainedIn
) - $entity->e_port()
-
Maps EntityTable entries to the Interface Table (IfTable) using $entity->e_map()
- $entity->e_serial()
-
(
entPhysicalSerialNum
) - $entity->e_swver()
-
(
entPhysicalSoftwareRev
) - $entity->e_type()
-
(
entPhysicalVendorType
)