查询和设置超级电容自学习

命令功能

查询、设置控制卡的超级电容自学习功能。

命令格式

命令

说明

hiraidadm ccontroller_id:sc show selflearn

查询控制卡的超级电容自学习状态。

hiraidadm ccontroller_id:sc set learn cycle=learn_cycle [starttime=starttime]

设置控制卡的超级电容自学习功能。

参数说明

参数

参数说明

取值

controller_id

控制卡的ID。

查询控制卡ID请参见查询控制卡列表

learn_cycle

超级电容的学习间隔。

最小为1,最大由启动时间限定,启动时间加cycle天数最大支持2100-01-01,12:00:00。

单位:day

starttime

启动时间。

不填时默认以当前时间进行设置。

yyyy-MM-dd,hh:mm:ss,最小为当前时间,最大设置时间为距当前24小时。

使用指南

使用实例

查询控制卡超级电容自学习状态。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[root@localhost ~]# hiraidadm c0:sc show selflearn
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================
Present            | Yes
Learn cycle        | 30day
Last learn status  | OK
Last learn time    | 2022-11-16 02:24:56
Next learn time    | 2022-11-17 02:34:20
设置控制卡的超级电容自学习功能。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[root@localhost ~]# hiraidadm c0:sc set learn cycle=5 starttime=2022-11-17,00:00:00
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================