GibinG

updated

11 years ago

G

GibinG

24 Posts

0

7254

November 25th, 2015 05:00

Networker Commands : Library

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

  • 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.

  • GibinG

    24 Posts

    3943

    0

    Posted November 25th, 2015 21:00

    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 .

  • GibinG

    24 Posts

    3943

    0

    Posted November 26th, 2015 03:00

    got it working ...

    . type: nsr jukebox; name: i500L6

    update enabled:yes

    Thanks Bingo

  • GibinG

    24 Posts

    3943

    0

    Posted November 26th, 2015 04:00

    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

  • GibinG

    24 Posts

    3945

    1

    Posted November 26th, 2015 05:00

    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

    1 Rookie

    •

    2430 Posts

    3943

    0

    Posted November 26th, 2015 05:00

    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?

  • bingo.1

    1 Rookie

    •

    2430 Posts

    3945

    0

    Posted November 26th, 2015 05:00

    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.

  • GibinG

    24 Posts

    3944

    0

    Posted November 26th, 2015 05:00

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

  • 3945

    1

    Posted December 2nd, 2015 06:00

    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

  • GibinG

    24 Posts

    368

    0

    Posted December 5th, 2015 23:00

    This guuide is definitely helpful . helps to get  a basic idea of the networker commands structure and then we can build on that .

    Thanks Shubhadip for the info.