- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hardware Information in HP-UX (programming languag...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 06:37 AM
тАО07-06-2009 06:37 AM
I hope you can help me! I need some hardware information for making my programm run on only a few computers.
The last week I was searching the internet for possibilities to get hardware information in HP-UX within my C++ programm. It wasn't very successful. I found a few calls, which I can use for the command line, but I wanted to avoid system calls.
In Linux I could use the /proc folder for most information. But as far as I know, in HP-UX doesn't exist such a folder, am I right? Does anybody know how I could get access to system and hardware information otherwise? Are there any usefull libraries?
I found already the "sys/pstat.h" library and i could use it to get the number of cpu's, but that is all ;-(
These are the information I would need:
- Hard disk info like the caption of it
- Bios: caption/manufacturer
- Mainboard information (the caption, too)
- CPU ID
- Video/sound card information
- Mac-Address (I found an example for HP-UX to use "#include sys/kinfo.h" But I couldn't use it because it doesn't exist within my HP-UX..)
I hope you can help me, I am totally new to this operating system..
Thank you and best regards,
Maria
Solved! Go to Solution.
- Tags:
- pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 06:46 AM
тАО07-06-2009 06:46 AM
Re: Hardware Information in HP-UX (programming language: C++)
Keep in mind HP stopped selling PA-RISC servers end of last year and now sells Intel/Itanium IA64 servers.
Here is something to look at.
http://linux.softpedia.com/get/System/System-Administration/SysInfo-DC-for-HP-UX-26419.shtml
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 06:58 AM
тАО07-06-2009 06:58 AM
Re: Hardware Information in HP-UX (programming language: C++)
The serial number would be very unique ...
# getconf MACHINE_SERIAL
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 07:17 AM
тАО07-06-2009 07:17 AM
Solution> I found a few calls, which I can use for the command line, but I wanted to avoid system calls.
You aren't going to avoid system calls :-) Command-line commands or a C/C++/Perl programs are still going to rely on underlying system and library interfaces.
> In Linux I could use the /proc folder for most information. But as far as I know, in HP-UX doesn't exist such a folder, am I right?
That's correct. HP-UX does not have a '/proc' filesystem.
You can use system and library calls like 'sysconf(2)' and 'confstr(3C)' to fetch various machine properties. The manpages for these will guide you.
http://www.docs.hp.com/en/B2355-60130/index.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2009 10:14 PM
тАО07-06-2009 10:14 PM
Re: Hardware Information in HP-UX (programming language: C++)
Thanks a lot! :-)
Best regards,
Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 11:54 AM
тАО07-07-2009 11:54 AM
Re: Hardware Information in HP-UX (programming language: C++)
If you are satistied with the answers you have received, please read:
http://forums.itrc.hp.com/service/forums/helptips.do?#28
Assigning points is both a way of saying "thank you" and a way of showing future readers of your thread what helped you solve your problem.
Regards!
...JRF...