Examples of job definitions with password retrieval from CyberArk

Several examples in which a password vault is used tom retrieve the password for a specified user.

The job runs on the local agent named EU-HWS-WIN14_1 and uses a profile named VaultProfile, stored locally on the EU-HWS-WIN14_1 agent
$JOBS
/F3_DA/EU-HWS-WIN14_1#CYBERARK_JOB_135223229
TASK  
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl" 
xmlns:jsdlremotecommand="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdlremotecommand" name="REMOTECOMMAND">
    <jsdl:application name="remotecommand">
        <jsdlremotecommand:remotecommand>
            <jsdlremotecommand:RemoteCommandParameters>
                <jsdlremotecommand:taskPanel>
                    <jsdlremotecommand:command>netstat</jsdlremotecommand:command>
                                </jsdlremotecommand:taskPanel>
                <jsdlremotecommand:environmentPanel>
                    <jsdlremotecommand:standardOutput/>
                    <jsdlremotecommand:standardError/>
                                </jsdlremotecommand:environmentPanel>
                <jsdlremotecommand:serverPanel>
                    <jsdlremotecommand:serverInfo>
                        <jsdlremotecommand:serverName>EU-HWS-LNX122</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F3_DA/EU-HWS-WIN14_1#VaultProfile:rshLocalUser}</jsdl:password>
                                        </jsdlremotecommand:credentials>
                    <jsdlremotecommand:certificates>
                        <jsdlremotecommand:keystoreFilePath/>
                        <jsdlremotecommand:password/>
                                        </jsdlremotecommand:certificates>
                                </jsdlremotecommand:serverPanel>
                        </jsdlremotecommand:RemoteCommandParameters>
                </jsdlremotecommand:remotecommand>
    </jsdl:application>
</jsdl:jobDefinition>
 TWSAFFINITY ""
 DESCRIPTION ""
RECOVERY STOP
The job runs on a remote agent named EU-HWS-WIN14_1 . Another agent, named EU-HWS-LNX61_1, interacts with the password vault using the default profile stored locally on the EU-HWS-LNX61_1 agent.
$JOBS
/F3_DA/EU-HWS-WIN14_1#CYBERARK_JOB_135337329
TASK  
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl" 
xmlns:jsdlremotecommand="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdlremotecommand" name="REMOTECOMMAND">
    <jsdl:application name="remotecommand">
        <jsdlremotecommand:remotecommand>
            <jsdlremotecommand:RemoteCommandParameters>
                <jsdlremotecommand:taskPanel>
                    <jsdlremotecommand:command>netstat</jsdlremotecommand:command>
                                </jsdlremotecommand:taskPanel>
                <jsdlremotecommand:environmentPanel>
                    <jsdlremotecommand:standardOutput/>
                    <jsdlremotecommand:standardError/>
                                </jsdlremotecommand:environmentPanel>
                <jsdlremotecommand:serverPanel>
                    <jsdlremotecommand:serverInfo>
                        <jsdlremotecommand:serverName>EU-HWS-LNX122</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F2_DA/EU-HWS-LNX61_1#rshLocalUser}</jsdl:password>
                                        </jsdlremotecommand:credentials>
                    <jsdlremotecommand:certificates>
                        <jsdlremotecommand:keystoreFilePath/>
                        <jsdlremotecommand:password/>
                                        </jsdlremotecommand:certificates>
                                </jsdlremotecommand:serverPanel>
                        </jsdlremotecommand:RemoteCommandParameters>
                </jsdlremotecommand:remotecommand>
    </jsdl:application>
</jsdl:jobDefinition>
 TWSAFFINITY ""
 DESCRIPTION ""
RECOVERY STOP
The job runs on a pool named POOL4CYBERARK and applies the profile named VaultProfile stored locally on the POOL4CYBERARK pool
$JOBS
POOL4CYBERARK#CYBERARK_JOB_135406395
TASK  
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl" 
xmlns:jsdlremotecommand="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdlremotecommand" name="REMOTECOMMAND">
    <jsdl:application name="remotecommand">
        <jsdlremotecommand:remotecommand>
            <jsdlremotecommand:RemoteCommandParameters>
                <jsdlremotecommand:taskPanel>
                    <jsdlremotecommand:command>netstat</jsdlremotecommand:command>
                                </jsdlremotecommand:taskPanel>
                <jsdlremotecommand:environmentPanel>
                    <jsdlremotecommand:standardOutput/>
                    <jsdlremotecommand:standardError/>
                                </jsdlremotecommand:environmentPanel>
                <jsdlremotecommand:serverPanel>
                    <jsdlremotecommand:serverInfo>
                        <jsdlremotecommand:serverName>EU-HWS-LNX122</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:POOL4CYBERARK#VaultProfile:rshLocalUser}</jsdl:password>
                                        </jsdlremotecommand:credentials>
                    <jsdlremotecommand:certificates>
                        <jsdlremotecommand:keystoreFilePath/>
                        <jsdlremotecommand:password/>
                                        </jsdlremotecommand:certificates>
                                </jsdlremotecommand:serverPanel>
                        </jsdlremotecommand:RemoteCommandParameters>
                </jsdlremotecommand:remotecommand>
    </jsdl:application>
</jsdl:jobDefinition>
 TWSAFFINITY ""
 DESCRIPTION ""
RECOVERY STOP
The job runs on a dynamic pool named DPOOL4CYBERARK and applies the default profile stored locally on the DPOOL4CYBERARK dynamic pool
$JOBS
DPOOL4CYBERARK#CYBERARK_JOB_135452149
TASK  
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl" 
xmlns:jsdlremotecommand="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdlremotecommand" name="REMOTECOMMAND">
    <jsdl:application name="remotecommand">
        <jsdlremotecommand:remotecommand>
            <jsdlremotecommand:RemoteCommandParameters>
                <jsdlremotecommand:taskPanel>
                    <jsdlremotecommand:command>netstat</jsdlremotecommand:command>
                                </jsdlremotecommand:taskPanel>
                <jsdlremotecommand:environmentPanel>
                    <jsdlremotecommand:standardOutput/>
                    <jsdlremotecommand:standardError/>
                                </jsdlremotecommand:environmentPanel>
                <jsdlremotecommand:serverPanel>
                    <jsdlremotecommand:serverInfo>
                        <jsdlremotecommand:serverName>EU-HWS-LNX122</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:DPOOL4CYBERARK#rshLocalUser}</jsdl:password>
                                        </jsdlremotecommand:credentials>
                    <jsdlremotecommand:certificates>
                        <jsdlremotecommand:keystoreFilePath/>
                        <jsdlremotecommand:password/>
                                        </jsdlremotecommand:certificates>
                                </jsdlremotecommand:serverPanel>
                        </jsdlremotecommand:RemoteCommandParameters>
                </jsdlremotecommand:remotecommand>
    </jsdl:application>
</jsdl:jobDefinition>
 TWSAFFINITY ""
 DESCRIPTION ""
RECOVERY STOP
The job runs on the local agent named EU-HWS-WIN14_1, uses a CyberArk query to retrieve the password and applies a profile named VaultProfile and stored locally on the EU-HWS-WIN14_1 agent
$JOBS
/F3_DA/EU-HWS-WIN14_1#CYBERARK_JOB_135514915
TASK  
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl" 
xmlns:jsdlremotecommand="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdlremotecommand" name="REMOTECOMMAND">
    <jsdl:application name="remotecommand">
        <jsdlremotecommand:remotecommand>
            <jsdlremotecommand:RemoteCommandParameters>
                <jsdlremotecommand:taskPanel>
                    <jsdlremotecommand:command>netstat</jsdlremotecommand:command>
                                </jsdlremotecommand:taskPanel>
                <jsdlremotecommand:environmentPanel>
                    <jsdlremotecommand:standardOutput/>
                    <jsdlremotecommand:standardError/>
                                </jsdlremotecommand:environmentPanel>
                <jsdlremotecommand:serverPanel>
                    <jsdlremotecommand:serverInfo>
                        <jsdlremotecommand:serverName>EU-HWS-LNX122</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F3_DA/EU-HWS-WIN14_1#VaultProfile:AppDescs::AppID=TestApplicationCert;Query:
:Safe=TestSafe;Query::Folder=Root;Query::Object=rshLocalUser;Query::Username=rshLocalUser;Query::Address=Address;Query::PolicyID=UnixSSH}</jsdl:password>
                                        </jsdlremotecommand:credentials>
                    <jsdlremotecommand:certificates>
                        <jsdlremotecommand:keystoreFilePath/>
                        <jsdlremotecommand:password/>
                                        </jsdlremotecommand:certificates>
                                </jsdlremotecommand:serverPanel>
                        </jsdlremotecommand:RemoteCommandParameters>
                </jsdlremotecommand:remotecommand>
    </jsdl:application>
</jsdl:jobDefinition>
 TWSAFFINITY ""
 DESCRIPTION ""
RECOVERY STOP
The job on the local agent named EU-HWS-WIN14_1, uses a CyberArk query to retrieve the password with no profile specified in the string. In this case, the default profile stored locally on the EU-HWS-WIN14_1 agent is used.
$JOBS
/F3_DA/EU-HWS-WIN14_1#CYBERARK_JOB_135631034
TASK  
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl" 
xmlns:jsdlremotecommand="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdlremotecommand" name="REMOTECOMMAND">
    <jsdl:application name="remotecommand">
        <jsdlremotecommand:remotecommand>
            <jsdlremotecommand:RemoteCommandParameters>
                <jsdlremotecommand:taskPanel>
                    <jsdlremotecommand:command>netstat</jsdlremotecommand:command>
                                </jsdlremotecommand:taskPanel>
                <jsdlremotecommand:environmentPanel>
                    <jsdlremotecommand:standardOutput/>
                    <jsdlremotecommand:standardError/>
                                </jsdlremotecommand:environmentPanel>
                <jsdlremotecommand:serverPanel>
                    <jsdlremotecommand:serverInfo>
                        <jsdlremotecommand:serverName>EU-HWS-LNX122</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F3_DA/EU-HWS-WIN14_1#AppDescs::AppID=TestApplicationCert;Query:
:Safe=TestSafe;Query::Folder=Root;Query::Object=rshLocalUser;Query::Username=rshLocalUser;Query::Address=Address;Query::PolicyID=UnixSSH}</jsdl:password>
                                        </jsdlremotecommand:credentials>
                    <jsdlremotecommand:certificates>
                        <jsdlremotecommand:keystoreFilePath/>
                        <jsdlremotecommand:password/>
                                        </jsdlremotecommand:certificates>
                                </jsdlremotecommand:serverPanel>
                        </jsdlremotecommand:RemoteCommandParameters>
                </jsdlremotecommand:remotecommand>
    </jsdl:application>
</jsdl:jobDefinition>
 TWSAFFINITY ""
 DESCRIPTION ""
RECOVERY STOP