I work for a government agency with about 150 WAN connections, routers and firewalls mostly, that are monitored with NPM. We have a base map showing all of the locations on a geographic map, and submaps for each location showing the routers, switches & firewalls there. We are heavily customizing the submap for each location, inserting hyperlink buttons which link to databases and information on other servers, other websites, and kicking off scripts and utilities. Our submaps have buttons all over them now.... Due to this SolarWinds NPM has become far more than just a network monitor application to us, it's THE place to go for information about these offsite locations...
Here is my question:
Using the hyperlink abilities of objects on the submaps, can anyone tell me how I can send an "argument" (aka "variable", aka "string") to the file being referenced? Specifically, from the submaps we sometimes have to call old "DOS" style BATCH files (CMD files actually), and being able to send a variable (%1 %2 etc) to that file would be a godsend. Currently we have to create unique CMD files for each link, being able to create just one CMD file setup to receive a variable would be much better than 150 unique command files for each type of link.
As an example, one of our links opens an SSH connection to Firewalls.
Currenlty we have a Hyperlink something like this
Hyperlink = "\\SolarWinds\SolarWinds\Scripts\192.168.54.253.ssh.cmd"
And that file might contain the following:
set WANDEV=192.168.54.253
start |\SolarWinds\SolarWinds\SSH\ttermpro.exe %WANDEV%:22 /L=Q:\Configs\%WANDEV%.txt /W="%WANDEV%"
I would much rather do something like this with a Hyperlink that also sends an argument with it:
Hyperlink= "|\SolarWinds\SolarWinds\Scripts\ssh.cmd?192.168.54.253"
Where the portion after the "?" is the string sent to the file ('ala web HTML), and the CMD file knows to accept the string and use it correctly:
Then the CMD files would be "generic" and accept the string as variable %1
set WANDEV=%1
start \\SolarWinds\SolarWinds\SSH\ttermpro.exe %WANDEV%:22 /L=Q:\Configs\%WANDEV%.txt /W="%WANDEV%"
Anyone have any ideas on how to make something like that work? I've tried everything I could think of, but the string is never actually sent to the CMD file from the SolarWinds Hyperlink.
Thanks!
Brian