ipmitool开启看门狗功能
时间: 2024-01-24 21:03:16 浏览: 318
以下是使用ipmitool开启看门狗功能的步骤:
1. 确认服务器支持IPMI功能,并且已经安装了ipmitool工具。
2. 连接服务器的IPMI管理口,使用以下命令检查看门狗是否已经启用:
```shell
ipmitool -I lanplus -H <host_ip> -U <username> -P <password> mc watchdog get
```
如果看到“Watchdog Timer Use: SMS/OS (0x14)”字样,说明看门狗已经启用。
3. 如果看门狗未启用,使用以下命令开启看门狗:
```shell
ipmitool -I lanplus -H <host_ip> -U <username> -P <password> mc watchdog get
```
然后使用以下命令设置看门狗定时器的超时时间:
```shell
ipmitool -I lanplus -H <host_ip> -U <username> -P <password> mc watchdog timer <timeout>
```
其中,<timeout>是看门狗定时器的超时时间,单位为秒。
4. 最后,使用以下命令启动看门狗:
```shell
ipmitool -I lanplus -H <host_ip> -U <username> -P <password> mc watchdog start
```
看门狗现在已经启用并开始监视系统。如果系统在超时时间内没有响应,看门狗将会重启系统。
阅读全文
相关推荐
















