- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swinstall command
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
12-05-2000 01:52 AM
12-05-2000 01:52 AM
swinstall command
I want to install a *.depot file from swinstall command in a non interactive mode which is a requirement for certain application.
I am facing a problem while installing the same. I am using the below syntax for this
swinstall -x patch_match_target=true -s /
It give me a error which is as follows
swinstall -x patch_match_target=true -s /appl/tcl-8.2.1-sd-11.00.depot
======= 12/05/00 15:26:03 IST BEGIN swinstall SESSION
(non-interactive)
* Session started for user "root@mascothp".
* Beginning Selection
* Target connection succeeded for "mascothp:/".
* "mascothp:/appl/tcl-8.2.1-sd-11.00.depot": This source is a
tape device.
* "mascothp:/appl/tcl-8.2.1-sd-11.00.depot": Cannot open the
logfile on this target or source. Possibly the media is
read-only or there is a permission problem. Check the daemon
logfile and "/var/tmp/swagent.log" on this host for more
information.
NOTE: The patch match operation failed to find patches for target
software on "mascothp" which passed the filter.
NOTE: Cannot continue the "swinstall" task.
======= 12/05/00 15:26:06 IST END swinstall SESSION (non-interactive)
Note: This can be installed in interacitve mode.
Kindly provide your valuable suggestions.
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 02:13 AM
12-05-2000 02:13 AM
Re: swinstall command
You have to be root to do swinstall as the log file has pointed out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 02:22 AM
12-05-2000 02:22 AM
Re: swinstall command
Session started for user "root@mascothp".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 02:42 AM
12-05-2000 02:42 AM
Re: swinstall command
swinstall -x match_target=true -s /
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 03:15 AM
12-05-2000 03:15 AM
Re: swinstall command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 03:51 AM
12-05-2000 03:51 AM
Re: swinstall command
The option match_target should be used only when the product/filesets are already installed.... ?
what happens if you copy the depot to /tmp/.... and install from there ?
What shell are you using ? Try ksh ?
check for the file /.sw/sessions/swinstall.last and check the
permission for that directory are OK / open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 04:00 AM
12-05-2000 04:00 AM
Re: swinstall command
swinstall -x match_target=true source_type=directory -s /appl/
12/05/00 17:19:16 IST BEGIN swinstall SESSION
(non-interactive)
* Session started for user "root@mascothp".
* Beginning Selection
* Target connection succeeded for "mascothp:/".
ERROR: There is currently no depot software on host "mascothp" at
location "/appl".
* Source connection failed for "mascothp:/appl".
WARNING: More information may be found in the daemon logfile on this
target (default location is
mascothp:/var/adm/sw/swagentd.log).
* Selection had errors.
I also tried with option swinstall -x enforce_dependencies=true -t /appl/
ERROR:could not read input file "/appl/tcl-8.2.1-sd-11.00-depot.
ERROR:command line parsing fail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 04:58 AM
12-05-2000 04:58 AM
Re: swinstall command
Did you download this from the HP-UX porting and archive center?
If so then I have seen the same problem. In my case the file was compressed in gzip format but did not have the .gz extension.
I fixed it up by moving the file to the same name with a .gz on the end, ie:
mv tcl-8.2.1-sd-11.00.depot tcl-8.2.1-sd-11.00.depot.gz
then uncompress it:
gunzip tcl-8.2.1-sd-11.00.depot.gz
you will then get an uncompressed tcl-8.2.1-sd-11.00.depot
Of course, I could be completely wrong ;-)
Good luck - trevor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 05:04 AM
12-05-2000 05:04 AM
Re: swinstall command
I tried swinstall using your check points but still i am not successful. This time i used option source_type=directory, shell ksk, copied the file in /tmp & also checked the permissions of /.sw/sessions/swinstall.last file It still gives the following message. I still wonder that how is that it system not able to find the depot, though the *.depot file is present in it.
* Session started for user "root@mascothp".
* Beginning Selection
* Target connection succeeded for "mascothp:/".
ERROR: There is currently no depot software on host "mascothp" at
location "/var/spool/sw".
* Source connection failed for "mascothp:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is
mascothp:/var/adm/sw/swagentd.log).
* Selection had errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 11:39 AM
12-05-2000 11:39 AM
Re: swinstall command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 08:28 PM
12-05-2000 08:28 PM
Re: swinstall command
It seems that the *.depot files had some problem which i have downloaded from hpux freeware site. I have tried with sudo-1.6.2b1-sd-11.00.depot it gave me a following message which indicates it has been installed.
* Source: /tmp/sudo-1.6.2b1-sd-11.00.depot
* Targets: mascothp:/
* Software selections:
sudo.sudo-RUN,r=1.6.2b1,a=HP-UX_B.11.00_700/800
* Selection succeeded.
* Beginning Analysis
* Session selections have been saved in the file
"/var/adm/sw/sessions/swinstall.last".
* The analysis phase succeeded for "mascothp:/".
* Analysis succeeded.
* Beginning Execution
* The execution phase succeeded for "mascothp:/".
* Execution succeeded.
NOTE: More information may be found in the agent logfile (location
is mascothp:/var/adm/sw/swagent.log).
======= 12/06/00 09:59:16 IST END swinstall SESSION (non-interactive)
I will try to install few more depot files & write my observations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 08:55 PM
12-05-2000 08:55 PM
Re: swinstall command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 08:58 PM
12-05-2000 08:58 PM
Re: swinstall command
regards, Trevor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 10:05 PM
12-05-2000 10:05 PM
Re: swinstall command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 04:28 AM
12-06-2000 04:28 AM
Re: swinstall command
Two things....
First, sometimes swagentd forgets itself, especially after several failed install attempts. If you stop and restart the swagentd you may find that your script will work without the "source is a tape" or "no software found" references.
# /usr/sbin/swagentd stop OR
# kill {pid_of_swagentd} (defaults to a -15 which is a nice kill}
# /usr/sbin/swagentd OR
# /usr/sbin/swagentd -r (rereads defaults file)
Second, did the /var/adm/sw/swagent.log report any further relevant errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2000 05:36 AM
12-06-2000 05:36 AM
Re: swinstall command
If you don't want to install Patches:
swinstall -s /$PWD/xxx.depot \*