tuff problem of the day for linux

G

gavino

30 servers with veritas backup client
task
1 add 1 line to config file
2 restart backup client
3 do for all 30 servers over ssh
4 do in a script without having to goto each server and login
 
U

usenet

gavino said:
1 add 1 line to config file

You don't say what type of config file. If it's a "standard" type (such
as Windows-style .ini files) you can easily do this with a parser (such
as Config::IniFiles). Otherwise you will need to manipulate the file
with basic Perl I/O commands (perldoc -f open)
2 restart backup client

perldoc -f system
3 do for all 30 servers over ssh

use Net::SSH;
4 do in a script without having to goto each server and login

Of course.

Is this really 30 standalone servers, or is this a cluster? Have you
looked at Cluster::Init?
 
G

gavino

regular linux redhat ent 4
text files


You don't say what type of config file. If it's a "standard" type (such
as Windows-style .ini files) you can easily do this with a parser (such
as Config::IniFiles). Otherwise you will need to manipulate the file
with basic Perl I/O commands (perldoc -f open)


perldoc -f system


use Net::SSH;


Of course.

Is this really 30 standalone servers, or is this a cluster? Have you
looked at Cluster::Init?
 
G

gavino

regular linux redhat ent 4
text files

Todd said:
gavino said:
30 servers with veritas backup client
task
1 add 1 line to config file
2 restart backup client
3 do for all 30 servers over ssh
4 do in a script without having to goto each server and login

1. Write a subroutine that does [task] to one computer
2. Put names of all machines in an array
3. loop over array and call sub for each element

To put the thread on topic, search CPAN for SSH

Todd W.
 
M

Michele Dondi

1 add 1 line to config file
2 restart backup client
3 do for all 30 servers over ssh
4 do in a script without having to goto each server and login

1. Write a subroutine that does [task] to one computer
2. Put names of all machines in an array
3. loop over array and call sub for each element

To put the thread on topic, search CPAN for SSH
regular linux redhat ent 4
text files

1. *Please* do not top post: it forced me to do more editing for
clarity, that logically and operationally and would have fit better on
your part.

2. How do the last two lines correlate to 1.-3. and the additional,
good, advice given above?


Michele
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,041
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top