1833831 Members
2414 Online
110063 Solutions
New Discussion

Re: rdist and ignite

 
Asya
Regular Advisor

rdist and ignite

Hello,

Another question:)
Here is a problem..

I have ignite server. I would like to either rdist or copy some files from the main servers (1 HP-UX 11.00 and 1 HP-UX 11.11 versions).

How can i rdist files
1. i need to tell it where to rdist it to...in other words the name of a server that i'm igniting. Is there some kind of a variable that is set during installation that i can just put into the script? Or..? I don't have to use rdist..if you have any suggestions..please let me know:)

2. Scripts will be running from ignite server, which is a 11.00 box. 11.11 files are located on a different 11.11 server. I guess i could make it ssh first to the 11.11 server and then from there rsh to the igniting host.

ssh root@host 'rdist -f /var/opt/ignite/scripts/rdist.dev'

Sorry if i sound confused...hope you can understand my problem.


Thank you!
Asya
3 REPLIES 3
TwoProc
Honored Contributor

Re: rdist and ignite

Since you've got ssh installed you could easily use rcp or rsync. rcp would cover you for copying files, rsync would work if you're trying to keep two sets of directories looking the same.

We are the people our parents warned us about --Jimmy Buffett
Asya
Regular Advisor

Re: rdist and ignite

but inside the rdist file, there is a line:
HOSTS = ( root@hostname )

How can i let rdist file know the name of the new server without manually modifying the file? As I said, is there a variable..?

Thanks!
Bob Ingersoll
Valued Contributor

Re: rdist and ignite

This is a bit late, but...

Current rdist versions support variable (e.g., $HOSTS, $FILES) assignment via the command line as in the following examples:

rdist -d "HOSTS = bambam"

Or, if you want to get a little fancier:

rdist -d "HOSTS = ( $(cat /etc/myhosts) )"

Check the rdist man page.