1827449 Members
4635 Online
109965 Solutions
New Discussion

Re: How to update swlist

 
SOLVED
Go to solution
Khalid A. Al-Tayaran
Valued Contributor

How to update swlist

Hi all,

How can I update the "swlist" listing to include software not installed by swinstall (SD-UX) tools, such as Oracle 8i or 9i ? This is only for documentation purposes,,,,

Thanks,,,,
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: How to update swlist

swlist reads the SD-UX database.

You are going to have to write a script that looks elsewhere.

You could look for files of a certain type with the file command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
V. V. Ravi Kumar_1
Respected Contributor

Re: How to update swlist

Hi,
you can not do that.
SD-UX commands automatically keep track of software management operations by creating an Installed Products Database (IPD) and various "catalog files" that contain information about the software on the system

regards
ravi
Never Say No
Jeff Schussele
Honored Contributor

Re: How to update swlist

Hi Khalid,

You'd have to create "dummy" pkgs that don't actually install anything but do put entries into the IPD (Installed Product Database)

Here's a TKB doc on how to do this for a truly dummy pkg, but it'll give you the idea on what needs to be done:

http://www1.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=KBRC00003721&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&search.x=31&search.y=7

Document ID = KBRC00003721

DO NOT follow the directions to remove the INDEX file, rather look at how to use a .psf file to create a pkg to be swinstalled. Search the TKB for "swpackage" & you'll get all kinds of hits on docs that can help.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Mic V.
Esteemed Contributor

Re: How to update swlist

Or...do what I do and create real packages out of your applications. Among other things, it makes it easier to generate a new system. I've found no problems with copying applications such as Oracle, GEIS Enterprise System, and PeopleSoft HRMS from system to system. I store the original package on my Ignite/SD-UX server.

It's always seemed to me to be easier to make "real" packages rather than fake ones for the purpose of documentation. That way, it should be less likely that the running system and swlist will be out of sync.

Mic
What kind of a name is 'Wolverine'?
Khalid A. Al-Tayaran
Valued Contributor

Re: How to update swlist


Thanks guys,

Jeff I didn't find that doc...

Sridhar Bhaskarla
Honored Contributor
Solution

Re: How to update swlist

Khalid,

My preference goes to creating a dummy package. You will find it very difficult to prepare packages for some of the softwares (like oracle itself). For only documentation purposes you can go with as Jeff suggested.

For ex., take the following psf file (you can actually use it). MOdify it to your choice.

distribution
layout_version 1.0
#Vendor definition

vendor
tag Oracle
title Oracle
end

bundle

tag oracle8i
title "Oracle 8i Bundle"
revision 1
number ORA-1
category System_management
category_title System_management Software
architecture HP-UX_B.11.00_700/800
vendor_tag Oracle
machine_type 9000/[678]??
os_name HP-UX
os_release ?.11.??
os_version ?
contents None
end


Save it as oracle.psf and run 'swpackage -s oracle.psf -d /tmp/oracle'

And then install it from the depot /tmp/oracle. It may complain that it is an empty bundle but will let you install it.

It should create an entry called oracle8i in your IPD.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Khalid A. Al-Tayaran
Valued Contributor

Re: How to update swlist


Thanks Sri,

For documentation purposes this is what I need for now from HP-UX. Thanks for all members,,,,,,,