- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell Script help
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
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-26-2003 11:46 PM
06-26-2003 11:46 PM
Shell Script help
I have a script attached which installs the SSH modules from a source to a destination directory. The source directory resides on the NIS server, which is already exported to all client machines.
Are there any other better ways which I could copy the respective packages from the source dir without impacting the NIS/NFS traffic?
What the script does is to extract the directory contents via the NFS.
On the other hand, if I were to copy it directly from the NFS area to the local disk i.e. /usr/bin, /usr/sbin and /usr/man, it may also impact the network traffic.
Hence, could some kindly show me a better way of solving this problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2003 11:51 PM
06-26-2003 11:51 PM
Re: Shell Script help
You could have a look at SD. Use the swpackage command to create a real product which will appear in the swlist output. This way you will know which release is installed on which system. Use preinstall, postintall, chechinstall, etc. scripts to make all controls. But anyway, bits will be transfered on your network ...
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 12:18 AM
06-27-2003 12:18 AM
Re: Shell Script help
One idea could be copy the source files to destination via ftp, and install it locally.
To do it with a script i use ncftp client because is easier than classical ftp. Take a look in:
http://hpux.connect.org.uk/hppd/hpux/Networking/FTP/ncftp-3.1.4/
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:30 AM
06-27-2003 04:30 AM
Re: Shell Script help
To limit traffic a bit, you could do following actions on the server.
- tar the ./bin, ./sbin and ./man directories in ssh_bin.tar, ssh_sbin.tar and ssh_man.tar
- compress the files with your favourite compressor gzip, compress, pack,...
You will now have ssh_bin.tar.gz, ... (if you use gzip f.i.)
- Modify the script a little bit in order to use the compressed tarfiles as input.
something like
cd /usr/sbin
gunzip -c $INSTALL/$VER/ssh_bin.tar.gz | tar xf -
This will reduce the nfs/network traffic depending on the compression ratio.
Joris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2003 02:10 AM
06-29-2003 02:10 AM
Re: Shell Script help
Would you mind showing me how I could use the swpackage to create such products in the swlist?
How is this method(together with the postinstall, preinstall and checkinstall going to help me in reducing the network traffic to the local disk?
Could you kindly help me out?
Thanks