The following link provide a fairly comprehensive ways of calling a remote command via python (examples)
with a full explanation in
Hi - thanks but I wasn't thinking of launching GeneralManerClient (as I do in perl) but actually using the REST API's to get the data.
I am not aware of anyone doing it, but it should be possible. It would be out of the box customization.
You will need a wsdl file (which I can provide).
Using the wsdl file you can leverage the soap calls.
I have not had a chance to do this, but the following site explains how to do it.
Let me know if you would like to wsdl file and I will e-mail it to you (let me know the version).
Interesting ... yes please can you send the wsdl file -version 11.5.00 and 11.5.01 - thanks
I say interesting as I did get someone to write a java program using just the detail in an investigate ppt document. only one metric) which worked fine.
Will the investigate api's be added to the official documentation ?
Thanks again for the prompt responses.
It is very unlikely that the API in wsdl format will be added to the official documentation.
Any code developed would fall under the BMC customization policy Customization Policy - BMC Software
Which means support would not be able to help with debugging the code.
Using wsdl requires a high level of sophistication, and it is easy to get things wrong.
For example we use java SOAP interface in the General Manager UI.
Using wsdl2java we generate stubs for input/output serialization.
Additional flags are required.
Darryl please open a case with support, and we can provide you with the wsdl file. (referencing this documentation)
We don't want to post the wsdl in an open forum.
In addition, the wsdl will change as new methods are added.
Thanks - case raised.
When using the GneralManger client is there any addtional configuration need in GeneralManagerServer for scalability - I'll have multiple scripts running at any time. Or do you know the limit on the number of "active sessions" .
The limit is in the listen and the accept network queues of the GeneralManagerServer. If you have too many connections happening at the same time, connections will fail. It depends on how quickly the connections are handled (from listen, to accept to thread) are handled by the system. Single binary listening on a single port.
I believe in our environment we found that 5-10 actions at any given moment in a queue make sense.
One more item there is a REST API that can be leveraged as well. It would not go directly GWS but via the Application server via the namespace
Given a set of servers, collection groups, metrics, time period and resolution
extract data points
Other available options are:
Example REST call
"analysis.type" : "TABLE_ANALYSIS",
"collection.group.subresources":[ "CPU ID"]
Thanks - that's the API I was thinking of.from the ppt I was sent - just need to wrap in it some python code.
This I assume requires AS which then calls GeneralManager.
For scalability how will it know which GeneralManger to call - would it route it all through one GM ?
and back the GM and the listen/accept... once accepted will the observered limit of 5/10 still apply ? or will it spawn multiple sessions ?
Re: requires AS which then calls GeneralManager.
Re: For scalability how will it know which GeneralManger to call - would it route it all through one GM ?
The determination will be made based on 2 conditions
1. Which GWS manages the agent list for the agent you are specifying
2. If no agent list manages the agent, which GWS manages the agent in the uncatalogued system.
Re: once accepted will the observered limit of 5/10 still apply ? or will it spawn multiple sessions ?
We thread out the call once we get past the listen/accept so the slot will be available for other connections. We don't block until the call completes. The 5/10 limit (in our environment) applies to the single GWS at a given time. Basically you don't want to make 1000s of calls at the same time.
I think I'm clear now.
We script calls to GM which loops through a file - so although it will be for thousands of servers we won''t be calling 1000's at any one time just the number of scripts. I can monitor but don't foresee any issues.
I'll try create some python code using the above and also look at the wsdl .
Thanks for your support - wonlt hit you with more questions today
No problem. Any time.
If you are using REST, you should not need wsdl. The only use case I see is debugging, and for those rare occasions you can use webInvestigate or GeneralManagerClient.