MyGit

raags/ipmitool

Fork: 6 Star: 9 (更新于 2024-05-30 09:34:08)

license: Apache-2.0

Language: Python .

Run ipmitool commands on consoles

最后发布版本: 0.4 ( 2020-10-03 16:25:25)

GitHub网址

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-05-09 00:20:45)

2020-10-03 16:25:25 0.4

raags/ipmitool同语言 Python最近更新仓库

2024-07-04 10:17:23 jumpserver/jumpserver

2024-07-03 02:49:43 microsoft/graphrag

2024-07-02 22:55:34 mindsdb/mindsdb

2024-07-02 12:55:09 fishaudio/fish-speech

2024-07-02 11:46:22 Azure-Samples/graphrag-accelerator

2024-06-30 23:00:16 VinciGit00/Scrapegraph-ai