- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "directory" mapping in .psf file
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
03-10-2004 07:32 AM
03-10-2004 07:32 AM
directory /build/hpux/mfg/usr = /usr
...
1.
when I run swpackage, it will collect all files under /build/hpux/mfg/usr to form the depot (where is specified in swpackage), and swinstall the fileset underd /usr on the system where I want to put the software to.
Is this statment right?
2.
Also the source file under /build/hpux/mfg/usr should be on the system as where depot will located. Is this right
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 07:51 AM
03-10-2004 07:51 AM
Re: "directory" mapping in .psf file
1. Correct.
2. No. On the system where you are putting the package file, you don't need this directory structure. When you swpackage, these files will be collected and placed under individual product/fileset directories in your depot path. After running the swpackage command do
find /wherever_your_depot_is
And you will see the files actually got copied underneath that directory structure.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 07:54 AM
03-10-2004 07:54 AM
Re: "directory" mapping in .psf file
1) Yes - that's how you can "direct" the files for that product/subproduct to where you want them on the destination system when it's up in the product/subproduct definition area
2) I'm not sure what you mean. But further down in the fileset definition area you'll need:
directory /build/hpux/mfg/usr=/usr
file file1
file file2
files (i.e. named file1 & file2) have to be under /build/hpux/mfg/usr *until* the next
directory dir_name1=new_dir_name
statement & then all files folowing have to be under that.
Does that make sense?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 07:57 AM
03-10-2004 07:57 AM
Re: "directory" mapping in .psf file
swpackage -s /path/to/sample.psf @ /path/to/depot/location/pkg_name
And the depot will be created there & all that's left is to register it
swreg -l depot /path/to/depot/location/pkg_name
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 07:58 AM
03-10-2004 07:58 AM
Re: "directory" mapping in .psf file
Okay, I probably did not make the 2nd question clear. Let me try it again.
The source files(in this case, it is under /build/hpux/mfg/usr) that swpackage will use to form the depot has to be located on the same system as where the depot will be located.
In another words, if the source file is located on "sysa", and the depot has to be also created on the system called "sysa"
Am I right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 08:01 AM
03-10-2004 08:01 AM
SolutionI think I got it now. Yes.
What I meant was - if the depot got created on sysA, it can be swcopied over to another system say sysB via swcopy. But sysB doesn't need to have the /build/hpux/mfg/usr files.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 09:16 AM
03-10-2004 09:16 AM
Re: "directory" mapping in .psf file
Before I assign points to this thread, I have one more questions.
If I want to execute the postinstall script, where I should place the "control script" in .psf, do I have to put it at the end of all fileset sections?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 09:23 AM
03-10-2004 09:23 AM
Re: "directory" mapping in .psf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 09:28 AM
03-10-2004 09:28 AM
Re: "directory" mapping in .psf file
I put them under the definitions of the corresponding product and|or fileset depending on when you want to execute the script. For ex.,
...cut..
product
tag pkg1
title "some package"
revision 3.1.1
number MYPKG1
category System_management
category_title System_management Software
architecture HP-UX_B.11.00_700/800
vendor_tag HP
machine_type 9000/[678]??
os_name HP-UX
os_release ?.11.??
os_version ?
directory /somewhere
all_filesets pkg-MAN pkg-RUN
is_locatable false
checkinstall checkinstall
preinstall preinstall
postinstall postinstall
configure configure
preremove preremove
postremove postremove
..cut..
My scripts postinstall, preinstall, checkinstall etc are located under the current directory.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 09:50 AM
03-10-2004 09:50 AM
Re: "directory" mapping in .psf file
product
.....
fileset
....
end
postinstall scripts
end
or
product
.....
fileset
....
end
end
postinstall scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 09:59 AM
03-10-2004 09:59 AM
Re: "directory" mapping in .psf file
product #start of product definition
tag bla
title bla
..
postinstall postinstall.product
fileset1 #start of fileset1 definition
tag bla
title bla
..
postinstall postinstall.fileset1
..
end #end of fileset1 definition
fileset2 #start of fileset2 definition
tag bla
title bla
..
end #end of fileset2 definition
end #end of product definition
In the above, postinstall.product will run whenver any fileset under the product is installed. However, postinstall.fileset1 is run only when fileset1 is installed. So, it depends on where you put the control file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:12 AM
03-10-2004 10:12 AM
Re: "directory" mapping in .psf file
product
....
flieset1
...
end
fileset2
..
end
end
mypostinstall scripts
Am I right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:17 AM
03-10-2004 10:17 AM
Re: "directory" mapping in .psf file
postinstall postinstall.sh
will tell the swinstall process to run postinstall.sh script after loading the fileset|product. It has to be within the 'module' of the corresponding product or fileset. Putting this script at the end of the file wont' work. Moreover, if is not contained in any of the modules, then you may get syntax errors during swpackage.
Look at the following document
http://docs.hp.com/hpux/onlinedocs/B2355-90154/B2355-90154.html
"Using control scripts" is what you want.
-Sri
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:17 AM
03-10-2004 10:17 AM
Re: "directory" mapping in .psf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:24 AM
03-10-2004 10:24 AM
Re: "directory" mapping in .psf file
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:24 AM
03-10-2004 10:24 AM
Re: "directory" mapping in .psf file
Name the directory using the following format: name-major.minor. For example, sysinfo3.01
PSF in the paren directory:
product
tag SYSINFO
title HP System configuration information collector
revision 3.01
fileset
tag sysinfo
directory sysinfo-3.01=/usr/local/sysinfo
file getsn
file sched.models
file sysinfo
file sysinfo.manpage.wri
file sysinfo3.01
file xpinfo
end
end
Run from the parent of this directory...
swpackage -vv -s sysinfo.psf @/var/software/SYSINFO
swreg -l depot /var/software/SYSINFO
That's how I do it...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:27 AM
03-10-2004 10:27 AM
Re: "directory" mapping in .psf file
like following:
product
tag
title
...
postinstall myscripts
...
fileset1
...
end
fileset2
...
end
...
end
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:30 AM
03-10-2004 10:30 AM
Re: "directory" mapping in .psf file
what if there are also a few subdirectories underneath sysinfo3.01?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:33 AM
03-10-2004 10:33 AM
Re: "directory" mapping in .psf file
You also need to assign permissions to these files and directories under sysinfo3.01. Right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 10:38 AM
03-10-2004 10:38 AM
Re: "directory" mapping in .psf file
Exactly. You got it right about postinstall (control scripts) now.
Make sure the scripts are written according to the nominclature. There are quite a few functions available if you source in /usr/lbin/sw/control_utils in your script like mod_pathfile etc., Writing control scripts is explained in the document I referenced in the previous message.
Calling it a day today. Have a good one.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 08:47 AM
03-11-2004 08:47 AM
Re: "directory" mapping in .psf file
Yes - set the correct permissions under the directory ahead of time - for directories below, you have to include them/file(s)
file extradir/myfile
Atleast I assume that will work - havn't tested it....
Rgds...Geoff