PHP code example of limestonenetworks / php-ipmitool

1. Go to this page and download the library: Download limestonenetworks/php-ipmitool library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

limestonenetworks / php-ipmitool example snippets

 bash
$ composer 
 php
$confArray = [
    'interface' => 'lanplus',     
    'username' => 'ADMIN',     
    'password',     
    'hostname',     
    'port',         
    'password_env',  
    'password_file',
    'authtype',   
    'level',
    'binary' => 'ipmitool'
];
$config = new LSN\ipmitool\Config($confArray);
$client = new LSN\ipmitool\Client(new Process(''),$config);
echo $client->run(['chassis','power','status');