<commit_before># ipmitool.py

ipmitool.py is a command line utility to run and gather output from
large number of consoles. It uses the ipmi module that abstracts
the interaction with the ipmitool utility.

[ipmitool](http://ipmitool.sourceforge.net) utility 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 of large number of hosts

## Installing

    python setup.py install
<commit_msg>Added pip install and a example run<commit_after># ipmitool.py

ipmitool.py is a command line utility to run and gather output from
large number of consoles. It uses the ipmi module that abstracts
the interaction with the ipmitool utility.

[ipmitool](http://ipmitool.sourceforge.net) utility 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 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

{'fraction_non_alphanumeric': 0.05238095238095238, 'fraction_numerical': 0.01130952380952381, 'mean_word_length': 4.048048048048048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4239519', 'n_tokens_mistral': 480, 'n_tokens_neox': 458, 'n_words': 224}