Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PERL and REMSH on HP-UX

Status
Not open for further replies.

EssJayKay

Programmer
Dec 2, 2002
18
US
I have multiple servers which need to run several interactive scripts each morning and evening to bring up and shutdown an application, which includes an oracle database. The startup & shutdown scripts on each server require the user to answer questions based on the stat of the database. I would like to create a single PERL script that would REMSH to each box and launch the startup/shutdown scripts simultaneously and allow the user to answer questions and be aware of which server is asking the question. These processes take between 1/2-1 hour to run and running one after another is not an option. Any feedback would be appreciated.
 
I currently use this technique to audit a number of remote HPUX servers and it works fine. The important line from my script is:

@dataHP1 = $host->cmd(String => 'remsh HP1 "find /usr/users/prog -exec ls -lAdL {} \;" > ~/config_man/from_SERVERx.txt');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top