Unsolved
This post is more than 5 years old
16 Posts
0
1539
June 28th, 2007 07:00
Adding multiple Networker Clients using Solaris
Entereing in clients one-by-one is very time consuming, especially if you need to add 100+. Is there script that I can run in Solaris that would pull the names from a listfile and put them in Networker (they are all the same schedule, policies, group)
Any help would be greatly appreciated
Any help would be greatly appreciated
No Events found!



ble1
4 Operator
•
14.3K Posts
1
June 28th, 2007 07:00
Timothy-NXOi5
16 Posts
0
June 28th, 2007 07:00
nsradmin create -i nameoflistfile -s -g
work?
ble1
4 Operator
•
14.3K Posts
0
June 28th, 2007 07:00
Timothy-NXOi5
16 Posts
0
June 28th, 2007 07:00
The documentation isn't very clear on where to direct the output of the listfile
Timothy-NXOi5
16 Posts
0
June 28th, 2007 08:00
create type: -i ; group: ; schedule: ; policy
ble1
4 Operator
•
14.3K Posts
0
June 28th, 2007 08:00
mllegato
20 Posts
1
June 28th, 2007 11:00
#!/usr/bin/bash
[ $# -lt 1 ] && exit
host=$1
sched=
/usr/sbin/nsradmin -i - <
create type:NSR client;
name:$host;
schedule:$sched;
browse policy: TwoWeeks;
retention policy: TwoWeeks;
directive: Unix with compression directives;
group: ;
TXT
You can also modify this script and make it read hostnames from a file and loop until it adds each client. Obviously, policies and stuff are modifieable to your preferences
Timothy-NXOi5
16 Posts
0
June 28th, 2007 11:00