This example explains how a section of the SSH Device XML file defines the commands that PUPM executes on an SSH Device endpoint. Each <item> element in the section defines the parameters for a specific action. Together, all the <item> elements create a script that defines how PUPM interacts with the endpoint.
Each <item> element begins with the sCommand parameter. The sCommand parameter defines a command that PUPM executes on the endpoint. The parameters after the sCommand parameter define any other actions that PUPM performs after that command.
This example shows you how a section of the Cisco-UCS_connector_conf.xml file defines the commands that PUPM uses to change privileged account passwords on a Cisco switch. The Cisco-UCS_connector_conf.xml file is located in the following directory:
ACServerInstallDir/Connector Server/conf/override/sshdyn
This example shows only a section of the Cisco-UCS_connector_conf.xml file. Additional elements in the file configure the connection to the Cisco switch and specify the commands that PUPM executes to get users.
Note: For more information about the format of the SSH Device XML file, see the Reference Guide.
The following process shows you the commands that PUPM executes to change privileged account passwords on a Cisco switch. To demonstrate how <item> elements configure the commands that PUPM executes, the corresponding <item> element is given at the end of each step.
set password
The following <item> element specifies the actions that PUPM takes in this step:
<item> <param name="sCommand" value="set password" /> <param name="iWait" value="500" /> <param name="sWaitForText" value="word:" /> </item>
PUPM does not write the new password to the log file.
The following <item> element specifies the parameters for this command:
<item> <param name="sCommand" value="[%%password%%]" /> <param name="bHideSentLog" value="true" /> <param name="iWait" value="500" /> <param name="sWaitForText" value="word:" /> </item>
PUPM does not write the new password to the log file.
If PUPM receives a failure, invalid, or error text string, the password change failed.
The following <item> element specifies the parameters for this command:
<item> <param name="sCommand" value="[%%password%%]" /> <param name="bHideSentLog" value="true" /> <param name="iWait" value="500" /> <param name="sWaitForText" value="local-user* #" /> <param name="sFailureResult" value="failure;invalid;error" /> </item>
commit-buffer
PUPM does not write this command to the log file.
If PUPM receives the Error: Update failed: text string, the password change failed.
The following <item> element specifies the parameters for this command:
<item> <param name="sCommand" value="commit-buffer" /> <param name="bHideSentLog" value="true" /> <param name="iWait" value="500" /> <param name="sWaitForText" value="local-user #" /> <param name="sFailureResult" value="Error: Update failed:" /> </item>
The password change is complete.
| Copyright © 2012 CA. All rights reserved. |
|