- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shell Script Queries..
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
Discussions
Discussions
Forums
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
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
тАО05-27-2009 02:17 AM
тАО05-27-2009 02:17 AM
I have written script to install pkgs on multiple machines
#./install vin win min
Here this install script is doing remote installation of pkgs on vin , win & min these machine but one after another only. It is not starting same swinstall command on all machines at a time remotely.
===============================
CODE I have written ::
#!/bin/sh
if [ $# -eq 0 ];then
echo "Atleast one arg as m/c is needed"
fi
# pkg1 pkg2 pkg3 are the packages are going to install..
for i in $*
do
remsh $i -l root "/usr/sbin/swinstall -x autoreboot=true -s
done
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 02:29 AM
тАО05-27-2009 02:29 AM
Solution"...remsh normally terminates when the remote command does...".
1) send it to background
2) (better) don't use remsh, but swinstall only (with source and target).
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 02:32 AM
тАО05-27-2009 02:32 AM
Re: Shell Script Queries..
Did you mean "at the same time"?
You also may want to use -n so it doesn't eat stdin.
>Torsten: 2) but swinstall only (with source and target).
Don't you need an extra product? HP OpenView Software Distributor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 02:38 AM
тАО05-27-2009 02:38 AM
Re: Shell Script Queries..
Install the C and Pascal products to a set of remote hosts:
swinstall -s sw_server cc pascal @ hostA hostB hostC
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 04:21 AM
тАО05-27-2009 04:21 AM
Re: Shell Script Queries..
With your cmd from manpage I got below error & pkgs not got installed
======= 05/27/09 17:49:28 IST BEGIN swinstall SESSION
(non-interactive) (jobid=hpslia27-0013)
* Session started for user "root@hpslia27".
* Beginning Selection
ERROR: "vvria05.vxindia.veritas.com:/": You do not have the required
permissions to select this target. Check permissions using
the "swacl" command or see your system administrator for
assistance. Or, to manage applications designed and packaged
for nonprivileged mode, see the "run_as_superuser" option in
the "sd" man page.
* Target connection failed for "vvria05.vxindia.veritas.com:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is
vvria05.vxindia.veritas.com:/var/adm/sw/swagentd.log).
* Selection had errors.
======= 05/27/09 17:49:29 IST END swinstall SESSION (non-interactive)
(jobid=hpslia27-0013)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 06:42 AM
тАО05-27-2009 06:42 AM
Re: Shell Script Queries..
swagentd -r
these swacl errors, unless you are really using the swACL's, generally are misrtepresentation of something that went wrong with the swagentd process and a restart most of the time fixes the issue.
HTH
PS. make sure your client machine has a trust to the depot server.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2009 06:04 PM
тАО05-27-2009 06:04 PM
Re: Shell Script Queries..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2009 10:52 AM
тАО05-28-2009 10:52 AM
Re: Shell Script Queries..
this issue is related to swacl. To use swinstall remotely you must do the following:
Install the AgentConfig.SD-CONFIG fileset to enable remote operations:
root@client # swinstall -s hpignite:/var/opt/mx/depot AgentConfig.SD-CONFIG
after that check the remote permissions with swacl on the target node:
root@client # swacl -l global_product_template
On the bottom of the output you'll see that the depot server has now full access to install software onto this node.
This is an automated process, all of the above can be made manually with swacl command. Let me know if you made it...
After that, you are finally enabled to swinstall from remote server:
root@ignite # swinstall -x patch_match_target=true -x autoreboot=true -s
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2009 11:04 AM
тАО05-28-2009 11:04 AM
Re: Shell Script Queries..
As Mel wrote it too, it could be a problem with swacl permissions. (Or you must just simply restart the swagentd)
Here is the way you can manually change the swacl permissions:
Allow access to hostA:
hostA # swacl -l hostA -M user:root@hpignite:a
hostA # swacl -l global_product_template -M user:root@hpignite:a
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2009 10:34 PM
тАО08-30-2009 10:34 PM