SNMP::Info::Entity - SNMP Interface to data stored in ENTITY-MIB. RFC 2737
Max Baker
# Let SNMP::Info determine the correct subclass for you. my $entity = new SNMP::Info( AutoSpecify => 1, Debug => 1, 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";
ENTITY-MIB is used by Layer 2 devices from HP, Aironet, Foundry, Cisco, and more.
See RFC 2737 for full details.
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 (...);
none.
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
none.
These are methods that return tables of information in the form of a reference to a hash.
e_index()
Index
(entPhysicalIndex
)
e_alias()
Human entered, not usually used.
(entPhysicalAlias
)
e_class()
Stack, Module, Container, Port ...
(entPhysicalClass
)
e_descr()
Human Friendly
(entPhysicalClass
)
e_fwver()
(entPhysicalFirmwareRev
)
e_fru()
BOOLEAN. Field Replaceable unit?
(entPhysicalFRU
)
e_hwver()
(entPhysicalHardwareRev
)
e_id()
This is human entered and not normally used.
(entPhysicalAssetID
)
e_map()
See MIB.
(entAliasMappingIdentifier
)
e_model()
Model Name of Entity.
(entPhysicalModelName
)
e_name()
More computer friendly name of entity. Parse me.
(entPhysicalName
)
e_parent()
0 if root.
(entPhysicalContainedIn
)
e_port()
Maps Entity Table entries to the Interface Table (IfTable
) using
$entity->e_map()
e_pos()
The relative position among all entities sharing the same parent.
(entPhysicalParentRelPos
)
e_serial()
(entPhysicalSerialNum
)
e_swver()
(entPhysicalSoftwareRev
)
e_type()
This is an OID, which gets munged into the object name if the right MIB is loaded.
(entPhysicalVendorType
)
e_vendor()
Vendor of Module.
(entPhysicalMfgName
)