- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: push a tool over to multiple servers from a de...
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
06-24-2004 10:03 AM
06-24-2004 10:03 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:12 AM
06-24-2004 10:12 AM
Re: push a tool over to multiple servers from a depot
on server1:
Copy the product depot file's to /tmp/depot
# swinstall -l depot /tmp/depot
# swinstall -s /tmp/depot
From all other servers:
# swinstall -s server1:/tmp/depot
OR
Use remsh to do the same for all servers from server1. You need to configure .rhosts file. see man .rhosts
Hope this is what you want.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:23 AM
06-24-2004 10:23 AM
Re: push a tool over to multiple servers from a depot
If these are 11i systems, then SD-UX remote operations can do what you want. However, this involves configuration which includes giving permissions to the sw-server on each client system. Look at the man page of 'swinstall' and search for operations. It may be helpful if you are going to do this kind of work time and again.
For a single time task, I write a script that will do the job for me.
swinstall -s
Push it to all the servers using your enterprise management server (like Tivoli/Openview VPO etc.,). If not, ssh or remsh.
Worst (do not attempt unless it is really required), edit .netrc file in the home directory to temporarily add the hostname and passwords and run the script through rexec.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:41 AM
06-24-2004 10:41 AM
Re: push a tool over to multiple servers from a depot
One thing you can not just do is export filesystem on an nfs mount and then mount and install.
You need to tell SD-UX its all right to do the network installation.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 11:03 AM
06-24-2004 11:03 AM
SolutionAs Sri mentioned, with 11i, the bundled SD-UX is capable of installing the softwares remotely.
With 11.0, you will have to install SD-OV or SCM (Service Control Manager) to remotely push the softwares to the nodes.
If this is a one time requirement then you are better off creating a software depot in your system and use remsh to install the software in the nodes.
In your server
# swcopy -s /CDROM(orwhatever may be the source) @ /var/spool/sw
# swlist -l depot | grep /var/spool/sw
# vi /usr/local/etc/nodes
node1
node2
..
..
..
node100
#
# for NODE in $(cat /usr/local/etc/nodes)
do
remsh $NODE /usr/sbin/swinstall -s server1:/var/spool/sw \*
done
#
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 12:18 PM
06-24-2004 12:18 PM
Re: push a tool over to multiple servers from a depot
Is the server I'm running remsh same as where the depot is located?
Another words, I will be running the following command:
"remsh $NODE /usr/sbin/swinstall -s server1:/var/spool/sw \* " on server1?
Also, can I use ssh instead of remsh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:05 PM
06-24-2004 01:05 PM
Re: push a tool over to multiple servers from a depot
ssh server1 "/usr/sbin/swinstall
-s /full/pathto/depot/xyz"
Any idea how to use command line swinstall in the ssh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:10 PM
06-24-2004 01:10 PM
Re: push a tool over to multiple servers from a depot
You have to specify the product that you want to install from the depot. If the depot contains only one product, then simply specify \*.
swinstall -s your_swserver:/wherever-the-depot-is \*
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 01:26 PM
06-24-2004 01:26 PM
Re: push a tool over to multiple servers from a depot
I'm acturally trying install lsof, the command on the server I want to install:
swinstall -s depot_server:/fullpathtodepot/lsof \*
It is giving me error, and complaining no depot. I'm sure lsof depot was created already, and I can see it from swinstall window if i want to use the window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 09:39 PM
06-24-2004 09:39 PM
Re: push a tool over to multiple servers from a depot
register the depot first.
On depot server:
# swreg -l depot /fullpathtodepot
I had mentioned this in my earlier post but by mistake i wrote swinstall there.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2004 12:32 AM
06-25-2004 12:32 AM
Re: push a tool over to multiple servers from a depot
After compiling on one server, we copied the binary all around.
As long as you're on similar hardware and identical OS, it works.
If you're running mixed OS's there, compile once on each,
and copy it around to the other servers with same OS level.
Just an idea... if you can live without an actual depot.
Everyone's thoughts on SD-UX are right on, too.