RACADM » История » Редакция 2
Редакция 1 (Константин Пильник, 2020-05-22 14:27) → Редакция 2/8 (Константин Пильник, 2020-05-22 14:28)
h1. RACADM over SSH
h2. управление питанием сервера
h3. iDRAC6
<pre>
hardreset — Performs a force reset (reboot) operation on the managed system.
powercycle — Performs a power-cycle operation on the managed system.
powerdown — Powers down the managed system.
powerup — Powers up the managed system.
powerstatus — Displays the current power status of the server (ON or OFF).
graceshutdown — Performs a graceful shutdown of the server.
пример:
racadm serveraction powerstatus
</pre>
h2. отключение всего, торчащего в интернет по максимуму
h3. iDRAC6
<pre>
echo '
racadm config -g cfgRemoteHosts -o cfgRhostsFwUpdateTftpEnable 0
racadm config -g cfgRacTuning -o cfgRacTuneRemoteRacadmEnable 0
racadm config -g cfgRacTuning -o cfgRacTuneHttpPort 80
racadm config -g cfgRacTuning -o cfgRacTuneSshPort=22022
racadm config -g cfgRacTuning -o cfgRacTuneWebserverEnable 0
racadm config -g cfgRacTuning -o cfgRacTuneLocalServerVideo 0
racadm config -g cfgRacTuning -o cfgRacTuneConRedirEnable 0
racadm config -g cfgRacVirtual -o cfgLCDriveEnable 0
racadm config -g cfgIpmiSol -o cfgIpmiSolEnable 0
racadm config -g cfgIpmiLan -o cfgIpmiLanEnable 0
exit
' | ssh root@rmm.diana.rc-online.ru -p 22022
</pre>