- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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
11-21-2002 02:38 PM
11-21-2002 02:38 PM
command -
-Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 02:45 PM
11-21-2002 02:45 PM
Re: command -
Try
# model (for the model)
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
You can also get this information in the 'print_manifest' output
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 02:49 PM
11-21-2002 02:49 PM
Re: command -
The best thing to use would be the STM (Support Tools Mgr) suite of commands - cstm (command-line) xstm (X-window) mstm (menu-based).
These are installed from the OnlineDiag bundle.
Run swlist & look for that bundle.
If you don't have it you can load it off the CD.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 02:59 PM
11-21-2002 02:59 PM
Re: command -
You can get this information using getconf(1m).
getconf CLK_TCK
getconf MACHINE_MODEL
Model can be queried by simply typing
model
Have a look on getconf man page. It provides some other usefull information.
Hope this helps.
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 07:42 PM
11-21-2002 07:42 PM
Re: command -
I have got an script just try it out
================ Cut here ==========================
#!/bin/sh
#########################################################################
#########################################################################
#
# script is HP-UX specific; check OK to run & determine release level
#
#########################################################################
#########################################################################
if [ `uname -s` != "HP-UX" ]; then
echo "Incompatible kernel, script is HP-UX specific; exiting"
exit 1
fi
VER=`uname -r | cut -c3-4`
case $VER in
"09") KERNEL="/hp-ux"
;;
"10"| "11") KERNEL="/stand/vmunix"
;;
*) echo "HP-UX version $VER not supported"
exit 2
;;
esac
# Check that /dev/mem is readable
if [ ! -r /dev/mem ]; then
echo "/dev/mem read access denied"
exit 3
fi
# determine page size
eval $(grep "define *PAGESIZE" /usr/include/limits.h | sed 's/# *define *//;s/ /=/;s/ *//g')
if [ "$PAGESIZE" = "" ]; then
echo "PAGESIZE not explicitly defined; assuming 4096"
PAGESIZE=4096
fi
# echo $PAGESIZE
# start adb
adb -k $KERNEL /dev/mem |&
# get kernel data
alias setvar='read -p title ; read -p resp ; eval $(echo $resp | sed "s/: */=/")'
print -p hostname/s ; setvar
print -p pdc_model_string/s ; setvar
print -p processor_count/D ; setvar
print -p cpu_arch_is_2_0/D ; setvar
print -p cpu_arch_is_1_1/D ; setvar
print -p cpu_arch_is_1_0/D ; setvar
print -p hz/D ; setvar
print -p itick_per_tick/D ; setvar
if [ "$VER" -eq "11" ]; then
print -p phys_mem_pages/D ; setvar
((mem = phys_mem_pages / 1024))
else
print -p physmem/D ; setvar
((mem = physmem / 1024))
fi
((clock = itick_per_tick * hz / 1000000 ))
((mem = mem * PAGESIZE))
((mem = mem / 1024))
# display results
if [ "$cpu_arch_is_2_0" = "1" ]; then
cpu_arch="PA20"
elif [ "$cpu_arch_is_1_1" = "1" ]; then
cpu_arch="PA11"
elif [ "$cpu_arch_is_1_0" = "1" ]; then
cpu_arch="PA10"
else
cpu_arch="PAXX"
fi
echo "hostname\t= $hostname"
echo "model\t\t= $pdc_model_string"
echo "OS release level= `uname -r`"
echo "processor count\t= $processor_count"
echo "CPU type\t= $cpu_arch"
echo "clock speed\t= ${clock} MHz"
echo "memory\t\t= ${mem} Mb"
# kill off adb & exit
print -p '$q'
exit 0
================ END ==========================
Regards
-Niraj