- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to write this .psf
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-18-2004 02:47 PM
03-18-2004 02:47 PM
how to write this .psf
/path/to/thedirectory
files...
/path/to/thedirectory/dir1
files..under dir1
/path/to/thedirectory/dir2
files..under dir2
Based on .psf I created, when I run swremove, only all files under these directories have been removed, and directories themself are not. So, I suspect, I did not write the directives right, following is what I wrote
...
/path/to/thedirectory=/path/to/thedirectory
files * -u 0222 -o root -g sys
...
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 03:07 AM
03-19-2004 03:07 AM
Re: how to write this .psf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 03:31 AM
03-19-2004 03:31 AM
Re: how to write this .psf
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 04:16 AM
03-19-2004 04:16 AM
Re: how to write this .psf
Thanks for the message.
How do I define these sub-directories?
In your case, all these files (getsn, sched.models, sysinfo...etc) listed are underneath the directory of sysinfo-3.01.
However, in my case, there are also some sub-directories, and files associated with these sub-directories. What is the appropriate directives to define them.
the problem is when I try to swremove, only all files are removed, no directories have been swremoved. So, I believe the problem is caused by inappropriate directives in .psf file.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 05:07 AM
03-19-2004 05:07 AM
Re: how to write this .psf
file subdir/file1
file subdir/file2
file subdir/file...etc
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 05:11 AM
03-19-2004 05:11 AM
Re: how to write this .psf
So, if I have multiple files under the sub-directory "dir1", then I have to specifically list each one of them? Like following:
file dir1/file1
file dir1/file2
....
And, do the same to the dir2, dir3, ... and the top directory?
That would be a lot of directives?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 05:32 AM
03-19-2004 05:32 AM
Re: how to write this .psf
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=499589
Also, check out this cookbook:
http://aa11.cjb.net/hpux_admin/1999/0024.html
And CREATING YOUR OWN SD-UX DEPOTS :
http://www.hpworks.org.uk/newsletter/articles/depots/
You might be able to do a:
file *
file */*
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 06:18 AM
03-19-2004 06:18 AM
Re: how to write this .psf
the previous thread you indicated is not exactly same question I asked.
If I have to list each one of files under the top directory, and also each one of files under it's sub-directories, that's gonna to be a lot of list of "file ...".
I'm just look for any simple way to do that...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 06:23 AM
03-19-2004 06:23 AM
Re: how to write this .psf
That might work...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 06:44 AM
03-19-2004 06:44 AM
Re: how to write this .psf
file *
and
file */*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 08:57 AM
03-19-2004 08:57 AM
Re: how to write this .psf
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 08:58 AM
03-19-2004 08:58 AM
Re: how to write this .psf
Create a Product Specification File. The HP Manual, Managing HP-UX Software With SD-UX has lots of information on this in Chapter 10. Although there are many fields that you can include, only a few are required. I have a Perl script called "psf" which generates a minimum .psf file given that you follow a few simple rules:
Put all of the files that you want to include under one directory.
Name the directory using the following format: name-major.minor. For example, sed-2.05 or gcc-2.7.2.3.
Run the script from the parent of this directory and give it only a simple directory name(s). For example:
psf sed-2.05 gcc-2.7.2.3 > stuff.psf
If you give it an absolute path name, you will have to manually edit the resulting .psf file to fix the directory mappings.
My script assumes that you want everything to be installed into /usr/local. If you want to change that, you'll have to edit my psf script. It would be easy to make the destination directory a command line argument, but I haven't done so because thus far I'm the only one who uses psf. Just search for "=/usr/local" and change that to whatever you like, "/usr/share/sysadm" for example.