I believe this was a complex command I wrote as part of the ‘change tracking’ scripts. You should be able to pull down the zip from the communities and copy the xmls over to the 8.1 install.
I found the command AuditJob.addMasterSnapshot but I keep gettingan exception "The list does not contain (MyServerName)"
How are you running that command?
And what are you trying to do?
I downloaded the AuditJob-PSAdditional-BS.xml file from
but when I try to use it I get the following error:
Command execution failed. com.bladelogic.om.infra.cli.factory.CommandLoadException: Failed to parse xml command file : /opt/bmc/BladeLogic/8.1/NSH/br/xml/cli/AuditJob-PSAdditional-BS.xml: com.bladelogic.om.infra.cli.factory.BadFormatException: Failed to parse the xml for complex command : resetJobMasterSnapshot: com.bladelogic.om.infra.cli.factory.BadFormatException: Failed to parse argument list for command: java.lang.ClassNotFoundException: com.bladelogic.model.base.keys.DBKey
Any chances this issue has been solved already?
how are you running the command ? can you paste in exactly how you call it ?
I am using your exec_blcli function:
BLCLICMD=(AuditJob resetJobMasterSnapshot "$sAUDITS_GROUP_NAME" "$sAuditJobName" "$sMasterSnapshotKey")
can you run the command manually w/ the required inputs and see if it works?
This is because the class/package structure has changed in 8.x
You need to change the xml and make use of the correct class type
Thanks Rohit, this worked!
I am uploading the new version of the file, where I replaced com.bladelogic.model.base.keys with com.bladelogic.om.infra.model.base.keys
Tested successfully on 8.1.3
Bill, not sure we have a repository for this somewhere else.
we do, i'll update it.
I copied the latest version of this AuditJob-PSAdditional-BS.xml script (mentioned above) to <INSTALL DIR>\NSH\br\xml\cli\
And when trying to use the command, whether that be via NSH script or manually through BLCLI, I get -
Unknown command : name space = 'AuditJob', command = 'resetJobMasterSnapshot'
.com.bladelogic.om.infra.cli.factory.CommandNotFoundException: Name space : AuditJob has no commands by name : resetJobMasterSnapshot
Do I need to do anything, besides restarting the BL windows services (if that's even required), before I can use this unreleased command?
Your assistance is very much appreciated!
EDIT: In the interim of getting this resolved, although it's not best practice, I've modified the generated AuditJob xml and added this complex command (resetJobMasterSnapshot) to it, and it's working fine, but I'd like to follow proper process here and not need to modify the system generated XMLs.
you shouldn't need to modify the existing xml file. as long as the file is in the NSH/br/xml/cli directory on the same box that you are starting the blcli from, then it should get picked up, assuming the user you are running the blcli as can read the file ...
I thought it was weird as well, I didn't recall having to do anything other than just drop the file out there. Something flakey is definitely going on, I'm a local administrator on the server, with full control of the file in question and the containing directory, and I'm trying to run it just manually via NSH on the same server right now, but for some reason it still says it can't find the command.
Any other ideas on what to check? I'm at a loss here.
You are starting blcli from this box right? not running it in a ‘nsh here’ from your workstation or something ?
Is this box the appserver or just has the gui on it ?