Unsolved
This post is more than 5 years old
28 Posts
0
2319
October 20th, 2015 20:00
How to transfer a GUI operation into command line operation?
Hello fellow smart people:
I am trying to do some automation with NetWorker9, it seems the command line is the right way.
however, even with the NW9 command line reference guide, I still do not know how to do it.
is there any one can help me on it? just a simple example would do.
for example, there is a "new client wizard" in NMC GUI, how can I using command line to add a new client (for example, a Microsoft SharePoint server) into NW and also add this client in a group (for example, Bronze application)?
Thanks a million!
regards,
Ike
No Events found!



joeri_m
2 Posts
1
October 21st, 2015 02:00
Hi,
We are actively using a perl script to automate this (in NW 8.2), since a lot of the options (browse and retention policy, groups and schedules) are fixed due to SLA's. I can post the code here, but building it from scratch in your own favorite scripting language is probably better, both for the experience and the understanding of the mechanism.
In short, the way we do it, is to create an input file for nsradmin, which you then apply "nsradmin -i " to, to commit the changes to the Networker database.
The syntax for the input files is similar to the output that nsradmin uses. The man page for nsradmin and the admin guide give some good info on that.
To test how it works, you can use the syntax example below. Create a file e.g. "nsrinputfile" with the content:
show name;comment;group;schedule
print type:NSR client
And then run "nsradmin -s -i nsrinputfile". It should list you the clients you have configured already, and give you an idea of the syntax. That should get you started.
Cheers,
Joeri
ble1
4 Operator
•
14.3K Posts
0
October 21st, 2015 07:00
You can use nsradmin. Since you are working for EMC, I'm quite sure fellows from professional services can give you a hand.
Aikemu
28 Posts
0
October 21st, 2015 20:00
it is really helpful! thank you.
i tested it and it worked.
just wondering this command doesnot require any user logon?! or is it because i logged on my windows with domain admin and ran this command?
Aikemu
28 Posts
0
October 21st, 2015 20:00
unfortunately, the local support team told me that they don't have any resource to do NW9 support...
and i would love if you can point me a person that would help me~
thanks.
ble1
4 Operator
•
14.3K Posts
0
October 22nd, 2015 01:00
NW9 or NW8 - principle of using nsradmin is the same. With NW9, it has to be run from backup server. The user you will run this from, has to be on admin list of NW server of course. Search from nsradmin micromanual on net and this will give you basic guide. It is based on NW8 fields so you only have to adjust those (you can easily what you want via nsradmin in visual mode for example).
Aikemu
28 Posts
0
October 23rd, 2015 02:00
Thanks!
ble1
4 Operator
•
14.3K Posts
0
October 23rd, 2015 15:00
However note that in NW9 things are quite different and your best bet is to master nsrpolicy command. With that command you can also create resources - I would suggest to go through manual for that command first.