- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remote deployment and execution
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 09:45 PM
07-28-2004 09:45 PM
Remote deployment and execution
I just wanted to hear wht utilities and products do you use for remote execution and deplayment?
We are searching for utility that will give as abilities to send files to large amount of servers at once, execute scriptes on remote server and has nice API (graphical or command line).
We prefer not to write something by oursleves because probably there are some utilities that already do this thing.
Thanx in advance!.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 09:56 PM
07-28-2004 09:56 PM
Re: Remote deployment and execution
# rexec serverB ls /etc
password:
You would have to write a program to do such a thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 10:00 PM
07-28-2004 10:00 PM
Re: Remote deployment and execution
If you want to use secure one then use scp and ssh for this.
We can use these remsh and ssh easily.
And more we can use ftp and sftp for file transfers. We can do it in batch mode as without prompting for passwd and user informations.
See rhosts and remsh man pages
For secure way see ssh,scp,sftp man pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 10:06 PM
07-28-2004 10:06 PM
Re: Remote deployment and execution
but maybe I'm wrong.
According to your description the task doesn't seem so difficult, so I would think about shell scripts with rcp,scp,ftp, remsh ..
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 10:24 PM
07-28-2004 10:24 PM
Re: Remote deployment and execution
I use this script - see attached. To run programs on many remote servers.
You have to configure .rhosts on each server (if your security allow this) than you can use rexec or this script.
TO run this script you have to create rrun.conf file in same dir and put there list of your servers.
than rrun "/dir/program.sh" runs something on any server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 01:22 AM
07-29-2004 01:22 AM
Re: Remote deployment and execution
Using "r" commands:
If you are trying to use r commands between NODE1 and NODE2 on root user permissions then,
NODE1 with root user#
echo "NODE2 root" >> /.rhosts
chmod 400 /.rhosts
NODE2 with root user#
echo "NODE1 root" >> /.rhosts
chmod 400 /.rhosts
Check:
NODE1# remsh NODE2 hostname ( it will gives hostname of remote server )
# NODE2
Do it from NODE 2 to check it's status or simply as,
NODE1# remsh NODE2 -l root -n "remsh NODE2 hostname"
It has to print NODE1 ( hostname )
Remote operations:
If you want to execute a script as like ..,
--- test.ksh ---
#!/usr/bin/ksh
# rcommand testing
echo "System informations"
uname -a
echo "Lan status"
lanscan
echo "Hostname and IP-Address"
nslookup `hostname`
exit 0
NODE1 # rcp /tmp/test.ksh NODE2:/tmp/ksh
Remote execution:
NODE1 # remsh NODE2 -l root -n "ksh /tmp/test.ksh"
It will give all the output's of remote execution to NODE1's terminal.
If we you want to log into a log file then redirect it to a log file.
Parallel execution:
If you want to execute multiple sequentially then, use script or ; as like,
remsh NODE2 -l root -n "hostname;uname -a"
To do it in parallely,
remsh NODE2 -l root -n "ksh /tmp/test.ksh 1>>/tmp/testlog.log 2>>/tmp/testlog.log &"
Collect PID remote process with $!
remsh NODE2 -l root -n "hostname 1>> /tmp/test1.log;uname -a 1>> /tmp/test1.log &"
To get the result files,
rcp NODE2:/tmp/test*.log /tmp/.
We can restrict the user access with .rhosts and /etc/hosts.equiv file
See rhosts,rcp and remsh man pages to more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2004 08:09 PM
07-29-2004 08:09 PM