Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 727 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 727 Bytes

python-rac

Implementation of racadm in pure Python

Installation

PyPi

pip install rac

Manually

python setup.py test
python setup.py build
sudo python setup.py install

Usage

View server config information

racadm -H 10.0.0.100 -u root -p calvin -c "getconfig -g cfgServerInfo"

Set first boot device to PXE just once

racadm -H 10.0.0.100 -u root -p calvin -c "getconfig -g cfgServerInfo -o cfgServerFirstBootDevice pxe"
racadm -H 10.0.0.100 -u root -p calvin -c "getconfig -g cfgServerInfo -o cfgServerBootOnce 1"

Reboot the host

racadm -H 10.0.0.100 -u root -p calvin -c "serveraction powercycle"