1、物理机重启关机等操作
racadm serveraction powerup #开启服务器 racadm serveraction powerdown #关闭服务器 racadm serveraction powercycle #关机后再开启服务器 racadm serveraction powerstatus #查看服务器状态
2、iDRAC 重启操作
iDRAC 重启操作 racadm racreset soft #软重启iDRAC racadm racreset hard #硬重启iDRAC racadm racreset soft -f #强制软重启iDRAC racadm racreset hard -f #强制硬重启iDRAC
3、iDRAC 网络配置
racadm set iDRAC.IPv4.Address x.x.x.x #修改IP地址 racadm set iDRAC.IPv4.Netmask x.x.x.x #修改子网掩码 racadm set iDRAC.IPv4.Gateway x.x.x.x #修改默认网关<无需重启idrac,配置即生效>
4、Raid磁盘管理
#查看物理磁盘 racadm storage get pdisks Disk.Bay.0:Enclosure.Internal.0-1:RAID.SL.8-1 Disk.Bay.1:Enclosure.Internal.0-1:RAID.SL.8-1 Disk.Bay.2:Enclosure.Internal.0-1:RAID.SL.8-1 Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1 Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1 #查看逻辑磁盘 racadm storage get vdisks Disk.Virtual.1:RAID.SL.8-1 Disk.Virtual.0:RAID.SL.8-1 Disk.Virtual.0:RAID.Integrated.1-1 Disk.Virtual.1:RAID.Integrated.1-1 #删除指定raid 阵列 racadm storage deletevd:Disk.Virtual.1:RAID.SL.8-1 #转换磁盘格式 Raid转直通 racadm storage converttononraid:Disk.Bay.1:Enclosure.Internal.0-1:RAID.SL.8-1 racadm storage converttononraid:Disk.Bay.2:Enclosure.Internal.0-1:RAID.SL.8-1 #创建一个重启的计划任务,以进行更改 racadm jobqueue create RAID.SL.8-1 -s TIME_NOW -r pwrcycle #安排个硬重启 racadm serveraction hardreset
5、计划任务
racadm jobqueue view #查看任务 racadm jobqueue delete -i JID_784359112279 #删除指定任务
One thought on “iDRAC 命令行常用命令”