Operating System - HP-UX
1844316 Members
3373 Online
110230 Solutions
New Discussion

[Ugent] a script of getting some information of my system.

 
KCS_1
Respected Contributor

[Ugent] a script of getting some information of my system.

Hi,

I am making a script for managing my system and have some difficulties to get under

1. performance

Usage of cpu,momory and disk

2. Kernel table values

nproc,nfile,ninode and shared memory

3. etc

Network collision and Total installed memory in my system.


Would you help me how to get these informations on the prompt command line?


Thanks

Easy going at all.
2 REPLIES 2
Mark Grant
Honored Contributor

Re: [Ugent] a script of getting some information of my system.

For me, cpu, memory and disk can be summed up with the load average in "uptime -a". It doesn't tell you what is wrong BUT if the load average is low you don't need to bother to find out.

sar is good for your other performance issues.

netstat -in shows network collisions

I THINK you can get all you kernel parameters from /stand/build/tune.h though you can't use this file to modify them.

Amount of memory I get from a little C program that uses "pstat" however, other people here have funky "adm" command lines that will do the job and will almost certainly be posted in a minute if they haven' already while I've been wittering on.
Never preceed any demonstration with anything more predictive than "watch this"
Karthik S S
Honored Contributor

Re: [Ugent] a script of getting some information of my system.

2. kmtune -q nproc

3. You can get a lot of ready made scripts from: favorite sysadmin scripts threads,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=123030

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050

-Karthik S S

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn