command line tool for dell idrac7 on linux

Dell 的 idrac 工具滿好用的,分享一下安裝設定的經驗。基本上只要設定好可以用網頁一台一台設定,阿可是40多台就不要這樣搞了吧。 (雖然找出整個方式的時間可能已經比一台一台弄還久)

設定 repository

echo 'deb http://linux.dell.com/repo/community/deb/latest /' | sudo tee -a /etc/apt/sources.list.d/linux.dell.com.sources.list

add key

gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F

inastll

sudo apt-get install srvadmin-all
root@debian:/home/thomas# dpkg -l | grep srvadmin
ii  srvadmin-all                          7.1.0-3                      amd64        Meta package for installing all Server Administrator features
ii  srvadmin-base                         7.1.0-3                      amd64        Meta package for installing the Server Agent
ii  srvadmin-deng                         7.1.0-3                      amd64        Dell OpenManage Data Engine
ii  srvadmin-hapi                         7.1.0-3                      amd64        Dell OpenManage Hardware Abstraction Programming Interface
ii  srvadmin-idrac                        7.1.0-2                      amd64        Meta package for iDRAC
ii  srvadmin-idrac-ivmcli                 7.1.0-2                      amd64        CLI utils from the management station to the iDRAC
ii  srvadmin-idrac-vmcli                  7.1.0-2                      amd64        CLI utils from the management station to the iDRAC
ii  srvadmin-idrac7                       7.1.0-2                      amd64        Meta package for iDRAC
ii  srvadmin-idracadm                     7.1.0-2                      amd64        The command line user interface to the Remote Access Controller (RAC).
ii  srvadmin-idracadm7                    7.1.0-2                      amd64        The command line user interface to the Remote Access Controller (RAC).
ii  srvadmin-isvc                         7.1.0-2                      amd64        Dell OpenManage Instrumentation Services
ii  srvadmin-jre                          7.1.0-3                      amd64        SUN Java Runtime Environment
ii  srvadmin-omacore                      7.1.0-5                      amd64        Server Administrator Core and CLI
ii  srvadmin-omcommon                     7.1.0-2                      amd64        Dell OpenManage Server Administrator Common Framework
ii  srvadmin-omilcore                     7.1.0-3                      all          Dell OpenManage Server Administrator Install Core
ii  srvadmin-rac-components               7.1.0-2                      amd64        Remote Access Controller SNMP components for Server Administrator.
ii  srvadmin-rac4                         7.1.0-3                      amd64        Meta package that pulls in all required dependencies for RAC4 support for Server Administrator.
ii  srvadmin-rac4-populator               7.1.0-3                      amd64        Remote Access Controller data populator components for Server Administrator.
ii  srvadmin-rac5                         7.1.0-2                      amd64        sample reimplemented package for data engine
ii  srvadmin-racadm4                      7.1.0-3                      amd64        The command line user interface to the Remote Access Controller (RAC).
ii  srvadmin-racadm5                      7.1.0-2                      amd64        The command line user interface to the Remote Access Controller (RAC).
ii  srvadmin-racdrsc                      7.1.0-2                      amd64        Remote Access CLI and Web Plugin to Server Administrator
ii  srvadmin-racsvc                       7.1.0-3                      amd64        Remote Access Controller (RAC) services supporting the central
ii  srvadmin-realssd                      7.1.0-2                      amd64        RealSSD package for storage management
ii  srvadmin-smcommon                     7.1.0-2                      amd64        Storage Management common files for GUI and CLI
ii  srvadmin-smweb                        7.1.0-2                      amd64        Storage Management package for GUI component
ii  srvadmin-storage                      7.1.0-2                      amd64        Storage Management accessors package
ii  srvadmin-storageservices              7.1.0-3                      amd64        Meta package for installing the Server Administrator Storage Services feature
ii  srvadmin-storelib                     7.1.0-2                      amd64        StoreLib package for storage management
ii  srvadmin-storelib-sysfs               7.1.0-1                      amd64        System Utilities Package/Libsysfs for LSI storage libraries
ii  srvadmin-sysfsutils                   7.1.0-2                      amd64        Storage Management System Utilities Package / Libsysfs
ii  srvadmin-tomcat                       7.1.0-5                      amd64        Secure Port Server and Server Administrator GUI
ii  srvadmin-webserver                    7.1.0-3                      amd64        Meta package for installing the Server Administrator Web Server feature
ii  srvadmin-xmlsup                       7.1.0-2                      amd64        Dell OpenManage XML Support SDK

取得資訊

/opt/dell/srvadmin/bin/idracadm -r 10.22.1.36 -u root -p password getsysinfo

設定 PXE 開機

/opt/dell/srvadmin/bin/idracadm -r 10.22.1.17 -u root -p password config -g cfgServerInfo -o cfgServerFirstBootDevice PXE

正常開機

/opt/dell/srvadmin/bin/idracadm -r 10.23.1.17 -u root -p password serveraction powercycle

硬體 關機

/opt/dell/srvadmin/bin/idracadm -r 10.23.1.36 -u root -p password serveraction powerdown

list config group

/opt/dell/srvadmin/bin/idracadm -r 10.24.1.36 -u root -p password getconfig -h

always pxe

/opt/dell/srvadmin/bin/idracadm -r 10.24.1.20 -u root -p password config -g cfgServerInfo -o cfgServerBootOnce 0

Comments