Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

6608

November 19th, 2016 03:00

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

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


2.4K Posts

November 19th, 2016 08:00

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

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

2 Posts

November 20th, 2016 16:00

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

No Events found!

Top