Users Guide
NOTE: The slash (/) and backslash (\) are interchangeable in SM-CLP address paths. However, a backslash at the end
of a command line continues the command on the next line and is ignored when the command is parsed.
For example to navigate to the third record in the System Event Log (SEL), enter the following command:
->cd /admin1/system1/logs1/log1/record3
Enter the cd verb with no target to find your current location in the address space. The .. and . abbreviations work as they do in
Windows and Linux: .. refers to the parent level and . refers to the current level.
Using show verb
To learn more about a target use the show verb. This verb displays the target’s properties, sub-targets, associations, and a list of the SM-
CLP verbs that are allowed at that location.
Using the -display option
The show –display option allows you to limit the output of the command to one or more of properties, targets, associations, and
verbs. For example, to display just the properties and targets at the current location, use the following command:
show -display properties,targets
To list only certain properties, qualify them, as in the following command:
show –d properties=(userid,name) /admin1/system1/sp1/account1
If you only want to show one property, you can omit the parentheses.
Using the -level option
The show -level option executes show over additional levels beneath the specified target. To see all targets and properties in the
address space, use the
-l all option.
Using the -output option
The -output option specifies one of four formats for the output of SM-CLP verbs: text, clpcsv, keyword, and clpxml.
The default format is text, and is the most readable output. The clpcsv format is a comma-separated values format suitable for loading
into a spreadsheet program. The keyword format outputs information as a list of keyword=value pairs one per line. The clpxml format is
an XML document containing a
response XML element. The DMTF has specified the clpcsv and clpxml formats and their specifications
can be found on the DMTF website at dmtf.org.
The following example shows how to output the contents of the SEL in XML:
show -l all -output format=clpxml /admin1/system1/logs1/log1
Usage examples
This section provides use case scenarios for SMCLP:
• Server power management
• SEL management
• Map target navigation
Server power management
The following examples show how to use SMCLP to perform power management operations on a managed system.
Type the following commands at the SMCLP command prompt:
• To switch off the server:
stop /system1
272
Using SMCLP