1Info::Entity(3) User Contributed Perl Documentation Info::Entity(3)
2
3
4
6 SNMP::Info::Entity - SNMP Interface to data stored in ENTITY-MIB. RFC
7 2737
8
10 Max Baker
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $entity = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 DestHost => 'myswitch',
18 Community => 'public',
19 Version => 2
20 )
21 or die "Can't connect to DestHost.\n";
22
23 my $class = $entity->class();
24 print "SNMP::Info determined this device to fall under subclass : $class\n";
25
27 ENTITY-MIB is used by Layer 2 devices from HP, Aironet, Foundry, Cisco,
28 and more.
29
30 See RFC 2737 for full details.
31
32 Create or use a device subclass that inherit this class. Do not use
33 directly.
34
35 For debugging purposes you can call this class directly as you would
36 SNMP::Info
37
38 my $entity = new SNMP::Info::Entity (...);
39
40 Inherited Classes
41 none.
42
43 Required MIBs
44 ENTITY-MIB
45
46 MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
47
49 none.
50
52 These are methods that return tables of information in the form of a
53 reference to a hash.
54
55 Entity Table
56 $entity->e_index()
57 Index
58
59 ("entPhysicalIndex")
60
61 $entity->e_alias()
62 Human entered, not usually used.
63
64 ("entPhysicalAlias")
65
66 $entity->e_class()
67 Stack, Module, Container, Port ...
68
69 ("entPhysicalClass")
70
71 $entity->e_descr()
72 Human Friendly
73
74 ("entPhysicalClass")
75
76 $entity->e_fwver()
77 ("entPhysicalFirmwareRev")
78
79 $entity->e_fru()
80 BOOLEAN. Field Replaceable unit?
81
82 ("entPhysicalFRU")
83
84 $entity->e_hwver()
85 ("entPhysicalHardwareRev")
86
87 $entity->e_id()
88 This is human entered and not normally used.
89
90 ("entPhysicalAssetID")
91
92 $entity->e_map()
93 See MIB.
94
95 ("entAliasMappingIdentifier")
96
97 $entity->e_model()
98 Model Name of Entity.
99
100 ("entPhysicalModelName")
101
102 $entity->e_name()
103 More computer friendly name of entity. Parse me.
104
105 ("entPhysicalName")
106
107 $entity->e_parent()
108 0 if root.
109
110 ("entPhysicalContainedIn")
111
112 $entity->e_port()
113 Maps Entity Table entries to the Interface Table ("IfTable") using
114 $entity->e_map()
115
116 $entity->e_pos()
117 The relative position among all entities sharing the same parent.
118
119 ("entPhysicalParentRelPos")
120
121 $entity->e_serial()
122 ("entPhysicalSerialNum")
123
124 $entity->e_swver()
125 ("entPhysicalSoftwareRev")
126
127 $entity->e_type()
128 This is an OID, which gets munged into the object name if the right
129 MIB is loaded.
130
131 ("entPhysicalVendorType")
132
133 $entity->e_vendor()
134 Vendor of Module.
135
136 ("entPhysicalMfgName")
137
138
139
140perl v5.12.0 2009-06-12 Info::Entity(3)