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
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.
Can you provide a little more detail? Are you wanting to replace functionality that your Perl scripts currently provide? What do they do exactly?
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?
Thanks for the reply. The plan is to run these manually when needed not automatically. Where can I find the command scripts or templates?
One other question. I noticed that from the NCM it first asks what script you want to execute then it asks on what node. Is there a way to specify the node within the script?
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.