Operating System - HP-UX
1851672 Members
4052 Online
104061 Solutions
New Discussion

Need command to show configuration

 
SOLVED
Go to solution
Darrell Tschakert
Regular Advisor

Need command to show configuration

Hi,
Version 5.0.5 of SCO Unix has a command named "hwconfig" which, when entered, returns just about everything that you would ever want to know about the computer on which the command was entered as well as info about the OS itself. Hwconfig returns such things such as number, type, and speed of CPU's; Number, type, model number of all disk drives; version of the OS; and on and on and on for pages and pages.

QUESTION: Does HP-UX 11.xx have such a command? If there is no such all encompassing command, then perhaps there are some other commands that return bits of information. For example "uname -a", ioscan, or model. I am particularly interested in info on the CPU - speed, type, number of, etc.

Thanks,
Darrell Tschakert
I'll add a quote when I think of one.
15 REPLIES 15
H.Merijn Brand (procura
Honored Contributor

Re: Need command to show configuration

Read the FAQ at https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/ and then download the script 'ux', it'll answer most of your questions.

*The* util you are looking for is called stm (or cstm)

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
John Poff
Honored Contributor

Re: Need command to show configuration

Hi Darrell,

I supported a bunch of SCO boxes for about 3 1/2 years, and I do miss the old hwconfig command.

In HP-UX, you have several commands to run to get the same information. First, the 'ioscan' command will tell you about all the hardware and devices in the box. As you mentioned, the 'uname -a' will give you the OS version information. To get the number of CPUs, type of CPUs, and speed, you should go take a look at Merijn's fantastic web site:

https://www.beepz.com/personal/merijn/

or Clemen's mirror of Merijn's site:

http://www.cmve.net/~merijn/

They list some great commands to get that info, as well as tons of other great stuff.


To get a nice picture of what your system has, you can also run the print_manifest command that comes with IgniteUX.

JP
Cheryl Griffin
Honored Contributor

Re: Need command to show configuration

You can also run diagnostics from command line to gain some of this information:
memory configuration:
# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/mem.out

processor info:
# echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/proc.out
"Downtime is a Crime."
Helen French
Honored Contributor

Re: Need command to show configuration

You can use this command in HP-UX to get the same type of information, provided you 've installed Ignite-UX on your system:

# /opt/ignite/bin/print_manifest
Life is a promise, fulfill it!
Rick Garland
Honored Contributor

Re: Need command to show configuration

There is not 1 all encompassing script that I am aware of but you could string a bunch of commands together to get the output you are looking for.

There are also many ready made scripts (for HPUX as well as other OSs) available on the web free for download. These scripts will tell you everything you want to know about your system, number of disks, number of CPUs, speed of CPUs, the LVM layout, patches installed and the number of, any corrupt patches, etc...

I downloaded a very script that would produce HTML output and provide all the info you would want (and them some) but I can't remeber where I got it.
Geoff Wild
Honored Contributor

Re: Need command to show configuration

We run 3 things from cron once a month:

sysinfo204 from HP

SysAudit/SysConfig - freeware
http://www.backupcentral.com/sysaudit.html

cfg2html - freeware
http://groups.yahoo.com/group/cfg2html/

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.
Darrell Tschakert
Regular Advisor

Re: Need command to show configuration

I have enough information now and thank you all for the replies. it seems that HP does not have a drop-in-replacement for SCO's hwconfig. It does have some helpful builtin programs, however.

H.Merijn,
I downloaded and tried ux but could not make it work - I entered "perl ux". Since I am not familiar with perl, I may have gotten it wrong.

Shiju Wilson and others,
One of the most helpful commands was print_manifest. I still can't seem to get the speed of the CPU's, but short of that, print_manifest gives a lot of info.

Geoff,
I could not find the sysinfo204 on any of our systems but will check the HP site later. I downloaded SysAudit but it did not run well on our HP-UX 11.00's. Lots of unfilled fields and it quit on me - mid-flight. I could not seem to download cfg3html from the site listed - I did not spend a lot of time on it though.

Cheryl Griffin,
I knew about and have used cstm but i don't know it well enough to be productive. So the two one liners that you left were helpful were helpful. Very detailed info.

Thanks again,
Darrell Tschakert
I'll add a quote when I think of one.
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Need command to show configuration

Darrell, it might require a `newer' perl than what you have available. A bare installed HP-UX probably only has /usr/contrib/bin/perl which is perl4 and way too old to be useful.

Solutions and suggestions posted in this forum reuire at least perl-5.005_03, but having 5.6.1 or 5.8.0 would make more chance on success. Most of /my/ scripts require 5.6.1 or up, and internally I'm even worse, and require a patched 5.8.0 or up.

Perl is free, and available on a lot of places. HP ships it for free on their more recent Application CD's, but it is also precompiled for HP-UX available on several web sites: HP porting center = http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.0/ , my ITRC site = https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/ (but you've already been there), or http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=PERL (but that is 5.6.1)

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Bill McNAMARA_1
Honored Contributor

Re: Need command to show configuration

You should just download something like
http://www.grc.hp.com/docs/nickel/
or
http://groups.yahoo.com/group/cfg2html/

Later,
Bill
It works for me (tm)
Geoff Wild
Honored Contributor

Re: Need command to show configuration

Here's sysinfo204.

The cfg2html web site is gone - you can onget it from the yahoo group I posted.

The nice thing about cfg2html is, if you have a mixed environment (HP, IBM, Sun), then this works great - as you get a similiar look and feel across all platforms...

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.
Geoff Wild
Honored Contributor

Re: Need command to show configuration

BTW - I run sysinfo204 from cron like this:

# Run the sysinfo204 script
0 6 1 * * /usr/local/sysinfo204/sysinfo204 -a -b >/tmp/sysinfo204.cron 2>&1


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.
Geoff Wild
Honored Contributor

Re: Need command to show configuration

Here's a script I wrote that gives some good information. Sample output:

# hpmem
HP-UX system3 B.11.11 U 9000/800 2504392627 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 1008 MB
maxuprc: 800
maxvgs: 80
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 2984
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 10
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.
Tim Sanko
Trusted Contributor

Re: Need command to show configuration

Since you are not familiar with stm, why not try xstm if you have any x/cde environments.

Tim
Helen French
Honored Contributor

Re: Need command to show configuration

Again, to get CPU speed and other details:
1) SAM -> Performance Monitors -> System Properties
2) STM
Life is a promise, fulfill it!
Darrell Tschakert
Regular Advisor

Re: Need command to show configuration

Thank you for the help, but, please not more. I have what I need now and any more postings will be wasting your time and mine.

the reason I don't use the xstm or other gui programs is that I am getting this info for a co-worker (Oracle DBA) who asked for a command line command. He does not have a GUI.

H. Merijn,
Thanks for the pointers. I will pick up the latest perl as soon as I have the time.

Geo
Thanks for the attachments. You made it very easy for me by attaching the files. I have not run the programs as of yet, but the output of the shell script looks good. And, I will enjoy picking through the shell script as well.

Again, thanks all. I have more than enoough now.

Darrell Tschakert
I'll add a quote when I think of one.