Copy the xml file to the .../br/xml/cli directory of any machine from which you are calling the blcli, whether a laptop/desktop or onto the application server.
It will return the DBKey of a job.
DeployJob getDeployJobDBKey "/group/name" "job name"
The problem with the default command is that it does not properly quote the string values inside the XML. They need to be re-quoted to compensate for any spaces like in the example job name.
Hmm... Interesting. I have used the existing DeployJob getDBKeyByGroupAndName without a problem.
Anyway, which ever method you use, note that you should NOT start the path with '/Jobs'. This should do the trick:
DeployJob getDBKeyByGroupAndName "/Workspace/Louise AIX" "ssh"
Also, try running it from the blcli subshell:
blcli -m subshell
Many thanks Brad
This works ok with a mod to the xml file you sugested.
Many thanks for your help
Message was edited by: Louise Hutton
Indeed. Change the $quot; on line 20 to ". It's the third "quot" text on that line.
i just about starting to use blade logic app. i saw this topic. i have gone through all the documentation there is and the blcli api goes over my head.
so 2 questions which are very similar to the topic
how do i from CLI get a list of jobs currently bladelogic and the command to deploy a perticular job.
blcli DeployJob <just made up something>
blcli DeployJob executeJobAndWait
any insights and pointers to Docs instead of APIs will be vastly appreciated.