- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 01:09 PM
01-23-2006 01:09 PM
HP-UX command
We have a HP-UX box. Need help on the following:
1) We have 2 processors in the machine but it seems that it is still too slow. How could i check the number of processors and if both are functioning properly?
2) How to check the memory utilization?
Thanks a lot in advance for your help.
Regards,
Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 01:16 PM
01-23-2006 01:16 PM
Re: HP-UX command
Ed,
A couple of quick commands
Top will show the cpu utilization by cpu, as well as some other interesting info
glance, if you have it installed will give you detailed reports on CPU and memory
(the graphical version of glance is gpm)
If you weant you can also use sar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 01:20 PM
01-23-2006 01:20 PM
Re: HP-UX command
1, In order to determine if CPU work properly you can use:
#top
You will see all CPU in the output.
2, you can use
#vmstat
#glanplus (this sofware need to be purchased)
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 01:23 PM
01-23-2006 01:23 PM
Re: HP-UX command
1. How could i check the number of processors and if both are functioning properly?
# ioscan -nfCprocessor
From here, you will see the number of processor. And if the status is CLAIMED, it means the processor is funtioning properly.
2. How to check the memory utilization?
The good way to check it by using Glance, but this software is purchaseable one.
The other way around by using the command below :
# swapinfo -tam
# vmstat 5 30
# top
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:47 PM
01-23-2006 03:47 PM
Re: HP-UX command
You can use ioscan to find the processors on your server.
eg:
# ioscan -kfnC processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 37 processor CLAIMED PROCESSOR Processor
processor 1 45 processor CLAIMED PROCESSOR Processor
processor 2 101 processor CLAIMED PROCESSOR Processor
processor 3 109 processor CLAIMED PROCESSOR Processor
vmstat, top, glance can be used for memory utilization.
You may check for the swap utilization also
swapinfo -tam
Regards,
Shameer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 04:17 PM
01-23-2006 04:17 PM
Re: HP-UX command
2) Use vmstat to get memory status. Or
UNIX95= ps -ef -o sz,vsz,pid,comm
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 10:05 PM
01-23-2006 10:05 PM
Re: HP-UX command
memory utilization...
take a man page of sar
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 10:19 PM
01-23-2006 10:19 PM
Re: HP-UX command
Number of processors in use:
# echo "runningprocs/D" | adb /stand/vmunix /dev/mem
Processor speed:
# echo itick_per_usec/D | adb /stand/vmunix /dev/mem
Regards,
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 10:20 PM
01-23-2006 10:20 PM
Re: HP-UX command
use top command to find details about processors and how they are utilized.
And vmstat will tell about memory.
Also you can use sar.
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 05:54 AM
01-25-2006 05:54 AM
Re: HP-UX command
#top
#glance
Try this two commands..
cheers
indrajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 06:07 AM
01-25-2006 06:07 AM
Re: HP-UX command
http://www.hpux.ws/system.perf.sh
Its a set if free sar tools that run background and can collect data for any period of time. These will likely show a bottleneck if it exists.
Its always important to now why a system is slow prior to trying to speed it up.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2006 06:23 AM
01-25-2006 06:23 AM
Re: HP-UX command
Use tools like glance and top.
cCheck kernel parameters like dbc_mac_pct (default is 50% of ram) you want it to work out between 450 and 800 MB of ram.
# cat processmem
#!/bin/sh
# processmem - display memory claimed by a process
# gwild 03192004
#
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "processmem \"process\""
echo "Example:"
echo "processmem rpc"
exit 1
fi
echo " "
PROCESS=$1
mps=0
#for sz in `ps -elf | grep $PROCESS | grep -v grep | awk '{print $10}'`
for sz in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $PROCESS | awk '{print $1}'`
do
mps=`expr $mps + $sz`
done
#echo `expr $mps \* 4096`
echo "\nMemory claimed by $PROCESS: $mps Kbytes.\n"
Rgds...Geoff