10.4.4 Defining Custom Information Keys Using spacecmd

To create a custom information key, use the custominfo_createkey command.

spacecmd {SSM:0}> custominfo_createkey admin_user "Email of admin contact"

To list the available custom information keys, use the custominfo_listkeys command.

spacecmd {SSM:0}> custominfo_listkeys
asset_tag
admin_user

To assign a custom information key to a system or system group, use the system_addcustomvalue.

spacecmd {SSM:0}> system_addcustomvalue asset_tag "fc01568a" svr3.mydom.com
spacecmd {SSM:0}> system_addcustomvalue admin_user "[email protected]" group:group3

To list the custom information keys for a system or system group, use the system_listcustomvalues command.

spacecmd {SSM:0}> system_listcustomvalues svr3.mydom.com
asset_tag = fc01568a
admin_user = [email protected]
spacecmd {SSM:0}> system_listcustomvalues group:group3
System: svr3.mydom.com

asset_tag = fc01568a
admin_user = [email protected]

##############################

System: svr4.mydom.com

asset_tag = aa10889f
admin_user = [email protected]