The 'policy number' appears to be indicating a set rather
than a specific rule. Since PEF from various manufacturers
tend to use alert set 1, use alert set 1 for now when creating
a new policy.
Change-Id: I646c81baa3167f3fc076140494f7e8e564e7c0bd
DCMI provides standard commands for accessing/setting asset tag and
BMC identifier. Provide access to those facilities
Change-Id: If3f99d308e5b37ff3e99f19fd804f00a74bbb561
If an alert destination is set, there is no guarantee an
alert policy will actually use it. Have the set_alert_destination
go through the alert policy table checking for an entry that references
the most recently set value, creating one if no match found.
Change-Id: I6bef40dddb18ababb3d85bb02e5d0ae73c82df2f
Rather than break on bad sensor data from a vendor,
delete the records that are likely to have bad data.
Change-Id: I6417cd60b2f12e8979e25b3240a086a8aa5377ad
When completing RAKP, but denied by set session privilege level,
just repeat set session privilege level at lower privilege
rather than trying to go all the way back.
Change-Id: I3cc10320e81b8a3db3ebb7b17026f0d233e0b808
As a complement to the previous change to read network configuration data, accept configuration
input and submit to the BMC.
Change-Id: I3d29237c98943fc93c160450861ac9c5d8e7758d
Use standard IPv4 related configuration parameters
to fetch relevant data for basic network connectivity.
Change-Id: I2b93da5be0196ff5f15e240ed8f8e0fd819ddd54
The physical security related events/sensors
were confusing. Reword them for better
understanding.
Change-Id: I033b07195848123494d30d9826f441bba140fd10
Sensor readings have new fields added, allowing some callers
to use easier comparison and lookups. For example some
may want to have a full setence string for permutation of
reading types, sensor types, and specific event.
Change-Id: I743a32777259516f8febf5a0a62757ce5a4cee59
The IPMI 2.0 spec allows 20 byte passwords.
If a password is less than 16 bytes, then use
the 1.5 scheme as before. If between 16 and 21,
then attempt IPMI 2.0 scheme. Raise when over 20.
Change-Id: I25016b8608d9dbf5d436afd75bd07f0d4eed6d81
When an alert is received, decode the
provided timestamp. Additionally apply
the time correction logic as used on the
event log data.
Change-Id: I2534f3b8288739e1b50fd335d878e9c4b5458b28
User deletion has some limitations making the function a best effort.
Document this and provide at least one additional attempt at deleting
a user to cover more vendors. This still does not cover all vendors,
and OEM extensibility is likely to be the answer to allow this to
cover more implementations.
Change-Id: I6af3f761c587f9eb8b58b3408052d6585847f7d6
Have monotonic_time reworked to use Windows function
when available. Eliminate use of an os.pipe to break
into the select. When we want to interrupt the select,
use the first udp socket as the angle to break in.
Additionally, provide a Windows friendly value for
IPPROTO_IPV6 should the socket module fail us.
Change-Id: I8f566543c8da28eb7ed76f1cb80ff4cb2dcbba96
The PET acknowledge code was incorrect. Fix it by
properly extracting the fields by index and fixing reference
to self._ipmicmd and also do not treat a failure on acknowledge as
an error for now.
Change-Id: Icafc21807a59e53acf3249170450bf4dbeee9e5d
When a bad username was supplied, an attempt to start over
was done without resetting the state machine of the retransmit
facility. As a consequence, it failed to actually proceed in
restarting the process and would time out rather than returning
the appropriate error.
Change-Id: Ib3207c214fcf96f0dcdb8c4ca3b5387fb58ce1ae
If CPU inventory is unavalible, proceed to get memory inventory.
If memory inventory is unavailable, cleanly omit the data.
Change-Id: If9d5eec1aa5dcc7a2800e30636ff4cedee48a311
If a Thinkserver responds negatively to request for OEM
inventory data, gracefully drop out and return empty
information rather than passing it up the stack.
Change-Id: I16d176606bb95d56244dfea43f9d828ff046bbc1
OEMs frequently employ special commands for data that logically
would be expected to manifest as a sensor. Provide a facility
for OEMs to make up sensors and provide data in the form of a
'sensor' without requiring SDR.
Change-Id: I6bce99680ff64ffe2dbc0898d193a17dde066b9c
In case a PET emitter wants acknowledgement,
submit a PET acknowledge back to the relevant
BMC when decoding a PET event.
Change-Id: Ifd3038fec2f72161b48bbf7095d2a0e2100b4d91
Enable a python application tasked with decoding PET
coming in via SNMP to decode it in the same manner
an event log entry is decoded.
Change-Id: If8272989ba5d9062183e5decab959729dda85d62
Vendors can do other entitiy ids. Have a catch all
that provides the raw value in case there
is no better lookup for the number.
Change-Id: I66a226e1b38f6b31b95bfe58e044875decae09a8
202 means 'Cannot return number of request bytes', which is pretty on the nose
for the scenario at hand. Include that in the conditions to reduce the request size.
Thanks to Rafael Debarros for this.
Change-Id: I833faf2559a93e468748a72db29e6967bc800207
For SNMP alert processing, each channel can have an associated
community string. Provide access to this configuration parameter.
Change-Id: Ib1cb98e436fc104d803ef7e594b92c46f8756171
Provide a framework for OEM to add inventory devices
without requiring FRU locator records. This enables
vendors to provide additional data in a more flexible
scheme.
Change-Id: I9ef9685de9150940321aecbf2cc275cfbbe8ce6a
Provide a facility to manipulate the LAN alert destinations.
Additionally update the LAN configuration functions to have
a function to intelligently find the correct LAN channel.
For now the 'check current channel' preference should always
activate, but the function should be able to cover a hypothetical
in-band scenario should session become so enabled.
Change-Id: I45ce81addb882110e04d0526997a96b6b2ab0c2e
The Thinkserver platform may have a number of OEM entries.
Provide a reasonable decode of those events.
Change-Id: Ie4be9848293c00e8b0d3490075101ed8be1cf72e
FRU data may return 0x81 on not-present devices and also
provide some rough event description in the case of an
unknown OEM SEL format.
Change-Id: Ia99c4981c06ed8e067a584896fde3880f08f8baa
If some events (for example, OEM events) are encountered,
the deleted fields won't exist in the first place. Avoid
KeyErrors by checking before deleting.
Change-Id: I91ca73f4288c7b877589e766c8ce1ea1166e0d37