﻿getattributes
用于查看会话或选定节点的任何属性。可以使用 SetAttributes 命令更改属性。

语法

smartupdate getattributes [--nodes [nodelist]] [--session]

参数/选项/标志/字符串/...

--nodes [<nodelist>]
为其获取属性的节点的列表。如果未指定节点列表，则显示会话中的所有节点。

--session
列出 SUM 会话中可用的属性。

Windows 用法

C:\> smartupdate getattributes /nodes localhost

C:\> smartupdate getattributes /nodes 10.0.1.2

Linux 用法

$ ./smartupdate getattributes --nodes localhost

$ ./smartupdate getattributes --nodes 10.0.1.4

返回代码
SUCCESS_NO_REBOOT
Windows：0

Linux: 0

文本：命令成功。

SUCCESS_REBOOT
Windows：1

Linux: 1

文本：安装已成功，但需要重新引导。

SUCCESS_NOT_REQUIRED
Windows：3

Linux: 3

文本：已成功完成命令，但不是必需的或者所有内容都是最新的。

FAILURE_GENERAL
Windows：-1

Linux: 255

文本：发生了常规故障。有关详细信息，请参阅日志。

FAILURE_BAD_PARM
Windows：-2

Linux: 254

文本：遇到了错误的输入参数。有关详细信息，请参阅日志。

FAILURE_COMPONENT_FAILED
Windows：-3

Linux: 253

文本：安装组件失败。

FAILURE_COMMAND_FAILED
Windows：-4

Linux: 252

文本：命令失败。有关详细信息，请参阅日志。