1836210 Members
3649 Online
110096 Solutions
New Discussion

getconf Command doubt

 
Guna_2
Regular Advisor

getconf Command doubt

Hello Friends,

How does the getconf command fetch the data? (i.e. serial number).. Is there any file or data where can we get all together rather than the each variable on getconf?

Thanks
Guna
4 REPLIES 4
Deeos
Regular Advisor

Re: getconf Command doubt

Hi Guna,


Go through man page of getconf or you can use print_manifest command to get in details!
Deepak
Bill Hassell
Honored Contributor

Re: getconf Command doubt

getconf is a simple interface to sysconf(), confstr() and pathconf() which is an interface to a wide variety of kernel values (not in some file). You can write a simple program to retrieve the desired values. If you want a list, you'll need to extract all the names from the man page, put them in a list, then call getconf for each one and save the list.


Bill Hassell, sysadmin
Hakki Aydin Ucar
Honored Contributor

Re: getconf Command doubt

Hi,
You can also use stm in HP-UX to get info from specific hardware.
Besides, there is command line version of stm; cstm.

For CPU info you can use:
# echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/procinfo

For Memory info:
# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo
Kranti Mahmud
Honored Contributor

Re: getconf Command doubt

Hi Guna,

Check the below link:

http://docs.hp.com/en/B2355-60127/getconf.1.html

http://docs.hp.com/en/B9106-90003/ch06s04.html

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!