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 HQ-PRD-NET2_B and uses a profile named VaultProfile, stored locally on the HQ-PRD-NET2_B agent
$JOBS
/F3_DA/HQ-PRD-NET2_B#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>HQ-PRD-NET212</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F3_DA/HQ-PRD-NET2_B#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 HQ-PRD-NET2_B. Another agent, named HQ-PRD-NET3_C, interacts with the password vault using the default profile stored locally on the HQ-PRD-NET3_C agent.
$JOBS
/F3_DA/HQ-PRD-NET2_B#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>HQ-PRD-NET212</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F2_DA/HQ-PRD-NET3_C#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>HQ-PRD-NET212</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>HQ-PRD-NET212</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 HQ-PRD-NET2_B, uses a CyberArk query to retrieve the password and applies a profile named VaultProfile and stored locally on the HQ-PRD-NET2_B agent
$JOBS
/F3_DA/HQ-PRD-NET2_B#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>HQ-PRD-NET212</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F3_DA/HQ-PRD-NET2_B#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 HQ-PRD-NET2_B, 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 HQ-PRD-NET2_B agent is used.
$JOBS
/F3_DA/HQ-PRD-NET2_B#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>HQ-PRD-NET212</jsdlremotecommand:serverName>
                        <jsdlremotecommand:port/>
                        <jsdlremotecommand:protocol>Auto</jsdlremotecommand:protocol>
                                        </jsdlremotecommand:serverInfo>
                    <jsdlremotecommand:credentials>
                        <jsdl:userName>rshLocalUser</jsdl:userName>
                        <jsdl:password>${vault:/F3_DA/HQ-PRD-NET2_B#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