显示资源或资源类的定义信息。
对于资源...
要显示定义:
lsrsrcdef [-p property] [-e] [-s] [-l | -i | -t | -d | -D delimiter] [-x] [-a] [-h] [-TV] resource_class [attr...]
要显示持久属性定义:
lsrsrcdef -A p [-p property] [-e] [-s] [-l | -i | -t | -d | -D delimiter] [-x] [-a] [-h] [-TV] resource_class [attr...]
要显示动态属性定义:
lsrsrcdef -A d [-p property] [-e] [-s] [-l | -i | -t | -d | -D delimiter] [-x] [-a] [-h] [-TV] resource_class [attr...]
对于资源类...
要显示定义:
lsrsrcdef -c [-p property] [-e] [-s] [-l | -i | -t | -d | -D delimiter] [-x] [-a] [-h] [-TV] resource_class [attr...]
要显示持久属性定义:
lsrsrcdef -c -A p [-p property] [-e] [-s] [-l | -i | -t | -d | -D delimiter] [-x] [-a] [-h] [-TV] resource_class [attr...]
要显示动态属性定义:
lsrsrcdef -c -A d [-p property] [-e] [-s] [-l | -i | -t | -d | -D delimiter] [-x] [-a] [-h] [-TV] resource_class [attr...]
要显示包含所有资源类名称的列表:
lsrsrcdef
lsrsrcdef 命令显示资源或资源类的定义或其持久或动态属性定义。在缺省情况下:
持久属性特性:
动态属性特性:
可以给特性指定一个十进制或十六进制值。要请求所有有一个或多个特性的属性的属性定义,请将感兴趣的特性“OR”在一起,然后用 -p 标志指定“OR 过”的值。例如,要显示为 reqd_for_define 或 option_for_define 的所有持久属性的属性定义,请输入:
lsrsrcdef -p 0x0a
要运行 lsrsrcdef,用户需要在 lsrsrcdef 中指定的对 resource_class 的写权限。许可权由所连接系统中的访问控制表(ACL)文件指定。
如果此环境变量没有设置,使用本地作用域。
当指定 -h 标志时,命令的用法语句写到标准输出。所有详细消息都写到标准输出。
所有跟踪消息都写到标准错误。
lsrsrcdef输出如下:
class_name "IBM.ATMDevice" "IBM.Association" "IBM.AuditLog" "IBM.AuditLogTemplate" "IBM.Condition" "IBM.EthernetDevice" "IBM.EventResponse" ...
lsrsrcdef -c IBM.Host输出如下:
IBM.Host 的资源类定义 资源类 1: class_name = "IBM.Host" class_id = 8 properties = {"has_rsrc_insts","mtype_subdivided"} display_name = "" description = "" locator = "NodeList" class_pattr_count = 1 class_dattr_count = 3 class_action_count = 0 pattr_count = 6 dattr_count = 47 action_count = 0 error_count = 0 rsrc_mgr_count = 1 rsrc_mgrs 1: mgr_name = "IBM.HostRM" first_key = 1 last_key = 1
lsrsrcdef -c -A p -p 0 IBM.Host输出如下:
IBM.Host 的资源类持久属性定义: 属性 1: program_name = "Variety" display_name = "" group_name = "" properties = {"read_only","inval_for_define"} description = "" attribute_id = 0 group_id = 255 data_type = "uint32" variety_list = {{1..1}} variety_count = 1 default_value = 0
lsrsrcdef -A p -p 0 -e IBM.Host输出如下:
IBM.Host 的资源持久属性定义: 属性 1: program_name = "Name" display_name = "Name" group_name = "General" properties = {"reqd_for_define","public","selectable"} description = "按命令返回的形式标识主机的当前名称。" attribute_id = 0 group_id = 0 data_type = "char_ptr" variety_list = {{1..1}} variety_count = 1 default_value = "" attribute 2: program_name = "ResourceHandle" display_name = "资源句柄" group_name = "内部" properties = {"read_only","inval_for_define","selectable"} description = "标识该主机的全局唯一句柄。 每个资源分配一个资源句柄, 用于每个资源的内部标识和定位。资源句柄大小固定,
避免了不同种类资源之间的名字空间冲突问题。" attribute_id = 1 group_id = 255 data_type = "rsrc_handle_ptr" variety_list = {{1..1}} variety_count = 1 default_value = "0x0000 0x0000 0x00000000 0x00000000 0x00000000 0x00000000" attribute 3: program_name = "Variety" display_name = "种类" group_name = "内部" ...
lsrsrcdef -A d IBM.Host输出如下:
IBM.Host 的资源动态属性定义: 属性 1: program_name = "ProcRunQueue" display_name = "" group_name = "" properties = {"公用"} description = "" attribute_id = 1 group_id = 1 data_type = "float64" variable_type = 0 variety_list = {{1..1}} variety_count = 1 init_value = 0 min_value = 0 max_value = 100 expression = "(ProcRunQueue - ProcRunQueue@P) >= (ProcRunQueue@P * 0.5)" expression_description = "" rearm_expression = "ProcRunQueue < 50" rearm_description = "" PTX_name = "" attribute 2: ...
命令:lsrsrc、mkrsrc
文件:Resource_Data_Input、rmccli