the job target doesn't determine what appserver runs the job. you need job routing rules for that.
what information are you looking for out of the details report ?
Really was just running the command as a health check to see if the app server was up and running. The script already connects to the app server via NSH and returns the blappserv PID as another test, so the getAppServerDetails retrieval was just another verification.
If I run the BLCLI commands directly on the app server console itself, it returns its own app server details, so I guess I could deploy a shell script on each app server and run it remotely to get this to work.
blcli_execute AppServerLauncher getAppServerStatus <appserverhostname> <instancename> ?
What is that supposed to return? I tried it but it just returned void (for valid inputs and invalid ones). I didn't see that in the BLCLI reference. Unreleased command?
# blcli_execute AppServerLauncher getAppServerStatus blapp2002.example.com blapp2002.example.com
blapp2002.example.com (from Launcher on blapp2002.example.com)
Name = blapp2002.example.com
Display Name = blapp2002.example.com
Server Type = ALL
State = VALID
Status = Ready
Elapsed Time = 2 day(s) 3 hour(s) 39 minute(s) 4 second(s)
Start Date = Tue Aug 25 14:27:57 EDT 2020
Needs Restart = false
Service Type = Automatic
Ahh yes, it worked when I entered the instance name of the app server, which for us is different than the host name.
Is there a way to list the instance names of the app servers, since the script would need a way to retrieve them so it can loop through the AppServerLauncher getAppServerStatus <appserverhostname> <instancename> command?
# blcli_execute AppServerLauncher getHostsAndServersMap
# blcli_execute Utility mapPrint
blapp.local = [blapp.local, blapp.local_pxe]
gives you the hostname to instance list for everything. parse that and loop through the instance name(s) ?
you can also use 'AppServerLauncher.listAppServerHostNames' to list all the launcher names
Yes, blcli_execute AppServerLauncher getHostsAndServersMap worked, and the Utility mapPrint parsed it out. Thanks, I was hoping there was another AppServerLauncher command that would do it.
Is there a list of all the AppServerLauncher commands? The only one that is published is listAppServerHostNames (AppServerLauncher - Documentation for BMC Server Automation Command Line Interface 8.9 - BMC Documentation )
listAppServerHostNames lists all the hostnames, but doesnt't list the instance names (in our case the instance names are not the same as the host names).
Thanks... Yep, there's everything. I had this stored a long time ago but must've gotten wiped off my device.