In 7, there are unreleased commands that could help for Package name and targets
Get the package associated with a deploy job:
Get a list of target servers:
DeployJobRun getDevices - gets a list of Server IDs for a job run
Server getServerNameById - released, maps a server ID to name.
So, nothing available in v6.3.2? Need to wait until Lotus?
DeployJob getAssociatedDeployedPackageInstanceBean is not in 6.3.2 and DeployJobRun getDevices is in 6.3.2.
This will give you an array of objects.
In Jython, you'll need to iterate through that array (below, "storedKeys") and, for each object:
for key in storedKeys:
That will give you the BlPackage key. From there, you know how to get package information.
I can't seem to find the blcli command to determine the package name from the package db key. What is the command?
Brad - The command you provided is currently not released. I was going to provide our folks with a newly named DeployJob-PSAdditional.xml (unique file name) with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE command_inventory SYSTEM "file://bladelogic.com/dtds/Command-Inventory.dtd">
Message was edited by:
Andrew Knott - formatting
How do you run jython in unreleased mode?
What is the command to get a BLPackage name using the package key?
I think in the jython interface all BLCLI commands are released... or do you mean how to run jython on verisons prior to 6.3.4 where it was for the first time "out of the box" - in that case I guess the tutorial written by Brad should help you do so (https://www.bladelogic.com/community/kbclick.jspa?categoryID=163&externalID=380&searchID=25068)
In order to get the BLPackage using it's key I guess you would use one of these :
- DepotObject findByDBKey
- DepotObject findByTypeAndId
- DepotObject findByTypeAndKey
The new xml file was copied into the directory and not having any luck after realizing that the command does not have an argument list specified.
What is the arg list supposed to be for "DeployJob getDepotObjectKeys"?
Above is the xml file I had them copy into the cli/xml directory.
Also, should published = "yes" as well?
What is the argument to pass to blcli to allow me to run all un-released/un-published commands? I remember being able to pass in an argument to allow for this but can't find it anywhere.
There's no such option that I know.
As far as I know, if you want to use unreleased commands you have to write extra XML files with complex commands that are themselves released ant that refere to the unreleased commands you intend to use.
There is no publically available, supported way to access unreleased blcli commands.
I've tried DeployJobRun getDevices since I'm working on a similar case at SG in France but this command returns an object (some kind of a list) which is quite of mysterious to me. When I try to feed the Server getServerNameById with it I get an error that indicates a type mismatch. I think I need a additional instruction in between to convert the object type... any clue ?