but when i run the .bat file i just getting output :
D:\AFTD>nsradmin -i input.txt
Current query set
i would be interested to learn some basic networking scripting ,is there any resource available where i can get some info.I went through the " networker Command-Reference-Guide" but pretty confusing .
eg: for the above command i wanted to find all the attributes applicabe for "update "
Guess what - it happens here as well. And this seems to be related to the appropriate control daemon (nsrlcpd).
This guy is usually started automatically and on demand by its counterpart (nsrmmgd).
Monitor the processes - it seems that if you disable the jukebox from the GUI, nsrlcpd will be stopped as well (in the background) and restarted whenever you re-enable it.
However, if you use nsradmin, only the resource will change but the process will stay alive.
bingo.1
1 Rookie
•
2430 Posts
3943
0
Posted November 25th, 2015 06:00
Actually you can do this, but it is not so straight forward as you need to deal with the appropriate resource.
The correct command is "nsradmin".
To test this, run these commands:
C:\>nsradmin
NetWorker administration program.
Use the "help" command for help, "visual" for full-screen mode.
nsradmin>
nsradmin> . type: nsr jukebox; name: your_jbox_name
Current query set
nsradmin> update enabled: no
enabled: no;
Update? y
updated resource id 110.0.164.10.0.0.0.0.124.228.139.79.0.0.0.0.10.54.58.84(147983)
nsradmin>
nsradmin> update enabled: yes
enabled: yes;
Update? y
updated resource id 110.0.164.10.0.0.0.0.124.228.139.79.0.0.0.0.10.54.58.84(147985)
nsradmin> q
C:\>
Then copy the bolded commands to an appropriate text file.
Finally prepare a script or command which executes nsradmin with the text file as appropriate input file.
The core command should read like
nsradmin -i input_file
Good luck.