get
操作概述
查询操作任务信息
命令参数
-k|--keyword=string 搜索行为、主机、对象和描述,示例:登录
-c|--code=string 错误码,单独使用--code参数时,默认从30天内的任务查找错误码,示例:0x01002BB5
-v|--vm-id=string 虚拟机id,示例:1223240430216
-t|--time=string 指定时间,格式:'YYYY-MM-DD HH:MM:SS'、'YYYY-MM-DD HH'
-H|--host=string 指定主机,示例:host-005056b234ca
-s|--status=string 指定状态,枚举值:progress(进行中),completed(完成),failed(失败),queued(排队中)
-u|--upid=string 异步任务upid,示例:UPID:host-005056b2906f:0000AFC2:398B:6909A843:编辑网口:1:admin@vtp:
-l|--limit=integer 指定展示记录的数目,(默认值为50),示例:1,2
使用示例
acli task get -H 'host-005056893c9d'
结果示例
alert_type: 备份报表数据
process: Failed
object_type:
pid:
vm:
id: 172
reserved3:
dest_host:
sched_effect:
end: 1757406086
event_id: 53084160
hostname: 10.131.135.63
object_id:
start: 2025-09-09 16:21:26
object_name:
sched_reason:
ha_handle_result:
type: Back up report data
status: 3
description: The cluster controller (10.131.135.63) failed to back up report data to another controller node (host-00505689470b), which may result in report data loss. Please contact a technical support representative.
sysloged: 0
upid:
host: 10.131.135.63
module_type: 50
user: admin (10.131.135.63)
risk_level: 10
hostid: host-005056893c9d
target: 10.131.135.63
log_id: host-005056893c9d:125938:1757406086:6302466651181
errcode_tracing: 0x01002386/0x0100028A/0x01000AD8/0x01000AD8/0x01000AD8/0x01000AD8
ha_handle_action:
otype: host
bcancel: 0
action_type: 10
request_id: ,8bfe04947cb6b9ff281edcd0b9baffe5
....