1
package HP::Proliant::Component::NicSubsystem::SNMP;
2
our @ISA = qw(HP::Proliant::Component::NicSubsystem
3
HP::Proliant::Component::SNMP);
6
use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
12
runtime => $params{runtime},
13
rawdata => $params{rawdata},
16
extendedinfo => undef,
21
$self->overall_init();
29
my $snmpwalk = $params{rawdata};
31
my $cpqNicIfLogMapOverallCondition = '1.3.6.1.4.1.232.18.2.2.2.0';
32
my $cpqNicIfLogMapOverallConditionValue = {
38
$self->{lognicstatus} = lc SNMP::Utils::get_object_value(
39
$snmpwalk, $cpqNicIfLogMapOverallCondition,
40
$cpqNicIfLogMapOverallConditionValue);
45
my $snmpwalk = $self->{rawdata};
49
cpqNicIfLogMapEntry => '1.3.6.1.4.1.232.18.2.2.1.1',
50
cpqNicIfLogMapIndex => '1.3.6.1.4.1.232.18.2.2.1.1.1',
51
cpqNicIfLogMapIfNumber => '1.3.6.1.4.1.232.18.2.2.1.1.2',
52
cpqNicIfLogMapDescription => '1.3.6.1.4.1.232.18.2.2.1.1.3',
53
cpqNicIfLogMapGroupType => '1.3.6.1.4.1.232.18.2.2.1.1.4',
54
cpqNicIfLogMapAdapterCount => '1.3.6.1.4.1.232.18.2.2.1.1.5',
55
cpqNicIfLogMapAdapterOKCount => '1.3.6.1.4.1.232.18.2.2.1.1.6',
56
cpqNicIfLogMapPhysicalAdapters => '1.3.6.1.4.1.232.18.2.2.1.1.7',
57
cpqNicIfLogMapMACAddress => '1.3.6.1.4.1.232.18.2.2.1.1.8',
58
cpqNicIfLogMapSwitchoverMode => '1.3.6.1.4.1.232.18.2.2.1.1.9',
59
cpqNicIfLogMapCondition => '1.3.6.1.4.1.232.18.2.2.1.1.10',
60
cpqNicIfLogMapStatus => '1.3.6.1.4.1.232.18.2.2.1.1.11',
61
cpqNicIfLogMapNumSwitchovers => '1.3.6.1.4.1.232.18.2.2.1.1.12',
62
cpqNicIfLogMapHwLocation => '1.3.6.1.4.1.232.18.2.2.1.1.13',
63
cpqNicIfLogMapSpeed => '1.3.6.1.4.1.232.18.2.2.1.1.14',
64
cpqNicIfLogMapVlanCount => '1.3.6.1.4.1.232.18.2.2.1.1.15',
65
cpqNicIfLogMapVlans => '1.3.6.1.4.1.232.18.2.2.1.1.16',
67
cpqNicIfLogMapGroupTypeValue => {
78
11 => "redundancySet",
80
cpqNicIfLogMapConditionValue => {
86
cpqNicIfLogMapStatusValue => {
92
6 => "redundancyReduced",
93
7 => "redundancyLost",
95
cpqNicIfLogMapSwitchoverModeValue => {
100
5 => "preferredPrimary",
104
# INDEX { cpqNicIfLogMapIndex }
105
foreach ($self->get_entries($oids, 'cpqNicIfLogMapEntry')) {
106
push(@{$self->{logical_nics}},
107
HP::Proliant::Component::NicSubsystem::LogicalNic->new(%{$_})
112
cpqNicIfPhysAdapterEntry => '1.3.6.1.4.1.232.18.2.3.1.1',
113
cpqNicIfPhysAdapterIndex => '1.3.6.1.4.1.232.18.2.3.1.1.1',
114
cpqNicIfPhysAdapterIfNumber => '1.3.6.1.4.1.232.18.2.3.1.1.2',
115
cpqNicIfPhysAdapterRole => '1.3.6.1.4.1.232.18.2.3.1.1.3',
116
cpqNicIfPhysAdapterMACAddress => '1.3.6.1.4.1.232.18.2.3.1.1.4',
117
cpqNicIfPhysAdapterSlot => '1.3.6.1.4.1.232.18.2.3.1.1.5',
118
cpqNicIfPhysAdapterIoAddr => '1.3.6.1.4.1.232.18.2.3.1.1.6',
119
cpqNicIfPhysAdapterIrq => '1.3.6.1.4.1.232.18.2.3.1.1.7',
120
cpqNicIfPhysAdapterDma => '1.3.6.1.4.1.232.18.2.3.1.1.8',
121
cpqNicIfPhysAdapterMemAddr => '1.3.6.1.4.1.232.18.2.3.1.1.9',
122
cpqNicIfPhysAdapterPort => '1.3.6.1.4.1.232.18.2.3.1.1.10',
123
cpqNicIfPhysAdapterDuplexState => '1.3.6.1.4.1.232.18.2.3.1.1.11',
124
cpqNicIfPhysAdapterCondition => '1.3.6.1.4.1.232.18.2.3.1.1.12',
125
cpqNicIfPhysAdapterState => '1.3.6.1.4.1.232.18.2.3.1.1.13',
126
cpqNicIfPhysAdapterStatus => '1.3.6.1.4.1.232.18.2.3.1.1.14',
127
cpqNicIfPhysAdapterStatsValid => '1.3.6.1.4.1.232.18.2.3.1.1.15',
128
cpqNicIfPhysAdapterGoodTransmits => '1.3.6.1.4.1.232.18.2.3.1.1.16',
129
cpqNicIfPhysAdapterGoodReceives => '1.3.6.1.4.1.232.18.2.3.1.1.17',
130
cpqNicIfPhysAdapterBadTransmits => '1.3.6.1.4.1.232.18.2.3.1.1.18',
131
cpqNicIfPhysAdapterBadReceives => '1.3.6.1.4.1.232.18.2.3.1.1.19',
132
cpqNicIfPhysAdapterAlignmentErrors => '1.3.6.1.4.1.232.18.2.3.1.1.20',
133
cpqNicIfPhysAdapterFCSErrors => '1.3.6.1.4.1.232.18.2.3.1.1.21',
134
cpqNicIfPhysAdapterSingleCollisionFrames => '1.3.6.1.4.1.232.18.2.3.1.1.22',
135
cpqNicIfPhysAdapterMultipleCollisionFrames => '1.3.6.1.4.1.232.18.2.3.1.1.23',
136
cpqNicIfPhysAdapterDeferredTransmissions => '1.3.6.1.4.1.232.18.2.3.1.1.24',
137
cpqNicIfPhysAdapterLateCollisions => '1.3.6.1.4.1.232.18.2.3.1.1.25',
138
cpqNicIfPhysAdapterExcessiveCollisions => '1.3.6.1.4.1.232.18.2.3.1.1.26',
139
cpqNicIfPhysAdapterInternalMacTransmitErrors => '1.3.6.1.4.1.232.18.2.3.1.1.27',
140
cpqNicIfPhysAdapterCarrierSenseErrors => '1.3.6.1.4.1.232.18.2.3.1.1.28',
141
cpqNicIfPhysAdapterFrameTooLongs => '1.3.6.1.4.1.232.18.2.3.1.1.29',
142
cpqNicIfPhysAdapterInternalMacReceiveErrors => '1.3.6.1.4.1.232.18.2.3.1.1.30',
143
cpqNicIfPhysAdapterHwLocation => '1.3.6.1.4.1.232.18.2.3.1.1.31',
144
cpqNicIfPhysAdapterPartNumber => '1.3.6.1.4.1.232.18.2.3.1.1.32',
145
cpqNicIfPhysAdapterRoleValue => {
154
255 => "notApplicable",
156
cpqNicIfPhysAdapterDuplexStateValue => {
161
cpqNicIfPhysAdapterConditionValue => {
167
cpqNicIfPhysAdapterStateValue => {
173
cpqNicIfPhysAdapterStatusValue => {
176
3 => "generalFailure",
181
# INDEX { cpqNicIfPhysAdapterIndex }
182
foreach ($self->get_entries($oids, 'cpqNicIfPhysAdapterEntry')) {
183
push(@{$self->{physical_nics}},
184
HP::Proliant::Component::NicSubsystem::PhysicalNic->new(%{$_}));