Highlighted
GibinG
1 Nickel

Networker Commands : Library

Jump to solution

I was wondering if there is any command to enable/disable networker library access to our shared tape  library .

I was hoping to create a .bat file and execute this command to control networker access to our production backup library

0 Kudos
1 Solution

Accepted Solutions
bingo.1
4 Tellurium

Re: Networker Commands : Library

Jump to solution

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.

0 Kudos
10 Replies
bingo.1
4 Tellurium

Re: Networker Commands : Library

Jump to solution

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.

0 Kudos
GibinG
1 Nickel

Re: Networker Commands : Library

Jump to solution

Thanks Bingo , I  created a bat file:   nsradmin -i  input.txt

Added lines to  input.txt  :

. type: nsr jukebox;name: i500L6;update enabled:yes;quit

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   " 

Please advise .

0 Kudos
GibinG
1 Nickel

Re: Networker Commands : Library

Jump to solution

got it working ...

. type: nsr jukebox; name: i500L6

update enabled:yes

Thanks Bingo

0 Kudos
GibinG
1 Nickel

Re: Networker Commands : Library

Jump to solution

although the script is working and the Jukebox is in "enabled" state , its not getting ready

nsradmin> p type:nsr jukebox;name: i500L6

                        name: i500L6;

                     enabled: yes;

                       ready: No;

.I see this error in the daemon log :

Jukebox 'i500L6' is not in a valid state for nsrlcpd update.


But if i enable the tape library jukebox through GUI , it gets enabled and ready

0 Kudos
bingo.1
4 Tellurium

Re: Networker Commands : Library

Jump to solution

Be aware of delays - It can take a while (1-2 mins) to become ready again.

But I do not see any other parameter that needs to be changed as well.

Is the jukebox attached to the NW server?

0 Kudos
GibinG
1 Nickel

Re: Networker Commands : Library

Jump to solution

Yes ,its attached to the NW server .. i did think of the delay and gave it some time . still not getting ready

0 Kudos
GibinG
1 Nickel

Re: Networker Commands : Library

Jump to solution

found it  ... OMG !!

. type: nsr jukebox; name: i500L6

update enabled:Yes



Note the "Yes "  ,  "Y" should be CAPS ., "es" should be small

nsradmin> p

                        name: i500L6;

                     enabled: Yes;

                       ready: Yes;

bingo.1
4 Tellurium

Re: Networker Commands : Library

Jump to solution

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.

Weird.

0 Kudos

Re: Networker Commands : Library

Jump to solution

Hello GibinG,

If you really confused with admin guide book, you have a look on - Turbocharged EMC NetWorker Guide

I think you can get it using google free of cost. It is really a nice and useful resource for Netwoker and full of example.

Regards,

Shubhadip Datta