Go to information specifically for:
UNIX2DOS
cend.sh
install.sh_info
killnmon
lspool.sh
lv_info.sh
lv_info4aix.sh
lv_info4hp.sh
machinfo4parisc
machinfo4parisc.README
manifest
mpg_admin_info.sh
nmon-files_info
nmon-files_version
pn_scripts_info_mpg.sh
pnadcp.config
pnadcp.sh
pnbmpgd2.sh
pnbrdf.sh
pnd_arc_extract.sh
pndchk.sh
pndchk_sar.sh
pndcm.sh
pndcutils.sh
pnedcp.config
pnedcp_end.sh
pnedcp_snap.sh
pnedcp_start.sh
pngetinfo.sh
pnndc.rc
rackdata.sh
sar.awk
sar.sh
sdcm.sh
start_nmon_now
transfer_cp.config
transfer_current.sh
transfer_ftp.config
transfer_rcp.config
transfer_scp.config
transfer_script.README
transfer_script.sh
|
UNIX2DOS
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
cend.sh
Collect Existing Nmon Data (cend.sh)
Does not collect data for "today"
Ran daily by a cron job
Accepts file patterns on the commandline to designate which files to collect
pndcutils.sh is also required
pndcm.sh is also required
Defaults to all mpg_*.nmon files (except for "today's" file)
|
install.sh_info
Installs the Power Navigator Data Collector
install.sh and mpgpn.tar must be a matched set of files
install.sh version must match version of manifest
Script must stay posix compliant
To execute install.sh script type:
chmod 540 install.sh # Makes the install.sh executable
./install.sh
mpgpn.tar is also required.
Using ./install.sh without option will install in /usr/local/mpg
This is the recommended installation directory
|
killnmon
Used to kill nmon processes.
Helps a user kill running processes. This is not normally required.
|
lspool.sh
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
lv_info.sh
Used to gather logical volume information from a system.
Output file is /tmp/lv_info4${jtype}.out_systemname
|
lv_info4aix.sh
Used to gather logical volume information from a system.
Output file is /tmp/lv_info4aix.out_systemname
|
lv_info4hp.sh
Used to gather logical volume information from a system.
Output tar file is /tmp/lv_info4hp.out_systemname
|
machinfo4parisc
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
machinfo4parisc.README
machinfo4parisc is for older HP-UX parisc machines that do not have a machinfo.
This README will install automatically, and the executable machinfo4parisc.
It will only execute on parisc machines.
|
manifest
This is used by install.sh to install appropriate files in the
/usr/local/mpg directory
This includes several variable definitions and is sourced by the install script
It is not a list of all the files in the tar file, but all are inluded in one variable or another.
|
mpg_admin_info.sh
Script to gather administrator information (mpg_admin_info.sh)
Ran to gather assorted system information.
Several other calls are made and if successful they will be gathered
Will gather assorted information for cpu and other hardware on linux or unix
|
nmon-files_info
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
nmon-files_version
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
pn_scripts_info_mpg.sh
Used to create information files about all mpg scripts
Special comment lines used in scripts to allow auto documentaion:
#&& Purpose of script
#&@ Other scripts or applications required to run
#& General comment
#&% Special comment Emphasized, Caution or Warning
=-=-=-=-=-=-=-=-=-=-=-=-=
Sample Run
=-=-=-=-=-=-=-=-=-=-=-=-=
> pn_scripts_info_mpg.sh
Running pn_scripts_info_mpg.sh
..................................................
..........................
All script information in text form is in /tmp/scripts_info_mpg
All script information in html form is in /tmp/scripts_info_mpg.htm
|
pnadcp.config
This file is used for configuration of the
Power Navigator Admin Data Collection Process (pnadcp)
Used by pnadcp.sh script to gather admin data
|
pnadcp.sh
Power Navigator Admin Data Collection Process (pnadcp_start.sh)
This script runs from rackdata.sh in the background.
.
Details on variable names
MPG ID time/date/system_name
DskVars Disk Variables
SWSB System Wide Sticky Bits
DskDF ID File Systems
DFCnt Directory File Counts
DSpc Directory Space
BigFile Largest Files
.
admin_data_collect variable is used to turn off/on admin data collection
and is entered in the pn.config file gathered when rackdata.sh runs.
admin_data_collect="F" off the next day.
admin_data_collect="T" on the next day.
|
pnbmpgd2.sh
Power Navigator Build mpgdata2.hostname file (pnbmpgd2.sh)
Requires files of the nmon data collected from an existing nmon
installation.
Will also run "pnbrdf.sh" if it is the same directory as pnbmpgd2.sh
Will build an mpgdata2 file from existing nmon files that were
not created by the Power Navigator consolidation process.
It is intended to be used on existing nmon data and will build an
mpgdata2.hostname file on an AIX system.
This will allow existing data to be used with the Power Navigator
consolidation process.
All nmon files in the current directory will be processed except mpgdata2
files
If a mpgdata2.hostname file alread exists, it will create a
mpgdata2.hostname_date_hourmin file.
To create the mpgdata2 manually do the following:
First test (ls -1tr *nmon*) and confirm that only nmon files are listed.
If not, replace the *nmon* wildcard statement with one that lists nmon files.
ls -1tr *nmon* | xargs cat /tmp/mpgmpg 2>/dev/null >> mpgdata2.hostname
Sample run:
Running pnbmpgd2.sh,v #.# YYYY/MM/DD hh:mm:ss
Analyzing the nmon files in the current directory
Ignoring file badfile_20080601, because more than one host was in the data.
AAA,host,bigserve
AAA,host,orarack
Ignoring file badfile_20080601, because more than one host was in the data.
AAA,host,bigserve
AAA,host,orarack
Files created were:
mpgdata2.bigserve
mpgdata2.orarack
Running (/home/pn/hold4build/pnbrdf.sh mpgdata2.bigserve) to build rackdata.
rackdata.bigserve was created from mpgdata2.bigserve
Running (/home/pn/hold4build/pnbrdf.sh mpgdata2.orarack) to build rackdata.
rackdata.orarack was created from mpgdata2.orarack
|
pnbrdf.sh
Power Navigator Build Rack Data File (pnbrdf.sh)
Requires a file input of the data collected from an existing nmon
installation. If nofile is specified, a syntax message will be presented.
This script will build a rackdata output file with out the df -k outputs
It is intended to be used if existing nmon data was used to build an
mpgdata2.hostname file on an AIX system.
If no mpgdata2.hostname file exists, to build an mpgdata2.hostname file:
First test (ls -1tr *nmon*) and confirm that only nmon files are listed.
If not, replace the *nmon* wildcard statement with one that lists nmon files.
ls -1tr *nmon* | xargs cat /tmp/mpgmpg 2>/dev/null >> mpgdata2.hostname
|
pnd_arc_extract.sh
Performance Navigator Data archive extractor (pnd_arc_extract.sh)
Run as need needed with options to extract data from archive
with dates between YYYYDD and YYYYDD
pndcutils.sh is also required
Performs extract of portion of mpgdata2.hostname_archive.gz
File name of extract is mpgdata2.hostname_extract_YYYYMM_to_YYYYMM
|
pndchk.sh
Performance Navigator Data CHecK (pndchk.sh)
Ran on the second of the month in crontab
pndcutils.sh is also required
Performs data validation of mpgdata2 file data, and creates resequenced file
if required.
|
pndchk_sar.sh
Performance Navigator Data CHecK for SAR pndchk_sar.sh)
Ran on the second of the month in crontab
pndcutils.sh is also required
Performs data validation of mpgdata file data, and creates resequenced file
if required.
|
pndcm.sh
Power Navigator Data Consolidation Manager (pndcm.sh)
Ran daily in crontab to clean older files
pndcutils.sh is also required
nmonmerge(link) is also required
reduce.patt(link) is also required
Controls the consolidation of nmon data into the mpgdata2.hostname file
|
pndcutils.sh
Power Navigator Data Consolidation Utilities (pndcutils.sh)
Common utilities used by other scripts
|
pnedcp.config
This is used for configuration of the Power Navigator External
Data Collection Process (pnedcp)
percent_mem process info of memory above this is stored in mpgdata3.hostname
percent_cpu process info of cpu above this is stored in mpgdata3.hostname
vsz_threshold process info of vsz above this is stored in mpgdata3.hostname
|
pnedcp_end.sh
Power Navigator External Data Collection Process (pnedcp_end.sh)
This script runs at the end of the collection process.
|
pnedcp_snap.sh
Power Navigator External Data Collection Process (pnedcp_snap.sh)
This script runs at snap collection process.
|
pnedcp_start.sh
Power Navigator External Data Collection Process (pnedcp_start.sh)
This script runs at the start of the collection process.
|
pngetinfo.sh
Power Navigator Get Information (pngetinfo.sh)
Ran daily in crontab
pndcutils.sh is also required
This script gets the information that is used by Midrange Performance Group
and puts them in one file. (pninfo.hostname.systype.tar.gz)
Options are:
-a auto gzip of tar file (Does not build a tar file first)
-q quite compression
-c current data only (7 days)(large files not included)
-n # number of days to gather (most recent)(large files not included)
if no -n specified, will default to everyday
unless there is a -c specified
-h help/usage message
Can gather large files: mpgdata, mpgdata1, mpgdata2, mpgdata3, mpgdata4
Always gathers current, last# (days), config files, rackdata outputs,
and *.mpginc
This script gets the information that is used by Midrange Performance Group
and puts them in one file. (pninfo.hostname.systype.tar.gz)
Options are:
-a auto gzip of tar file (Does not build a tar file first)
-q quite compression
-c current data only (7 days)(large files not included)
-n # number of days to gather (most recent)(large files not included)
if no -n specified, will default to everyday
unless there is a -c specified
-h help/usage message
Can gather large files: mpgdata, mpgdata1, mpgdata2, mpgdata3
Always gathers current, last# (days), config files, rackdata outputs,
and *.mpginc
|
pnndc.rc
script that will start or stop nmon for PowerNavigator data collection
It was created to start nmon in the boot process.
|
rackdata.sh
rackdata.sh creates a file rackdata.(uname -n) with system information
If the df.(uname -n) file does not exist, only the present data is gathered
Ran daily in crontab
rdhist.hold is used to retain last rackdata output for comparison.
rdhist.tmp is a temporary file
df.hostname is used to gather history of disk space
A continuous df -k or bdf of disk data is gathered daily or whenever it it ran.
-D option will add outputs to the screen
rackdata history (rdhist.hostname) documents any changes that occur
in the top part of the rackdata.hostname file.
|
sar.awk
collect multiple sar outputs into consolidated format
expects all data to be from a single day
invoke as: (see sar.sh)
|
sar.sh
sar.sh is used to format sar data with the help of sar.awk
sar.awk is also required.
sar data is collected by a cron process on each 5 minute interval
on HP and Solaris.
The sar.sh file is normally ran on a daily basis on previous days data.
|
sdcm.sh
Sar Data Consolidation Manager (sdcm.sh)
Ran daily via crontab on HPUX and SunOS.
sar.sh is also required.
sar.awk is also required.
Controls the consolidation of sar data into the mpgdata.hostname file
Script is used normally used once each day via a crontab line
|
start_nmon_now
starts nmon to run till the end of the day every 5 mins.
This occurs via crontab at 1, 16, 31, 46 minutes after the hour
In crontab, the -q (quite) option is used.
pndcutils.sh is also required
An attempt is made to start nmon every 15 minutes if it is not aleady running.
|
transfer_cp.config
Configuration for using cp for file transfer
cp can be used if you are using a shared directory resource that each
computer can attach to via samba, nfs, or some other method.
To execute the script using a transfer_cp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_cp.config
|
transfer_current.sh
This transfer script can aid in gathering only the most current update of
nmon/sar data to a common location.
The config files that are used for the full data transfer script
(transfer_script.sh) can be use with this script with no changes.
To execute this script, substitute a config file depending on the type of transfer
./transfer_current.sh -c ./transfer_scp.config
./transfer_current.sh -c ./transfer_rcp.config
./transfer_current.sh -c ./transfer_ftp.config
./transfer_current.sh -c ./transfer_cp.config
These config files need to be modified to the specific needs of the customer
Requires user modified configuration file for normal operation.
Example configuration files are included.
|
transfer_ftp.config
Configuration for ftp file transfer
While this file requires a username and password, this can be an
anonymous or selected username with limited access.
To execute the script using a transfer_ftp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_ftp.config
|
transfer_rcp.config
Configuration for rcp file transfer.
rcp must be set up for use by the system administrator
The primary set up file is /etc/hosts.equiv on the receiving computer
To execute the script using a transfer_rcp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_rcp.config
|
transfer_scp.config
Configuration for scp file transfer.
scp must be set up for use by the system administrator
unless key authentication is set up, a password will be required.
To execute the script using a transfer_scp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_scp.config
|
transfer_script.README
List of script configurations for various types of file transfers
Configuration for using cp for file transfer
Configuration for ftp file transfer
Configuration for rcp file transfer.
Configuration for scp file transfer.
cp can be used if you are using a shared directory resource that each
computer can attach to via samba, nfs, or some other method.
While this file requires a username and password, this can be an
anonymous or selected username with limited access.
rcp must be set up for use by the system administrator
The primary set up file is /etc/hosts.equiv on the receiving computer
scp must be set up for use by the system administrator
unless key authentication is set up, a password will be required.
Transfer methods include ftp,scp,rcp,cp
To execute the script using a transfer_cp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_cp.config
To execute the script using a transfer_ftp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_ftp.config
To execute the script using a transfer_rcp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_rcp.config
To execute the script using a transfer_scp.config file see example below and
substitute your own values
./transfer_script.sh -c ./transfer_scp.config
|
transfer_script.sh
Transfer script can aid in gathering nmon/sar data to a common location.
cp is local or a mounted system,
ftp requires password,
scp requires passwordless key based authentication,
rcp requires administrative setup of /etc/rhost files
To execute this script, substitute a config file depending on the type of transfer
./transfer_script.sh -c ./transfer_scp.config
./transfer_script.sh -c ./transfer_rcp.config
./transfer_script.sh -c ./transfer_ftp.config
./transfer_script.sh -c ./transfer_cp.config
These config files need to be modified to the specific needs of the customer
Requires user modified configuration file for normal operation.
Example configuration files are included.
|