Sponsored Content
Operating Systems HP-UX How should I know the total RAM available on UNIX Post 302108193 by hildymon on Friday 23rd of February 2007 05:06:07 PM
Old 02-23-2007
Script for finding hardware information

I put this together for 11.00 and now 11.11 servers - just copy and paste into a ksh script and run.

#!/bin/ksh
# Collect system information
# System
echo Name: `hostname`
echo Model: `model`
echo OS: `uname`
echo OS Level: `uname -r`
#
# Memory:
#
HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi
MYMEM=$(echo "${MYSYMBOL}/D" | adb $HPUX /dev/kmem | grep "${MYSYMBOL}: *." | awk '{print $2*4/1024}')
echo Memory: $MYMEM
#
# Number of processors
#
echo Processors: `sar -Mu 1 1|awk 'END {print NR-5}' `
#
# Processor speed:
#
HPUX=/stand/vmunix
MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo Process Speed: $MHZ
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX for 386 SX 4MB RAM

How, where from and which UNIX or LINUX can I download so that I can use it normally working on 386 SX 4MB RAM. I want to use only its basic functions and C and C++ compiler on it. I need it for my studies. P.S I need a stable UNIX or LINUX including a full set of functions of C... (4 Replies)
Discussion started by: Traiancho
4 Replies

2. UNIX for Dummies Questions & Answers

Total ram

Hi How can i find the total ram in the system? :confused: (4 Replies)
Discussion started by: orca
4 Replies

3. UNIX for Dummies Questions & Answers

RAM size in Digital unix

Hi All Im currntly working on a digital unix machine and must know what is the amount of MB\GB instaled ( i do not have physical access to the machine). can anyone help me here? 10x!!!!!!!!!!!!!!! (1 Reply)
Discussion started by: dindan100
1 Replies

4. UNIX for Advanced & Expert Users

RAM Drive in UNIX?

Hello, I will be processing 47000 zip files each of size 5.5 MB. Following operation will be performed for each zip file: 1. Unzip the file. 2. Read each text and binary file. 3. Preprocess the files. 4. Store the files in different tables in Oracle. 5. Delete the extracted... (7 Replies)
Discussion started by: joshivaibhav
7 Replies

5. Shell Programming and Scripting

View the Server Total Ram in GB

Hello, I want to view server RAM in GB i.e 4 GB or 6 GB via command line to use it in bash script waiting Any Ideas :) Thanks :):) (2 Replies)
Discussion started by: LinuxCommandos
2 Replies

6. Red Hat

red hat Linux 5.0 is detecting 3gb ram but physical ram is 16gb

Hi, On server 64bit Hw Arch , Linux 5.0(32bit) is installed it is showing only 3gb of ram though physical is 16gb can u give me idea why? (4 Replies)
Discussion started by: manoj.solaris
4 Replies

7. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

8. UNIX for Dummies Questions & Answers

Total RAM not recognised

Hi We have a redhat 4 with 8GB ram in it but free -m only recognises 3 GB of total ram please could some one help me why this happens HP syetems insight manager showing 4* 2 GB RAMS # free -m total used free shared buffers cached Mem: 3290... (6 Replies)
Discussion started by: robo
6 Replies

9. Shell Programming and Scripting

How to read total RAM in GBs?

I am aware of the commands to find the total RAM on Linux and Unix for example vmstat. Can you please tell me which tool / command can give me the Total RAM reading in GBs on Solaris Unix and Linux ? (2 Replies)
Discussion started by: mohtashims
2 Replies
vzcalc(8)							    Containers								 vzcalc(8)

NAME
vzcalc - calculate resource usage of a container SYNOPSIS
vzcalc [-v] CTID DESCRIPTION
This utility displays the share of the host system resources a particular container is using. If the container is running, the current usage is displayed. High utilization values (>100%) mean the system is overloaded (or the container has an invalid configuration). Current Shows the amount of the resources consumed by the container at a given time. Promised Shows the resources soft limit values "promised" for a given container. Max Shows the resources hard limit values "promised" for a given container. If the -v option is specified, the following additional information is also displayed: Low Mem The part of memory residing at lower addresses and directly accessed by the kernel (only makes sense for 32-bit architectures). Total RAM Total memory. Mem+Swap Amount of memory available for applications (both RAM and swap space). Alloc Mem Standard memory allocations made for applications in a container. This is a more "virtual" system resource than RAM or RAM and swap. Num. Proc Number of processes. OPTIONS
-v Display additional information. EXIT STATUS
Normally, the exit status is 0. On error, the exit status is 1. LICENSE
Copyright (C) 2000-2009, Parallels, Inc. Licensed under GNU GPL. OpenVZ 10 Dec 2009 vzcalc(8)
All times are GMT -4. The time now is 03:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy