Operating System - HP-UX
1834249 Members
1988 Online
110066 Solutions
New Discussion

Re: APIs to query hardware

 
SOLVED
Go to solution
Sonison James
Frequent Advisor

APIs to query hardware

Hello,

I would like to know if there is an API (something similar to kstat on Solaris) that will give let me query hardware devives like CPU, disk drives, CD-ROMs, memory, network adapters for information like serial number, manufacturer, speed, size etc. A command which also returns this type of info would be great, but GUI based tools would not be helpful.

Thanks and regards
SJ
3 REPLIES 3
twang
Honored Contributor
Solution

Re: APIs to query hardware

Actually there are many tool which can be used to displayed such info, some are listed, i hope they are helpful:
- /opt/ignite/bin/print_manifest (if ignite-ux was installed)
- sysinfo (it is a script can be used to collect hpux system info)
- cfg2html (it is a script)
- nickel (it is also a script)
Steven E. Protter
Exalted Contributor

Re: APIs to query hardware

you don't need an api.

ioscan will do it for you.

It can query any and all hardware on the box, determining its status.

For status try these tools.

From a prompt: mstm

From X-Windows: xstm Its a gui and actually has information and testing programs. I have used it to find dead hardware that didn't show up on the last tool I am giving you.

dmesg

I also know that oracle enterprise manager has limited gui hardware testing abilitities. the problem with that is it can't have root priviledgeds and you really need them to do this kind of work.

Good Luck. Hope this is a solution for you.

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
Zeev Schultz
Honored Contributor

Re: APIs to query hardware

Go for cstm which is the most "command line"
tool to get hardware info.Just type cstm,go to the prompt and type help for the rest.Can also search for it on docs.hp.com.If you looking something like Solaris prtdiag try :
echo "selall;info;wait;il" | cstm (I'm not 100% sure about the syntax).
BTW,Solaris kstat is a perl module,you don't mean /usr/sbin/kstat which is for kernel statistics I beleive?
Here is a nice link Solaris-to-HPUX

http://www.jpn.hp.com/products/workstations/os/datasheets/pdfs/hpux_solaris_reference_guide.pdf

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray