What is the error you are getting ?
The Perl script based NSH job should be used here. The ‘use ’ is a Perl syntax to load a Perl module. Is the module ‘Infoblox’ installed by you in the standard Perl location ?
When you install a Perl module, it goes into the standard library path where the Perl interpreter looks for it . As far as I know, Infoblox can be a perl based sdk for network automation.
If you know the path where this module is located, you can always add it to @INC variable to make sure Perl looks at that location to get the module.
Are you expecting to run the script on a target server or on the application server?
You can use the NSH script type 4 for perl scripts, but they will be run on the appserver.
Where is that library installed?
The alternative option is to create a shell script that (NSH script type 3) just runs the perl script.
So you put the perl script on the target server and kick it off by means of your shell script.
Could u send the script...
Did you make this a ‘type 4’ nsh script?
1 of 1 people found this helpful
I used another alternative solution: I made a type 2 NSH script and inside it I written a syntax like this:
<dir_script_on server>/add_host.pl $2 $3 $4 $5 $6 $7
i.e. a recall to a perl script with some parameters.
Then I created an NSH script job in which I passed it the seven parameters above.
So in this way it worked.
I hope this solution (in Italy we called little game, "giochino" :-)) can be useful to someone.
Thanx for your support, in order to understand and study the differences between NSH script types.
keep in touch, bye.