Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..
494 views

JMX URL query to pass arguments

Hello Experts,

From UCMDB:service=New Views Services i want to invoke execute a view.. in that i have to give customerID and viewName.

How can i pass these arguments in the url itself ?

 

Thanks

Anish

0 Likes
3 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: JMX URL query to pass arguments

You can, but it's a two-step process. You need first to get a valid token from JMX, for example

MYSERVER/192.168.1.1:1449508589673:-3550677211073182000

Without a token, you cannot proceed. You need to pass it in the same URL you call the executeView operation with. 

0 Likes
Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: JMX URL query to pass arguments

Hi,

Thanks a lot for your reply.

1. Is there any reference document for getting valid token from jmx-console.

2. Once i get valid token, how i can i pass arguements in the url ?

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: JMX URL query to pass arguments

No, there is no documentation regarding JMX fundamentals.

I suggest you have a look at the source code of a JMX Console page, like the one that opens when entering the Console, you will see a line like 

<input type="hidden" name="token" value="MYSERVER/yadadada-0123456789">

If you can somehow grep that out using a regex you can add it to a URL request you create in the same script.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.