11-12-2007
Here's a script that will tell you the info:
:
# Name:
# cpumem
#
# Purpose:
# List the CPU & memory particulars of a HP-UX 11i v1 server.
#
#@(#)cpumem.sh PR
nodename=$(uname -n)
model=$(model)
ncpu=$(echo processor_count/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2}')
mhz=$(echo itick_per_tick/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/10000 " MHz"}')
mb=$(echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/256 " MB"}')
echo "$nodename $model ${ncpu} $mhz $mb"
10 More Discussions You Might Find Interesting
1. HP-UX
Was using rsync for Hp-UX 10.20, would like to find out is it available for HP-UX 11. If not is that anything equivalent for HP-UX11.0.
I am trying to sync the content of 2 folders.
Thanks alot for any help! (2 Replies)
Discussion started by: gelbvonn
2 Replies
2. Shell Programming and Scripting
Hi all
Can any one guide me what changes may occur with this OS version migration. If you could give some links, that would be helpful too.
Regards,
Ranj (2 Replies)
Discussion started by: ranj@chn
2 Replies
3. UNIX for Dummies Questions & Answers
Hi - Basic question from newbie
I need to find out how to verify hardware installed on HPUX server. Mid-range server - as in i need to prove to customer that a specific cpu is installed, so much memory is installed, etc.
PLEASE HELP.
TA (1 Reply)
Discussion started by: hoffies
1 Replies
4. HP-UX
Hi,
can anyone tell me were to download flex++ parser for HP-UX11
BR
vasanth (1 Reply)
Discussion started by: vasanthan
1 Replies
5. HP-UX
How to install rpm on HP-UX 11i
best regards
vasanth (3 Replies)
Discussion started by: vasanthan
3 Replies
6. HP-UX
Hi
Im trying to build and install rpm on our hp-ux server, can you please tell me how this is achived....I have tried several ways its failing
I have downloaded berkeley db and build on my system, when i have seen rpm source file i found berkelydb in that folder..Do i kneed to build again
... (2 Replies)
Discussion started by: vasanthan
2 Replies
7. Shell Programming and Scripting
i want to write shell script that exit by displaying error if sqlplus is not installed.
The platform is oracle10g on solaris sparc.
I tried the which sqlplus command, but it returns errorcode 0 even sqlplus is not installed.
Kindly help? (3 Replies)
Discussion started by: mmunir
3 Replies
8. News, Links, Events and Announcements
Hello every one,
i am attempting to install motif on HP-UX 11.11 ,which motif version i have to use for installation &where can i get that motif versin.
pls provide the information like websites which are containing open motif to install it on HP-UX 11.11.
IT'S VERY URGENT.
any help... (3 Replies)
Discussion started by: mannam srinivas
3 Replies
9. Red Hat
Guys,
Can you help me how to verify the current installed NIC driver version in RHEL5.3?
Thanks.:D (1 Reply)
Discussion started by: shtobias
1 Replies
10. Shell Programming and Scripting
Can you please let me know how can i verify /check inside the script if the below to package installation commands are successful or if they failed for any reasons?
1. pkgadd -a $INSTP/install/dadmin -d $INSTP/install/apachesrv.pkg
2. pkgadd -a $INSTP/install/dadmin -d... (6 Replies)
Discussion started by: mohtashims
6 Replies
LEARN ABOUT HPUX
xuninstallcolormap
XUninstallColormap() XUninstallColormap()
Name
XUninstallColormap - uninstall a colormap; install default if not already installed.
Synopsis
XUninstallColormap(display, colormap)
Display *display;
Colormap colormap;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
colormap Specifies the colormap to be uninstalled.
Description
If colormap is an installed map for its screen, it is uninstalled. If the screen's default colormap is not installed, it is installed.
If colormap is an installed map, a ColormapNotify event is generated on every window having this colormap as an attribute. If a colormap
is installed as a result of the uninstall, a ColormapNotify event is generated on every window having that colormap as an attribute.
At any time, there is a subset of the installed colormaps, viewed as an ordered list, called the required list. The length of the required
list is at most the min_maps specified for each screen in the Display structure. When a colormap is installed with XInstallColormap() it
is added to the head of the required list and the last colormap in the list is removed if necessary to keep the length of the list at
min_maps. When a colormap is uninstalled with XUninstallColormap() and it is in the required list, it is removed from the list. No other
actions by the server or the client change the required list. It is important to realize that on all but high-performance workstations,
min_maps is likely to be one.
For more information on installing and uninstalling colormaps, see Volume One, Chapter 7, Color.
Errors
BadColor Invalid colormap.
See Also
XDefaultColormap(), XDisplayCells(), XCopyColormapAndFree(), XCreateColormap(), XFreeColormap(), XGetStandardColormap(), XInstallCol-
ormap(), XListInstalledColormaps(), XSetStandardColormap(), XSetWindowColormap().
Xlib - Colormaps XUninstallColormap()