Operating System - HP-UX
1837921 Members
5910 Online
110124 Solutions
New Discussion

Question on obtaining configuration

 
SOLVED
Go to solution
Robert Wiebke
New Member

Question on obtaining configuration

I am HP-UX illiterate, however I need to obtain specs from an old Strattus box running HP-UX. Could I please get assistance in obtaining the following from the command line?

HP version
Number of processors
Processor speed
RAM (Believe I have this from dmesg)
Hard drives
NIC info

Normally I would just run SAM, however when I do so I get:
Awin-E-ScreenSize: asking for screen size failed

Thanks in advance.
-Robert
10 REPLIES 10
Martin Johnson
Honored Contributor

Re: Question on obtaining configuration

Glance will give you most of what you are looking for (-t option). "uname -r" will give HP version. Try cstm, if it is installed.


HTH
Marty
Leif Halvarsson_2
Honored Contributor

Re: Question on obtaining configuration

Hi
HP-UX:
uname -a

Drives and processors:
ioscan

NIC:
lanscan
Tom Maloy
Respected Contributor

Re: Question on obtaining configuration

HP-UX version from:
uname -a

If Ignite is on this version of HP-UX, you can use:
/opt/ignite/bin/print_manifest

Using stm/cstm/xstm:

CPU information
echo "selclass qualifier cpu;info;wait;infolog"|cstm
memory information
echo "selclass qualifier memory;info;wait;infolog"|cstm
serial number
echo "sel path system\ninfolog\nexit"|cstm|grep "System Serial Number"

HTH

Tom
Carpe diem!
fg_1
Trusted Contributor

Re: Question on obtaining configuration

Robert

HP version - uname -a

# of processors and proc speeds - use this program:

#include
main () {
struct pst_dynamic psd;
pstat_getdynamic(&psd, sizeof(struct pst_dynamic), 1, 0);
printf("Number of Active Processors: %d\n", psd.psd_proc_cnt);
}

RAM - swapinfo -a or from dmesg.

Hard drives - ioscan -fnC disk - one of them will be your cdrom if you have one.

NIC - lanscan - to see how many cards you have
then do ifconfig lan[#].

do a - landadmin -x [#] - gives you current speed of lan card.

Hope this helps.

GL

FG.

Sandip Ghosh
Honored Contributor

Re: Question on obtaining configuration

Hp Version - uname -a
Number of processor - ioscan -fn
RAM - dmesg, syslog.log
Hard Drive - ioscan -fnCdisk
NIC Info - sam
Processor Speed - sam

Sandip
Good Luck!!!
fg_1
Trusted Contributor

Re: Question on obtaining configuration

Robert

dont forget to be kind and assign points to responses received.

Have a good day
James R. Ferguson
Acclaimed Contributor

Re: Question on obtaining configuration

Hi Robert:

# uname -r

# ioscan -kfnC processor|awk 'END{print NR-2}'

# echo itick_per_usec/D|adb -k /stand/vmunix dev/mem

# grep -i physical /var/adm/syslog/OLDsyslog.log

# ioscan -kfnC disk

# lanscan

Regards!

...JRF...
Robert Wiebke
New Member

Re: Question on obtaining configuration

I want to thank you all for your replies.

Most were very helpful. I still am unable to tell the CPU speeds or the NIC speeds.

# echo itick_per_usec/D|adb -k /stand/vmunix dev/mem

resulted in output of 9 ???

lanadmin does not seem to support the -x flag. I see 4 NICS but cannot ascertain their speeds (though I'm fairly certain they are 10/100 I want to be sure).
Deshpande Prashant
Honored Contributor
Solution

Re: Question on obtaining configuration

Hi
Use #lanadmin -s for getting speed of lan card.
lanscan will give you

Thanks.
Prashant.
Take it as it comes.
Jeff Schussele
Honored Contributor

Re: Question on obtaining configuration

Hi Robert,

My favorite utility to do ALL of this is sysinfo. Will give you everything you'd ever need info-wise in one command. Will even create html pages.
Can be had, free, at

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/

Highly recommended.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!