added all methods from mib and expanded docs
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
package SNMP::Info::Entity;
|
package SNMP::Info::Entity;
|
||||||
$VERSION = 0.9;
|
$VERSION = 1.0;
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
@@ -49,17 +49,23 @@ $INIT = 0;
|
|||||||
);
|
);
|
||||||
|
|
||||||
%FUNCS = (
|
%FUNCS = (
|
||||||
|
'e_index' => 'entPhysicalIndex',
|
||||||
|
'e_alias' => 'entPhysicalAlias',
|
||||||
'e_class' => 'entPhysicalClass',
|
'e_class' => 'entPhysicalClass',
|
||||||
'e_descr' => 'entPhysicalDescr',
|
'e_descr' => 'entPhysicalDescr',
|
||||||
'e_fwver' => 'entPhysicalFirmwareRev',
|
'e_fwver' => 'entPhysicalFirmwareRev',
|
||||||
|
'e_fru' => 'entPhysicalIsFRU',
|
||||||
'e_hwver' => 'entPhysicalHardwareRev',
|
'e_hwver' => 'entPhysicalHardwareRev',
|
||||||
|
'e_id' => 'entPhysicalAssetID',
|
||||||
'e_map' => 'entAliasMappingIdentifier',
|
'e_map' => 'entAliasMappingIdentifier',
|
||||||
'e_model' => 'entPhysicalModelName',
|
'e_model' => 'entPhysicalModelName',
|
||||||
'e_name' => 'entPhysicalName',
|
'e_name' => 'entPhysicalName',
|
||||||
'e_parent' => 'entPhysicalContainedIn',
|
'e_parent' => 'entPhysicalContainedIn',
|
||||||
|
'e_pos' => 'entParentRelPos',
|
||||||
'e_serial' => 'entPhysicalSerialNum',
|
'e_serial' => 'entPhysicalSerialNum',
|
||||||
'e_swver' => 'entPhysicalSoftwareRev',
|
'e_swver' => 'entPhysicalSoftwareRev',
|
||||||
'e_type' => 'entPhysicalVendorType',
|
'e_type' => 'entPhysicalVendorType',
|
||||||
|
'e_vendor' => 'entPhysicalMfgName',
|
||||||
);
|
);
|
||||||
|
|
||||||
%MUNGE = (
|
%MUNGE = (
|
||||||
@@ -146,36 +152,72 @@ to a hash.
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
|
=item $entity->e_index()
|
||||||
|
|
||||||
|
Not normally implemented
|
||||||
|
|
||||||
|
(C<entPhysicalIndex>)
|
||||||
|
|
||||||
|
=item $entity->e_alias()
|
||||||
|
|
||||||
|
Human entered, not usually used.
|
||||||
|
|
||||||
|
(C<entPhysicalAlias>)
|
||||||
|
|
||||||
=item $entity->e_class()
|
=item $entity->e_class()
|
||||||
|
|
||||||
|
Stack, Module, Container, Port ...
|
||||||
|
|
||||||
(C<entPhysicalClass>)
|
(C<entPhysicalClass>)
|
||||||
|
|
||||||
=item $entity->e_descr()
|
=item $entity->e_descr()
|
||||||
|
|
||||||
|
Human Friendly
|
||||||
|
|
||||||
(C<entPhysicalClass>)
|
(C<entPhysicalClass>)
|
||||||
|
|
||||||
=item $entity->e_fwver()
|
=item $entity->e_fwver()
|
||||||
|
|
||||||
(C<entPhysicalFirmwareRev>)
|
(C<entPhysicalFirmwareRev>)
|
||||||
|
|
||||||
|
=item $entity->e_fru()
|
||||||
|
|
||||||
|
BOOLEAN. Field Replaceable unit?
|
||||||
|
|
||||||
|
(C<entPhysicalFRU>)
|
||||||
|
|
||||||
=item $entity->e_hwver()
|
=item $entity->e_hwver()
|
||||||
|
|
||||||
(C<entPhysicalHardwareRev>)
|
(C<entPhysicalHardwareRev>)
|
||||||
|
|
||||||
|
=item $entity->e_id()
|
||||||
|
|
||||||
|
This is human entered and not normally used.
|
||||||
|
|
||||||
|
(C<entPhysicalAssetID>)
|
||||||
|
|
||||||
=item $entity->e_map()
|
=item $entity->e_map()
|
||||||
|
|
||||||
|
See MIB.
|
||||||
|
|
||||||
(C<entAliasMappingIdentifier>)
|
(C<entAliasMappingIdentifier>)
|
||||||
|
|
||||||
=item $entity->e_model()
|
=item $entity->e_model()
|
||||||
|
|
||||||
|
Model Name of Entity.
|
||||||
|
|
||||||
(C<entPhysicalModelName>)
|
(C<entPhysicalModelName>)
|
||||||
|
|
||||||
=item $entity->e_name()
|
=item $entity->e_name()
|
||||||
|
|
||||||
|
More computer friendly name of entity. Parse me.
|
||||||
|
|
||||||
(C<entPhysicalName>)
|
(C<entPhysicalName>)
|
||||||
|
|
||||||
=item $entity->e_parent()
|
=item $entity->e_parent()
|
||||||
|
|
||||||
|
0 if root.
|
||||||
|
|
||||||
(C<entPhysicalContainedIn>)
|
(C<entPhysicalContainedIn>)
|
||||||
|
|
||||||
=item $entity->e_port()
|
=item $entity->e_port()
|
||||||
@@ -193,8 +235,16 @@ $entity->e_map()
|
|||||||
|
|
||||||
=item $entity->e_type()
|
=item $entity->e_type()
|
||||||
|
|
||||||
|
This is an OID.
|
||||||
|
|
||||||
(C<entPhysicalVendorType>)
|
(C<entPhysicalVendorType>)
|
||||||
|
|
||||||
|
=item $entity->e_vendor()
|
||||||
|
|
||||||
|
Vendor of Module.
|
||||||
|
|
||||||
|
(C<entPhysicalMfgName>)
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|||||||
Reference in New Issue
Block a user