Operating System - HP-UX
1820694 Members
2623 Online
109627 Solutions
New Discussion юеВ

Script to inventory installed software?

 
Linda Calderon
Occasional Contributor

Script to inventory installed software?


Hi,

Does anyone have a script that is capable of building an inventory of installed software on a system? I started to draft something like this, and immediately balked when I realized our oracle instances aren't listed in swlist output.

Any ideas toward creating such a script would also be appreciated.

Thanks!
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: Script to inventory installed software?

Don't know if it will help, but try cfg2html:

http://come.to/cfg2html

It collects a ton of info on your system, software, etc...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Elmar P. Kolkman
Honored Contributor

Re: Script to inventory installed software?

swlist will generate it for all normal software. As for software that is installed outside of sd you will have to append the output of a script that looks at specific things like the oratab or running processes and software if directories like /usr/local/bin.

This is why we put all software in SD packages, including things like oracle.
Every problem has at least one solution. Only some solutions are harder to find.
Leif Halvarsson_2
Honored Contributor

Re: Script to inventory installed software?

Hi,
There is no general method to list 3-party softwares (not installed using SD), you must know exact what to look after.

A very useful tool for system documentation is the Ignite command "print_manifest". It lists not only the installed software (if installed with SD) but also the complete configuration (disks, memory etc.)
Linda Calderon
Occasional Contributor

Re: Script to inventory installed software?

Thanks all for the replies.

I guess I'll just have to walk the filesystems by hand to find all the applications. Doing this across 40+ servers is going to be ugly, so I was hoping there was a way to automate it.

I installed and played with cfg2html briefly, and it appears to at least be aware of oracle instances, and omniback installations, which is very helpful in my environment.

print_manifest is helpful in certain situations as well, but doesn't provide any information regarding what applications have been installed outside of the SD mechanism.

Thanks again to all for your help.
Mark Greene_1
Honored Contributor

Re: Script to inventory installed software?

One thing you can try is, assuming you have ftp access to all the servers from a single server or workstation, is run a background ftp that uses either a .netrc or embedded input to ftp to each server, do an ls of /opt, /usr/local/ and all non-rootvg filesystems and capture the output to a file. Then you can look through the file for obvious stuff and single-out interesting filesystems and files for direct examination on the server.

That might save you the time and effort of poking around on each server individually looking for that last 10%-20% of items you couldn't otherwise find doing a general sweep.

mark
the future will be a lot like now, only later
Brian Markus
Valued Contributor

Re: Script to inventory installed software?

SYSINFO will give you the following information in a report:

Hardware (device) information
Software package information
Software license information
Storage (disk) partitions
Network configuration information
Network interface information
Kernel parameters
System configuration parameters
System Serial Number
Printer Queues
Application architecture
CPU type
Host ID
Host name aliases
Host name
Host network addresses
Kernel architecture
Kernel version
Main memory (RAM)
Manufacturer of the system's hardware
Operating system distribution
Operating system name
Operating system version
System model name
System serial number

You can find it here:
http://www.magnicomp.com/sysinfo/

See if that can do what you're looking to do, it's a pretty good product.

-Brian.



When a sys-admin say's maybe, they don't mean 'yes'!