Hello everyone. We have recently purchased NCM and are working to migrate our "old" perl scripts into NCM. What do you think would be the best way to accomplish this?
Thanks,
K
Thanks for the quick reply. Our current Perl scripts are used to send changes to cisco devices to manipulate routing. We need our scripts to do the exact same thing. It would be awesome if I could just move the perl script right into NCM, is that possible? What kind of format do the NCM scripts need to be? I looked for a template but didn't find too many and they seemed to be different.
I don't think NCM knows Perl (someone please correct me if I'm wrong), so I think you'll have to recreate your script using either command scripts or command templates. Do you intend these to run automatically, or do they require any user input at runtime?
The best place to start is the documentation for both types of scripts:
www.solarwinds.com/.../wwhelp.htm
Network Configuration Manager Administration Guide > Working With Command Scripts
Network Configuration Manager Administration Guide > Modifying Device Templates
Device templates are more interactive in nature and can request input from a user. Command scripts are automated (no user input required) and can be run on demand, scheduled, or in response to an alert.
That seems like such an obvious use, but I don’t think you can do that. I think the best you could do is create your script, then create a job that you then run on demand. The job will let you specify the node you want to use.
If you wanted to trigger the NCM script from an alert, then it would automatically know which node should be targeted.
Is there a way to specify the node within the script?
If you could pass the IP address of the target node as a command parameter to the script, would that work for the purpose? (Sorry if this is irrelevant - I am a complete noob in SW and perl.)
If it does work, here's how:
This field is in the script editing window and allows you to specify arguments to pass to the script. You may include the variables ${IP}, ${USER}, and ${PASSWORD}, which are replaced respectively by the IP address of the target node, the credential user name, and the credential password.
(from http://www.solarwinds.com/NetPerfMon/SolarWinds/wwhelp/wwhimpl/js/html/wwhelp.htm)
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.