raags/ipmitool
Fork: 6 Star: 9 (更新于 2024-11-04 09:44:47)
license: Apache-2.0
Language: Python .
Run ipmitool commands on consoles
最后发布版本: 0.4 ( 2020-10-03 16:25:25)
ipmitool.py
ipmitool.py is a command line utility to run ipmitools command and gather the output from large number of consoles. It uses the ipmi module that abstracts the interaction with the ipmitool utility.
ipmitool is required to be installed
Features
-
The ipmi module uses subprocess in Linux to communicate with ipmitool. Solaris ipmitool does not support passing the password on the command line. So, it uses expect if the Solaris Platform is detected.
-
Threaded to execute the commands in parallel
-
Collated output makes it easy to understand the status and output of large number of hosts
Installing
pip install ipmitool
This will install ipmitool.py in your path.
e.g. :
$ ipmitool.py -f console_list.txt status
Password:
Chassis Power is on -- [6] app322-console.prod, app323-console.prod, app324-console.prod, app325-console.prod, app326-console.prod, app327-console.prod
Extending
The ipmitool.py utlity is used for chassis power changes and status. But you can write your own on top of the ipmi module :
e.g. :
>>> ipmi = ipmitool(console, password)
>>> ipmi.execute("chassis status")
>>> ipmi.execute("chassis status")
0
>>> print ipmi.output
System Power : on
Power Overload : false
Power Interlock : inactive
Main Power Fault : false
Power Control Fault : false
...
最近版本更新:(数据更新于 2024-09-15 10:25:13)
2020-10-03 16:25:25 0.4
raags/ipmitool同语言 Python最近更新仓库
2024-11-22 19:26:55 ultralytics/ultralytics
2024-11-22 08:12:43 jxxghp/MoviePilot
2024-11-22 06:12:44 dagster-io/dagster
2024-11-22 05:57:36 moesnow/March7thAssistant
2024-11-22 02:39:01 goauthentik/authentik
2024-11-22 00:15:39 jumpserver/jumpserver