UCMDB and UD Practitioners Forum (Previously CMS)
Showing results for 
Search instead for 
Do you mean 

JMX URL query to pass arguments

Valued Contributor

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

3 REPLIES
Trusted 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. 

Valued 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 ?

Trusted 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.

 

//Add this to "OnDomLoad" event