2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 12:17:44 +00:00

16 Commits

Author SHA1 Message Date
Jarrod Johnson
69266bc95f Add support for OEM command for IPv6 address fetch
Prior to IPv6 being pulled into the proper specification,
there were OEM commands to implement it.  Pull in the AMI
OEM version for systems with TSMs present.

Change-Id: I137887fc57a3daa652f1e0a1bd50a806d3e42b13
2016-03-21 16:20:58 -04:00
Allan Vidal
2f31a94c9e Add support for TS graphical console fetching
Change-Id: I89ecff86d8b6f264764128d7ec327985a76545b0
2016-03-21 14:34:39 -04:00
Allan Vidal
59355018c4 Add LED parsing for Lenovo ThinkServers
Read and parse OEM LED status. Also remove a file that was no longer necessary.

Change-Id: I98b5de64e75eb66919cc6f8476157eb3a341ead1
2015-08-18 17:54:39 -03:00
Allan Vidal
ea3960c226 Add custom OEM inventory parsing for Lenovo ThinkServers
Parse OEM data for CPU, DIMM, PCI, drive and PSU inventory.

Change-Id: Ic75d03fb1b05c13702321d174c8dbb9a96a08ae4
2015-08-14 15:23:15 -03:00
Peter Martini
fe31004d5e Added a BMC (IPMI) frontend for virsh
Right now, this only supports power command, though
it could certainly be extended to include console
and boot device settings.

Change-Id: I94d438a1ea11519196efa6a819309af9d3219424
2015-02-11 16:53:27 -08:00
Peter Martini
f44881a135 Add a "--port" option to fakebmc
Change-Id: Id609034c1a23cc335ccd478df113b17e04e33cc5
2015-02-11 12:08:03 -08:00
Jenkins
10e6fb5481 Merge "Implement server side IPMI protocol" 2015-01-14 21:19:41 +00:00
Jarrod Johnon
3c5c0e2dc2 Implement server side IPMI protocol
Provide framework for a utility to listen and respond to
ipmi protocol messages.  Also provide an example 'fakebmc'
to give a general idea of how to create a ipmi device

Change-Id: I240b233ff161bc3672795b3ac3bf609e4c8c98bb
2015-01-12 10:21:32 -05:00
Jenkins
d33d03f0cf Merge "Check for IPMIPASSWORD env var in pyghmiutil" 2015-01-05 21:32:06 +00:00
Peter Martini
889ec1c96f Check for IPMIPASSWORD env var in pyghmiutil
The environment variable IPMIPASSWORD is fetched without checking to see
if its present, which throws an exception instead of printing a usage
message if its not set.  This patch fixes that.

Change-Id: I2b15efc4ea4b617e08f096de4130004150d64133
2014-12-31 02:59:28 -05:00
Jim Rollenhagen
c0691104fb Run pep8 on files in bin/
Files in bin/ don't have a .py extension, and so don't get picked
up by flake8. Add them to the flake8 command to have them checked.

Also fix an existing error in bin/pyghmicons.

Change-Id: I4db9b8c4e13c7c7f652acaa12add125f0e0458cd
2014-12-31 00:15:01 +00:00
Jenkins
8c66abb200 Merge "Added password file support" 2014-06-02 18:03:55 +00:00
Jarrod Johnson
da83354a97 Fix pyghmicons script crash on idle
After 10 minutes of idle, the wrong exception was caught.  Correct
it to correctly handle errno 11

Change-Id: I91feea97c3442dec1fc30bd813e99da05a1ef329
2014-05-30 15:03:24 -04:00
linggao
082617af1b Added password file support
Allow the BMC password being passed in to pyghmicons as a
command paremeter.

Change-Id: I696691701622802f228befff9e43a8169657f27b
2014-05-29 19:50:38 +00:00
Jarrod Johnson
de8e63883d Avoid looping select() on sockets repeatedly
When select() would identify a a socket, it would
potentially call select() on the same socket
before a recvfrom() would happen.  In python 2.7,
this caused the IO thread to block other threads
waiting on something the other threads needed to
do.  Resolve by explicitly ignoring a socket
where recvfrom() will be pending until recvfrom()
is next called.  This reduces one test case from
42,000-47,000 select() calls to just 86.

Change-Id: Ic8ebecfc61d048e537b5d76a6a3f0665fd340a3d
2014-05-09 12:52:29 -04:00
Jarrod Johnson
6d2a44a868 Install scripts as well as library
This installs the samples as utilities that can be invoked in the path.
With this, some testing and exploration may be made easier.

Change-Id: I5b7ae5b6e30eea3070dfbcb93d23802b8308d281
2014-05-08 14:06:01 -04:00