limestonenetworks/php-ipmitool
最新稳定版本:2.1.0
Composer 安装命令:
composer require limestonenetworks/php-ipmitool
包简介
PHP Wrapper of ipmitool
README 文档
README
This is a php wrapper for ipmitool. The goal is allow easy bootstrapping and integration of ipmitool into an existing application.
Install
Via Composer
$ composer require limestonenetworks/php-ipmitool
Usage
$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');
Config options are shown with their default values. Empty means that if the option is not set then it will not be sent to the process. Each option maps to a cli flag on ipmitool aside from binary which allows you to override the name of your ipmitool binary.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email sch43228@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 21.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-30