Operating System - HP-UX
1827458 Members
6254 Online
109965 Solutions
New Discussion

library APIs to retrieve installed software information

 
Sujata_1
Occasional Contributor

library APIs to retrieve installed software information

Hi All,

Does any one know about any HP library which provides APIs to retrieve installed software information ?
swlist command displays a list of installed software. In our requirement, we need to use library apis instead of capturing command output. Please let me know if HP provides any such library.

Thanks in advance.
1 REPLY 1
Ramkumar Devanathan
Honored Contributor

Re: library APIs to retrieve installed software information

Sujata,

You can do one of 2 things -

1. parse output of swlist -v (verbose mode) to get details of products installed - there are a lot of options - look at man swlist thoroughly - if you haven't done that already.
2. write a program to read thro' /var/adm/sw/products//pfiles/INDEX file to get details of a product (version, filesets, architecture, etc).

I don't know if there are any api's to serve your purpose.

The more efficient method of the above is to follow method 2.

In fact, swlist also I guess reads from these files only.

HTH.
- ramd.
HPE Software Rocks!