MyGit

raags/ipmitool

Fork: 6 Star: 9 (更新于 2024-11-27 01:36:39)

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-09-15 10:25:13)

2020-10-03 16:25:25 0.4

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

2024-12-22 18:18:34 LeslieLeung/heimdallr

2024-12-22 09:03:32 ultralytics/ultralytics

2024-12-21 13:26:40 notepad-plus-plus/nppPluginList

2024-12-21 11:42:53 XiaoMi/ha_xiaomi_home

2024-12-21 04:33:22 comfyanonymous/ComfyUI

2024-12-20 18:47:56 home-assistant/core