使用 racadm 将第一个引导设备持久设置为 PXE

Tif*_*y V 4 drac dell

这就是我一直在做的事情:

racadm -r <server> -u user -p password config -g cfgServerInfo -o cfgServerFirstBootDevice PXE
racadm -r <server> -u user -p password serveraction hardreset
Run Code Online (Sandbox Code Playgroud)

这对于下次启动非常有用,但之后它会恢复为从硬盘驱动器启动。我有大约 400 台 Dell rx720 机器,我想在其上设置此配置,因此如果我可以使用脚本自动执行此操作,它将为我节省大量时间。知道如何解决这个问题吗?

Tif*_*y V 5

我将回答我自己的问题,因为我现在知道答案了。需要发生的是发送 cfgServerBootonce 命令,并将其设置为 0。所以在这种情况下,它将是:

racadm -r <server> -u user -p password config -g cfgServerInfo -o cfgServerFirstBootDevice PXE
racadm -r <server> -u user -p password config -g cfgServerInfo -o cfgServerBootOnce 0
racadm -r <server> -u user -p password serveraction powercycle
Run Code Online (Sandbox Code Playgroud)

现在它起作用了。