GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SNMP::Info::Entity(3) User Contributed Perl Documentation SNMP::Info::Entity(3)

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.

ENTITY-MIB

none.

These are methods that return tables of information in the form of a reference to a hash.
$entity->entity_derived_serial()
Tries to determine the device serial number from the ENTITY-MIB. Only considers serial numbers for entries without a parent, or if they are of type chassis. Looks at "entPhysicalSerialNum" and then "entPhysicalDescr" for serial number.
$entity->entity_derived_os_ver()
Tries to determine the device OS version from the ENTITY-MIB. Only considers serial numbers for entries without a parent, or if they are of type chassis. Looks at "entPhysicalSoftwareRev" for the version.

$entity->e_index()
Index

("entPhysicalIndex")

$entity->e_alias()
Human entered, not usually used.

("entPhysicalAlias")

$entity->e_class()
Stack, Module, Container, Port ...

("entPhysicalClass")

$entity->e_descr()
Human Friendly

("entPhysicalClass")

$entity->e_fwver()
("entPhysicalFirmwareRev")
$entity->e_fru()
BOOLEAN. Is a Field Replaceable unit?

("entPhysicalFRU")

$entity->e_hwver()
("entPhysicalHardwareRev")
$entity->e_id()
This is human entered and not normally used.

("entPhysicalAssetID")

$entity->e_map()
See MIB.

("entAliasMappingIdentifier")

$entity->e_model()
Model Name of Entity.

("entPhysicalModelName")

$entity->e_name()
More computer friendly name of entity. Parse me.

("entPhysicalName")

$entity->e_parent()
0 if root.

("entPhysicalContainedIn")

$entity->e_port()
Maps Entity Table entries to the Interface Table ("IfTable") using $entity->e_map()
$entity->e_pos()
The relative position among all entities sharing the same parent.

("entPhysicalParentRelPos")

$entity->e_serial()
("entPhysicalSerialNum")
$entity->e_swver()
("entPhysicalSoftwareRev")
$entity->e_type()
This is an OID, which gets munged into the object name if the right MIB is loaded.

("entPhysicalVendorType")

$entity->e_vendor()
Vendor of Module.

("entPhysicalMfgName")

2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.