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_Band uses a profile namedVaultProfile, stored locally on theHQ-PRD-NET2_Bagent -
$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, namedHQ-PRD-NET3_C, interacts with the password vault using the default profile stored locally on theHQ-PRD-NET3_Cagent. -
$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
POOL4CYBERARKand applies the profile namedVaultProfilestored locally on thePOOL4CYBERARKpool -
$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
DPOOL4CYBERARKand applies the default profile stored locally on theDPOOL4CYBERARKdynamic 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 namedVaultProfileand stored locally on theHQ-PRD-NET2_Bagent -
$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 theHQ-PRD-NET2_Bagent 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