| SNMP::Info::Entity(3pm) | User Contributed Perl Documentation | SNMP::Info::Entity(3pm) |
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 Brocade, Cisco, HP, 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.
none.
These are methods that return tables of information in the form of a reference to a hash.
("entPhysicalIndex")
("entPhysicalAlias")
("entPhysicalClass")
("entPhysicalClass")
("entPhysicalFRU")
("entPhysicalAssetID")
("entAliasMappingIdentifier")
("entPhysicalModelName")
("entPhysicalName")
("entPhysicalContainedIn")
("entPhysicalParentRelPos")
("entPhysicalVendorType")
("entPhysicalMfgName")
| 2023-09-30 | perl v5.36.0 |