- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- system information
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
06-12-2003 11:02 AM
06-12-2003 11:02 AM
I want to get the following information about my servers HPUX servers (11.00 & 10.20)
CPU
Memory
Disk space
Serial
OS Kernel width
All of the above without using SAM just command that I can put into a script
Any idea?
Thanks,
A.K.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 11:07 AM
06-12-2003 11:07 AM
Re: system information
I use this:
echo `hostname` "is a " `model |sed 's/9000\/800\///' |sed 's/9000\/899\///'` "with" `ioscan -k |grep -n p
rocessor |wc -l` `cpuspeed` "Mhz processors and" `memory` "KB of memory"
Here's the cpuspeed script:
HPUX=/stand/vmunix
MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ
Here's the memory script:
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 '{printf "%.0f MB\n",$2/256}')
echo $MYMEM
Diskspace, Serial and kernel width are available else where, you can search for them or someone will be along shortly.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 11:08 AM
06-12-2003 11:08 AM
Solution1) Ignite/UX print_manifest - /opt/ignite/bin/print_manifest - Do a 'man print_manifest' for more information. If you don't have Ignite/UX installed, you can get it here: http://software.hp.com/products/IUX/
2) CFG2HTML - does you whole system configuration and generates an HTML file with all the details.
http://come.to/cfg2html
It works on HP-UX 10.20, 11.0 and 11i.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 11:14 AM
06-12-2003 11:14 AM
Re: system information
For CPU information try these:
echo "selclass qualifier cpu;info;wait;infolog"|cstm
ioscan -fC processor
Regards,
Dario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:02 PM
06-12-2003 12:02 PM
Re: system information
#!/bin/sh
# This script will return the total disk space in system.
# Geoff Wild
#
system=`uname -n`
#ttldisk=`df -t -l | awk 'BEGIN {tot=0} $2 == "total" {tot=tot+$1} END {print (tot*512)/1000000000}'`
ttldisk=`df -t -l | awk 'BEGIN {tot=0} $2 == "total" {tot=tot+$1} END {print (tot*512)/1024/1024/1024}'`
#ttlfree=`df -l | awk -F: '{print $2}' | awk 'BEGIN {tot=0} {tot=tot+$1} END {print (tot*512)/1000000000}'`
#ttlfree=`df -t -l | awk -F: '{print $2}' | awk 'BEGIN {tot=0} {tot=tot+$1} END {print (tot*512)/1000000000}'`
ttlused=`df -t -l | awk 'BEGIN {tot=0} $2 == "used" {tot=tot+$1} END {print (tot*512)/1024/1024/1024}'`
ttlfree=`echo $ttldisk $ttlused | awk '{$3 = $1 - $2 ; print $3}'`
echo "Total disk space on $system is: $ttldisk GB" | tee /usr/tmp/$system.diskspace
echo "Total used space on $system is: $ttlused GB" | tee -a /usr/tmp/$system.diskspace
echo "Total free space on $system is: $ttlfree GB" | tee -a /usr/tmp/$system.diskspace
echo " " | tee -a /usr/tmp/$system.diskspace
echo "Note: this is only for currently mounted file systems..." | tee -a /usr/tmp/$system.diskspace
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:04 PM
06-12-2003 12:04 PM
Re: system information
# /opt/ignite/bin/print_manifest
This command will give you all information you need in a nice order. BUT you need to have Ignite-UX installed on the server to run this command.
Me next bet would be STM:
# stm
# cstm
# mstm
You will get more information from there specific to each hardware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:10 PM
06-12-2003 12:10 PM
Re: system information
/opt/ignite/bin/print_manifest will get you what you need.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:19 PM
06-12-2003 12:19 PM
Re: system information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:46 PM
06-12-2003 12:46 PM
Re: system information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 01:55 PM
06-12-2003 01:55 PM
Re: system information
http://www.software.hp.com/products/IUX/
Download the Ignite/UX depot and install it on *every* machine, then run the print_manifest command (and I would save it in a file or print it). Then the very next step is to run make_tape_recovery (check the man pages for options) to save your vg00 disk(s) onto a bootable backup tape. For systems without a tape drive, setup an Ignite network server and use make_net_recovery. Without an Ignite/UX bootable backup image, you are looking at very long recovery times (perhaps days) in case you lose your boot disk(s).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 03:01 PM
06-12-2003 03:01 PM
Re: system information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 03:29 PM
06-12-2003 03:29 PM
Re: system information
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 05:42 PM
06-12-2003 05:42 PM
Re: system information
from,
jason