imranmalix
2 Bronze

How to register client in Networker from client end using command line

Jump to solution

I know you could register client using command line from/in the Networker server itself as sample below.

C:>nsradmin

NetWorker administration program.

Use the "help" command for help, "visual" for full-screen mode.

nsradmin> create type:nsr client;name:nw2012nws;save set:"c:\\"

type: nsr client;

name: nw2012nws;

save set: "c:\\";

Create? y

created resource id 0.167.42.191.0.0.0.0.86.222.38.11.10.32.11.201(1)

nsradmin> q


My question is, how you do this from client end (Windows and linux server)?


I saw someone share for solaris at this thread Adding multiple Networker Clients using Solaris


The purpose is to directly register server/client to networker during server build process, instead of need to go to networker


Thanks in advance for your help


Labels (1)
0 Kudos
1 Solution

Accepted Solutions
bingo.1
4 Ruthenium

Re: How to register client in Networker from client end using command line

Jump to solution

First of all, you must be a registered remote admin - otherwise NW could create the resource but you are not allowed to do that.

Then, at the NW client simply connect to the server:

     nsradmin -s <nw_servername>

If you see the prompt, just go ahead and use the nsradmin commands you mentioned.

View solution in original post

0 Kudos
2 Replies
bingo.1
4 Ruthenium

Re: How to register client in Networker from client end using command line

Jump to solution

First of all, you must be a registered remote admin - otherwise NW could create the resource but you are not allowed to do that.

Then, at the NW client simply connect to the server:

     nsradmin -s <nw_servername>

If you see the prompt, just go ahead and use the nsradmin commands you mentioned.

View solution in original post

0 Kudos
imranmalix
2 Bronze

Re: Re: How to register client in Networker from client end using command line

Jump to solution

Thanks bingo

never thought it is that easy.

tried from my end and its work

i take the remote admin that you mentioned is as below screenshot

2016-11-21_084020.jpg

Also, just for reference just want to share, i created a simple batch file to automate this, easier for build engineer

@echo off

setlocal

REM ##Define Hostname

for /F "tokens=*" %%H in ('hostname') do set hostname=%%H

REM ##Define Networker Server

set networkerserver=nw2012

REM ##Run Backup Activation to Networker

set nsrtext=register.txt

echo create type:nsr client; >> %nsrtext%

echo name:%hostname%; >> %nsrtext%

echo save set:"All"; >> %nsrtext%

echo group:All; >> %nsrtext%

nsradmin -s %networkerserver% -i %nsrtext%

del %nsrtext%

exit