Operating System - HP-UX
1846294 Members
3727 Online
110256 Solutions
New Discussion

Re: when can find system script ?

 
SOLVED
Go to solution
ust3
Regular Advisor

when can find system script ?

I want to find the script for system monitoring , housekeeping etc. can advise where ( in web ) can I find existing system script for administration ? thx
5 REPLIES 5
Aneesh Mohan
Honored Contributor
Solution

Re: when can find system script ?


Hi ,

Please check the below steps ( hopes EMS has installed on your system),you can add request for monitoring system resources.



# cd /opt/resmon/bin
# ls
C emscli monres.pm resls set_fixed
EMSconfig.ui emsui resdata resmng.pm
# ./emscli

Usage:
emscli -l | -v | -r | -m | -a | -d | -g | -h
-l : List Requests
-v : View Request(s)
-r : List Resource Instances
-m : Modify Request
-a : Add Request
-d : Delete Request(s)
-g : Generate Script
-h : Help
For more help on each option, use 'emscli -h '


Thanks,

Aneesh
ust3
Regular Advisor

Re: when can find system script ?

thx your reply,

I know there are many useful system script is free to download , instead of write by myself , I would like to download it from net , I think this script can plug into any unix-like system .

thx
whiteknight
Honored Contributor

Re: when can find system script ?

ust3,

Check this out.
ftp://contrib:9unsupp8@hprc.external.hp.com/


WK

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Problem never ends, you must know how to fix it
Prasanth V Aravind
Trusted Contributor

Re: when can find system script ?

You can install tool like open view performance manager for system monitoring


Thanks & regards
Prasanth
Pete Randall
Outstanding Contributor

Re: when can find system script ?

Not sure what you might mean by "system script" but here are some suggestions for checking the properties of your system.

If you have Ignite installed, you can use the print_manifest command.

You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).

There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).

You can also obtain this information from the command line with a
series of little scripts like these:

CPU

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Number of CPUs

ioscan -k |grep -n processor |wc -l


Support Tools Manager (STM) CPU info:

echo "selclass qualifier cpu;info;wait;infolog" | cstm




RAM

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


Support Tools Manager (STM) RAM info:

echo "selclass qualifier memory;info;wait;infolog" | cstm




You can obtain CPU speed and RAM without CSTM or root access as described by Tom
Ferony (under Nancy Rippey's login) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete