- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: silent install with swinstall
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
тАО06-04-2009 05:07 PM
тАО06-04-2009 05:07 PM
Re: silent install with swinstall
This is part of the depot package. A well written package will remove all the necessary files -- but config files and custom files (typically in /var/opt or similar temp directories) are usually not part of the package.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2009 07:40 PM
тАО06-04-2009 07:40 PM
Re: silent install with swinstall
Right. This can be done in a postremove control script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 01:48 AM
тАО06-05-2009 01:48 AM
Re: silent install with swinstall
I write a script add to postremove
scripts content is
each "test"
but it can't work when I use swremove
does i have something to do that it can work
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 01:59 AM
тАО06-05-2009 01:59 AM
Re: silent install with swinstall
How is that a valid script?
>but it can't work when I use swremove
Does your script get executed?
The script should look something like this:
#!/sbin/sh
# Lots of comments ... :-)
exitval=0 # Anticipate success : 1 = failure 2 = warning
UTILS="/usr/lbin/sw/control_utils"
if [ ! -f $UTILS ]; then
echo "ERROR: Can't find $UTILS"
exit 1
fi
. $UTILS
#================================================
rm -rf ${SW_ROOT_DIRECTORY}your-directory 2> /dev/null
exit $exitval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 03:54 AM
тАО06-05-2009 03:54 AM
Re: silent install with swinstall
or just write postremove /fullpath/xxx.sh
in my psf file
if I excute swremove command ,the postremove can work autmatically,or it need write something in my psf file to trigger xxx.sh
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 04:40 AM
тАО06-05-2009 04:40 AM
Re: silent install with swinstall
or just write postremove /fullpath/xxx.sh
in my psf file
The latter. Check the documentation.
http://docs.hp.com/en/5992-5875/ch10s03.html
>if I execute swremove command, the postremove can work automatically, or it need write something in my psf file to trigger xxx.sh
You need to name the file postremove and package it in your PSF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2009 06:39 PM
тАО06-07-2009 06:39 PM
Re: silent install with swinstall
# vi my.psf
distribution
layout_version 1.0
#Vendor info:
vendor
tag My_Vendor
title My_Vendor_Title
end
#Product definition: --this is what shows up with swlist
product
tag MY_PRODUCT
title My_custom_product
revision 1.0 #(or whatever it is)
fileset
tag fileset1
title My fileset
directory /source_dir/dir1=/destination_dir
# Control scripts:
postremove /my_script
#list all of the files that you wish to put in the bundle.
file filename1
file filename2
#set file permissions if desired
file -m 644 -o root -g users filename1
file -m 644 -o root -g users filename2
end #end fileset definitions
end #end product definition
in control script
# vi /my_script
echo ├в running my_script for postinstall script├в
but it don't run this script
any place that i need to add in my psf file that my postremove script work
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2009 01:29 AM
тАО06-08-2009 01:29 AM
Re: silent install with swinstall
You seem to have it right. But instead of an echo, you should echo to a logfile so you can look at it.
Does "swlist -l fileset -v -s $PWD/depot" show you your postremove script?
Also see how to check postremove:
http://docs.hp.com/en/5992-5875/ch11.html
http://docs.hp.com/en/5992-5875/ch11s09.html#v2215809
>file -m 644
In general, these files should be read only, 444.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 09:52 PM
тАО06-10-2009 09:52 PM
Re: silent install with swinstall
swinstall -s with-fullpath \*
what is the \* means
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 10:01 PM
тАО06-10-2009 10:01 PM
Re: silent install with swinstall
NB: Quite a few of us have responded to your queries, so you are requested to assign points to those that might have helped you or hinted of a solution as the case may be.