Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command line to view... 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, i need the command lines to view the number and specs from the processors (You know Intel, AMD) and also the specs and amout of RAM installed and being used.
Oh yeah, and the amout of used/free disk space.

please can somebody help me?
We use HP-UX B 11.11
 
Hi
For Diskspace
#bdf -l (in KB)
#du -sk /direcroty (In KB)

#man on bdf and du for more options.

Here is what I have from someone else. I saved this info in my docs. It is very useful.
adb is a debugger.

Here are some commands to verify system resources:
for HP-UX 10x
echo physmem/D | adb -k /stand/vmunix /dev/kmem
physmem:
physmem: 24576

for HP-UX 11.x systems running on 32 bit architecture:

echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 24576

for HP-UX 11.x systems running on 64 bit architecture:

echo phys_mem_pages/D | adb64 -k /stand/vmunix /dev/mem
phys_mem_pages:
phys_mem_pages: 262144

The results of these commands are in memory pages, multiply by 4096
to obtain the size in bytes.

To determine the amount of lockable memory:

echo total_lockable_mem/D | adb -k /stand/vmunix /dev/mem
total_lockable_mem:
total_lockable_mem: 185280

To determine the number of free swap pages :

echo swapspc_cnt/D | adb -k /stand/vmunix /dev/kmem
swapspc_cnt:
swapspc_cnt: 216447

This will display the number of free swap pages.
Multiply the number returned by 4096 for the number of free swap bytes.

To determine the processor speed:

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

To determine the number of processors in use:

echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem
runningprocs:
runningprocs: 2

To determine the number of pages of buffer cache ( 4Kb in size)

echo bufpages/D | adb -k /stand/vmunix /dev/mem
bufpages:
bufpages: 18848

To display kernel parameters using adb use the parameter name :

echo nproc/D | adb -k /stand/vmunix /dev/mem
nproc:
nproc: 276

To determine the kernel your booted from:

10.x
echo 'boot_string/S' | adb /stand/vmunix /dev/mem
boot_string:
boot_string: disc(52.6.0;0)/stand/vmunix

11.x
echo 'boot_string/S' | adb /stand/vmunix /dev/mem
boot_string:
boot_string: disk(0/0/2/0.6.0.0.0.0.0;0)/stand/vmunix
 
Oh I forget about CPU
#echo itick_per_usec/D | adb /stand/vmunix /dev/kmem

Patel
 
Patel - you should make a FAQ out of your posting. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Hi Mike,
Thanks for compliment. I am that expert yet.
I know HP a lot but don't know much about other flavors. I am been system admin from only 2 years. Though God is great and I had my HP-UX certification as well as my MS in computer science.
Go to the It is very great site for guys like you. Many can be benifit from your knowledge. They have around 20,000 members and more then 400 are very active member.

If you read this, please reply it.

Sachin Patel
 
Hi Sachin,

Yes, I'm a member of itrc, it's not a bad site.

Hope you don't mind, I took the liberty of making a FAQ out of your posting and crediting it to you. If that's a problem just email me and we'll get it sorted out.

Oh :) and you seem expert enough to me.

Regards, Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Great. No I don't mind at all. I mean to say I am NOT expert but forget NOT miss type.

Patel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top