lssra
使用 lssra 命令可检查安全远程帮助状态和上次登录时间。
语法
参数
- -nohdr
- (可选)缺省情况下,将在简明样式视图中显示每个数据列的标题,在详细样式视图中显示每个数据项的标题。-nohdr 参数用于禁止显示这些标题。注: 如果无需显示任何数据,那么不会显示标题。
- -filtervalue?
- (可选)显示 -filtervalueattribute=value 参数的有效过滤器属性的列表。lssra 命令的有效过滤器为:
port_idowning_node_idcurrent_node_idhost_io_permittedvirtualized
- -filtervalue attribute=value
- (可选)指定一个或多个过滤器的列表。仅返回值与过滤器属性值匹配的对象。如果指定了容量,那么还必须包含单位。
- -config_node
- (可选)指定当前配置节点的本地字段值。如果指定节点是活动集群系统的一部分,请勿指定此参数。此参数与其他所有参数互斥。
描述
此命令显示安全远程辅助状态和上次登录时间。
下表提供可显示为输出视图数据的属性值。
| 属性 | 描述 |
|---|---|
| status | 指示已启用还是未启用(缺省)支持辅助。 |
| token_age_in_days | 显示当前令牌已存在的天数。 |
| active_monitor_user_count | 显示登录到此系统的支持辅助监视器用户数。 |
| monitor_user_last_login | 以格式 YYMMDDHHMMSS 显示上次监视器用户登录的时间。缺省值为空白。 |
| active_privileged_user_count | 显示当前登录的安全远程访问特权用户数。 |
| privileged_user_last_login | 以 YYMMDDHHMMSS 格式显示最近一次支持辅助特权用户登录系统的日期和时间。缺省值为空白。 |
| remote_support_test_status | 指示最近一次测试远程系统支持服务时的服务状态。值为:
该值为配置节点上达到的最大状态,按从 |
| remote_support_test_time | 指示最近一次远程系统支持测试的时间戳记。该值必须采用 YYMMDDHHMMSS 格式。 |
| remote_support_config_changed_after_test | 指示最近一次测试系统后添加了支持中心。值为 yes 或 no(缺省值)。 |
| remote_support_enabled | 指示是否已启用远程支持。值为 yes 或 no(缺省值)。 |
| remote_support_status | 指示远程支持服务状态。如果未启用远程支持,那么状态为 disconnected。值为:
该值为所有联机节点上的最大状态,按从 |
| remote_support_enabled_time | 指示远程支持服务最近一次成功创建安全通道的时间戳记。该值必须采用 YYMMDDHHMMSS 格式。 |
| remote_support_idletimeout | 指示空闲超时值。该值必须是数字(非负数),并且缺省值为 0。 |
| remote_support_center_id | 指示支持中心标识(通过用于建立安全通道的 lssystemsupportcenter 来指定)。该值必须为 0 - 11 之间的数字,并且缺省值为空白。 |
已启用本地支持辅助的系统上的调用示例
lssra
生成的详细输出:
status enabled
active_monitor_user_count 0
monitor_user_last_login
active_privileged_user_count 0
privileged_user_last_login
token_age_in_days 7
remote_support_test_status connected
remote_support_test_time 161123183137
remote_support_config_changed_after_test no
remote_support_enabled no
remote_support_status disconnected
remote_support_enabled_time
remote_support_idletimeout 0
remote_support_center_id
已启用远程支持辅助的系统上的调用示例
lssra
生成的详细输出:
status enabled
active_monitor_user_count 0
monitor_user_last_login
active_privileged_user_count 1
privileged_user_last_login 161123204006
token_age_in_days 30
remote_support_test_status connected
remote_support_test_time 1611231530220
remote_support_config_changed_after_test no
remote_support_enabled yes
remote_support_status active
remote_support_enabled_time 161123183137
remote_support_idletimeout 0
remote_support_center_id 0
