1833731 Members
2856 Online
110063 Solutions
New Discussion

Getting Hardware List

 
SOLVED
Go to solution
Justin Willoughby
Regular Advisor

Getting Hardware List

For the purpose contingency documentation I would like to get a full list of all hardware for each of my HP/UX systems. What would be the best way to get such a list? ?ioscan ?f?? I may write a script to check the output to see if it changes, by comparing it to the previous day?s file. If there were a difference I could then ftp or e-mail the new hardware list to myself. New hardware is not installed very often but this would make maintaining a current list of hardware simple.

Are there any other commands I should use other then ioscan?

Thanks,

- Justin
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Getting Hardware List

Hi:

'ioscan -fn' will give you the hardware snapshot you need. However, it's not going to change unless you add or subtract hardware when you down the system, so analyzing this every day doesn't make much sense.

Another useful snapshot is taken when you run the latest versions of Ignite to make a recovery tape. Have a look at this file:

/var/opt/ignite/recovery/latest/manifest

...JRF...
Justin Willoughby
Regular Advisor

Re: Getting Hardware List

You are right. Perhaps I should write a script and have it run from one of the start scripts/run levels. If I so this where should I have it called from?

- Justin
Vincenzo Restuccia
Honored Contributor

Re: Getting Hardware List

ioscan -fn,diskinfo /dev/rdsk/cxtydz, echo "map"|cstm
Vincenzo Restuccia
Honored Contributor

Re: Getting Hardware List

ioscan -fn,diskinfo /dev/rdsk/cxtydz, echo "map"|cstm,print_manifest|more
Patrick Wallek
Honored Contributor
Solution

Re: Getting Hardware List

I didn't see it mentioned in any of the previous replies, but you can also do a print_manifest. This comes with Ignite/UX as well. That is a very handy utility. It lists kernel parameters that have been modified, software that is installed, size and configuration of volume groups and logical volumes, name, ip address, and a few other things.

You can do a '/opt/ignite/bin/print_manifest -e | lp -dprintername' to get a nicely formatted printout. The '-e' option puts some PCL into the printout to make it look a little prettier and a bit more readable.

I try to do this on a fairly regular basis for all of my machines.