In some of our reports we want to be able to use the drilldown link to take us to another web site (web based CMDB). In the drilldown link we want to pass the client IP address - we would like to know what variables are available to go in the URL Parameters field?
Answer by Sebastian K. ·
Nate - to answer your problem with additional parameters that should not be there - this has been fixed in 12.3.
Answer by Nate A. ·
Adam,
I'd like to piggyback onto this thread. I have a customer that is looking to link to an external site (no parameters at all need to be passed). Right now, they are doing report tabs and doing a custom report with their URL, but a bunch of those hard coded parameters are being passed as well. Is there anyway to not pass those?
Example: DMI report with a TAB at the top that says, "Link to Intranet Site"
We want that to link to http://myintranetsite.com but not to pass any parameters. I'd think this would be possible, but it's adding in those parameters.
Thanks!
Nate
Nate,
As you said they are hardcoded and they are not configurable.
But do they really break loading of http://myintranetsite.com?
Base on my tests I would expect that as long as destination page (meaning the PHP/ASP/whatever page code) does not accept (and it should since I guess it's not aware of CAS code ) these params the page will load with no issues, despite having all these params glued.
Take a look at https://apm.demo.compuware.com/LSServlet?lsAction=LoadByName&lsEntryName=Custom+links&dmiAction=Generate: BOA does not have any issues.
Or maybe the page accepts all params and reports 404?
Answer by Nathan E. ·
just to follow on from this is there a list of these variables, like the "client_ip", I assume there's "server_ip" but how about all the other dimensions that are available?
Nathan,
As I said in my first post, Parameters are optional parameters that you need to hard code in the URL as the external system requires it.
The name of the GET parameter name that will carry the value of DMI dimension is defined by you, in appropriate Apply as field ...
Hope I'm clear, otherwise please let me know.
Answer by Radoslaw S. ·
These parameters are generic and are used by DMI to correctly build a drill-down link with action name and user auth token.
Why you simply cannot ignore these params in your external application ?
Answer by Nathan E. ·
Hi Adam, we've copied this exactly and it doesn't pass the client IP address on it's own, we do get the full URL as you described, so to try to be clear....
we want to go to http://servercmdb/q=10.1.1.1
where we have http://servercmdb/q= as the URL and then pass 10.1.1.1 (client IP) as a parameter.
Thanks again
Having:
results in:
http://servercmdb/ ? dmiAction=Generate & uid=RTQ1NkFCNjYwOUQzODI2NjM2NjY1QjdBMEQxOTdFRDQxODBEOUU1MTFCQTRFMjgyMkNFOEY1RDIzQjUyODc1NA%3D%3D & q=2.2.62.234&
Do you mean that you would like to get rid of uid and dmiAction parameters and have only q? Your system will not accept/disregard these two parameters?
Answer by Adam P. ·
Sure. If you pick Client IP adress on Subject data tab in DMI and go to Drilldown Links tab you will see:
URL is the address of your remote, 3rd party system,
Parameters are optional, constant parameters you must pas to your system,
Client IP address Apply as is name of the GET parameter of your remote system that will carry the IP.
The entire URL from above example looks like:
http://www.compuware.com/ ? param1=value1 & dmiAction=Generate & timeResolution=PERIOD & uid=OEI0QUExQkI0N0I5NzEwMzREQTVBMEU2MkVEMUVGMzlCMTI1QTBGQzc1RUY1MDc1NjcyRjAwMTQzNjJGMTlGMw%3D%3D & client_ip=10.21.79.243 & startTime=1402873200000 & endTime=1402914300000 & ptime_Begin_=6%2F16%2F14%2000%3A00 & ptime_RangeType_=Today & ptime_RelativeBeginTime_=00%3A00 & ptime_RelativeOrAbsolute_=a & ptime_Resolution_=r & ptime_StepUnit_=60000 & ptime_Steps_=685 &
If you don't need time range and resolution - set both Time range and Resolution Settings to Ignore value and the URL will be as simple as:
http://www.compuware.com/ ? param1=value1 & dmiAction=Generate & uid=OEI0QUExQkI0N0I5NzEwMzREQTVBMEU2MkVEMUVGMzlCMTI1QTBGQzc1RUY1MDc1NjcyRjAwMTQzNjJGMTlGMw%3D%3D & client_ip=10.21.79.243&
Hope it helps.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET