- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Equivalent meminfo in HPUX 11i
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
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
07-02-2005 10:02 PM
07-02-2005 10:02 PM
Rgds
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2005 11:09 PM
07-02-2005 11:09 PM
Re: Equivalent meminfo in HPUX 11i
# grep Physical /var/adm/syslog/syslog.log
# dmesg | grep Physical
# echo "selclass qualifier memory;info;wait;infolog" | cstm > /tmp/meminfo
# more /tmp/meminfo
# echo 'memory_installed_in_machine/D' | adb -k /stand/vmunix /dev/mem
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2005 11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2005 11:41 PM
07-02-2005 11:41 PM
Re: Equivalent meminfo in HPUX 11i
You can use following:
#cstm
cstm>map
cstm>ml
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 12:28 AM
07-03-2005 12:28 AM
Re: Equivalent meminfo in HPUX 11i
It was a script that was named as meminfo.
I copied same script from HPUX 11.00 into HPUX 11.11 in /usr/bin.
it works fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 07:46 PM
07-03-2005 07:46 PM
Re: Equivalent meminfo in HPUX 11i
#
# Find the physical memory on HP-UX
#
OSTYPE="`uname -r | awk -F. '{ print $2 }'a`"
BITS="`file /stand/vmunix | awk '{ print $2 }'`"
# HP-UX 10x
if [ "$OSTYPE" = "10" ]
then
MEM="`echo physmem/D | adb -k /stand/vmunix /dev/kmem | sed '1d'|awk ' {print $2}'`"
elif [ "$OSTYPE" = "11" ]
then
# HP-UX 11.x systems running on 32 bit architecture:
if [ "$BITS" = "ELF-64" ]
then
# HP-UX 11.x systems running on 64 bit architecture:
MEM="`echo phys_mem_pages/D | adb64 -k /stand/vmunix /dev/mem | sed '1d'|awk ' {print $2}'`"
else
MEM="`echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem | sed '1d'|awk ' {print $2}'`"
fi
fi
Here is a shell script we use call "physmem"
# Now calculate actual memory size. If memory is null or zero, then drop out
if [ "$MEM" = "" -o "$MEM" = "0" ]
then
MEM="0 Mbytes"
else
#MEM=`expr $MEM \/ 1024 \/ 1024 \* 4096`
MEM="`bc <
${MEM}*4096/1024/1024
EOF`"
fi
echo ${MEM} Mbytes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2005 09:34 PM
07-03-2005 09:34 PM
Re: Equivalent meminfo in HPUX 11i
there is a commonly user perl-script called 'memconf' for Solaris. The (today) most recent version v1.61 was reported to run under HPUX, too.
See
http://www.4schmidts.com/unix.html
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2005 08:53 AM
07-04-2005 08:53 AM
Re: Equivalent meminfo in HPUX 11i
Here's the c source - so you can re-compile on 11i
Output like:
# memdetail
Memory Stat total used avail %used
physical 768.0 710.9 57.1 93%
active virtual 632.5 428.8 203.7 68%
active real 298.8 182.6 116.2 61%
memory swap 554.4 314.0 240.5 57%
device swap 1024.0 437.6 586.4 43%
Rgds...Geoff