Go to information specifically for:
3rd_IBM_AIX_showerrpt
3rd_IBM_blktrace_instructions.txt
3rd_IBM_chk_oslevel.sh
3rd_IBM_dnf_aixtoolbox.sh
3rd_IBM_dnf_aixtoolbox.sh_info
3rd_IBM_nmon2WLE.sh
3rd_IBM_userattr.sh
3rd_NGrep.pl
3rd_Redhat_sosreport.sh
3rd_Techmint_monitor.sh
3rd_lock_example
3rd_mod_IBM_yum.sh
3rd_pmonitor.sh
3rd_tecmint_monitor.sh
3rd_toolbox_mem!
3rd_zonetype.sh
Add_headers_each_day_mpgd2.sh
Findcores
bz2_2_gz.sh
cend.sh
change_long2short.sh
change_pn.sh
chk_ps.sh
chk_ps_4_nmon.sh
chk_security
chk_version.sh
compile_nmon_pre_chk.sh
disk_trace.sh
fix_mpgd3.sh
fix_mpgdata3_cacheusr.sh
fix_nmon_file_date.sh
for_mpg
ftp_all_hosts_currentfiles.bta
ftp_all_hosts_mpgdatafiles.bta
group_fix_nmon_file_date.sh
gz_2_bz2.sh
gz_2_z.sh
gzip_nmon_continuous.sh
hsllc_admin_info.sh
hsllc_un.sh
install.sh_info
install_version_history
install_version_history.info
killnmon
lspool.sh
lv_info.sh
lv_info4aix.sh
lv_info4hp.sh
machinfo4parisc
machinfo4parisc.info
manifest
merges.tar
mpgd2_arcgztrim.sh
mpgd3_arcgztrim.sh
mpgtemp.readme
njmon_aix.man
njmon_linux-h.info
njmon_linux.man
njmonchart.info
njmonchart_aix.py
njmonchart_linux.py
nmchart_nmon_files.sh
nmon-files_info
nmon-files_version
nmon2WLE
nmon2json
nmon2json.info
nmonchart
nmonchart.info
nmonchart_license
nmondetail.sh
nweb.info
nweb.tar.gz
nwebdir_install.tar
pn_chart_nmon_files.sh
pn_chart_topas_files.sh
pn_fix_data_after_hostname_change.sh
pn_scripts_info_hsllc.sh
pnadcp.sh
pnbmpgd2gzip.sh
pnbrdf.sh
pncheck
pnd_arc_extract.sh
pnd_arc_purge_top.sh
pndchk.sh
pndchk_fix_group.sh
pndchk_sar.sh
pndcm.sh
pndcutils.sh
pnedcp_end.sh
pnedcp_snap.sh
pnedcp_start.sh
pngetinfo.sh
pngetinfo_transfer.sh
pnndc.rc
psftp_all_hosts_currentfiles.bta
psftp_all_hosts_mpgdatafiles.bta
psftp_hostcurrentfiles.bta
psftp_hostmpgdatafiles.bta
quickmpgd2.sh
rackdata.sh
rd_disk_type_sort.sh
rdhist_trim.sh
reseq_mult_mpgd2_files.sh
sar.awk
sar.sh
sdcm.sh
send2helpsys.sh
send2helpsys_sftp.sh
send2ibm.sh
send_file_ftp.bta
send_file_sftp.bta
sendpninfo2hsllc.sh
sftp2helpsys.sh
single_directory_check.sh
split_and_rebuild_mpgd2.sh
split_mpgd2.sh
start_njmon_now
start_nmon_now
test_ping.list
test_ping.sh
test_targz.sh
timestamp
topas2nmonchart.sh
topaschart
topaschart.info
topaschart_license
transfer_cp.config
transfer_current.sh
transfer_ftp.config
transfer_pull.config
transfer_pull.list
transfer_rcp.config
transfer_scp.config
transfer_script.info
transfer_script.sh
transfer_test.sh
transfer_topas.sh
windows_batch_files.tar.gz
windows_batch_files.tar.gz.info
z_2_gz.sh
|
|
3rd_IBM_AIX_showerrpt
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
3rd_IBM_blktrace_instructions.txt
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
3rd_IBM_chk_oslevel.sh
Can be used to identify the version number
This script can be used by customers and came from IBM developerworks
https://www.ibm.com/developerworks/community/blogs/brian/entry/how_to_determine_why_your_aix_oslevel_is_downlevel_and_a_script_to_help?lang=en
##################
### Sample run ###
##################
#
# Running chk_oslevel.sh,v #.# YYYY/MM/DD hh:mm:ss
# Found script at IBM developer works
# Checking oslevel...
# Current TL level appears to be downlevel
# oslevel -r: 6100-04
# oslevel -r -q: 6100-05
#
# Check the following filesets:
# Fileset Actual Level Recommended ML
# -----------------------------------------------------------------------------
# DirectorCommonAgent 6.1.0.4 6.1.2.0
# X11.base.lib 6.1.4.0 6.1.5.0
# ... ...
# devices.vdevice.hvterm1.rte 6.1.4.0 6.1.5.0
# perfagent.tools 6.1.4.0 6.1.5.0
|
|
3rd_IBM_dnf_aixtoolbox.sh
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
3rd_IBM_dnf_aixtoolbox.sh_info
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
3rd_IBM_nmon2WLE.sh
No Purpose Provided
nmon2WLE formatting script.
Assumes AIX nmon files and ignores more then 150 disks
|
|
3rd_IBM_userattr.sh
Identify user attributes
This script can be used by customers and came from IBM developerworks
|
|
3rd_NGrep.pl
No Purpose Provided
On internet with free use by others ~ Jack II
|
|
3rd_Redhat_sosreport.sh
This has been wrapped around IBM Redhats script to create and sosreport
This script can be used by customers and came from IBM developerworks
|
|
3rd_Techmint_monitor.sh
Can to aid in monitoring
This script can be used by customers and came from Tecmint
|
|
3rd_lock_example
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
3rd_mod_IBM_yum.sh
Downloads rpm.rte & yum_bundle.tar
Install yum at /usr/bin/yum
|
|
3rd_pmonitor.sh
Monitor the progress of a specified job
This script can be used by customers and came from IBM developerworks
Copyright Diomidis Spinellis
For each file or file associated with the specified process is reading,
display the percentage associated with its seek pointer offset. For
files that are processed in a sequential fashion this can be translated
to the percentage of the job that has been completed.
Requires:
- lsof(8) with offset (-o) printing functionality
Tested under FreeBSD 4.11 and FreeBSD 6.0
|
|
3rd_tecmint_monitor.sh
Linux server health monitoring
Provided by Tecmint.com
|
|
3rd_toolbox_mem!
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
3rd_zonetype.sh
zonetype
This script can be used by customers and came from IBM developerworks
|
|
Add_headers_each_day_mpgd2.sh
No Purpose Provided
This is intended to be used by Fortra employees only
with data that otherwise would not be compatible with Performance Navigator.
This was created to place headers on each days data when a customer
runs nmon for multiple days. Performance Navigator cannot read more
than one days worth of data within an nmon file and requires a header
for each day.
Note: Place the original mpgdata2 files in a directory called hold
This script will not run if that directory does not exist.
|
|
Findcores
locates core files for possible problems
While NOT intened for customers, but could be. LOCAL to Help Systems, LLC only.
Used to locate core files on systems
|
|
bz2_2_gz.sh
bz2_2_gz.sh converts all .bz2 files to .gz files in the current directory
#=#=#=#=#=#=#=#=#=#=#
Sample runs
#=#=#=#=#=#=#=#=#=#=#
# ./bz2_2_gz.sh
There are (27) .bz2 files to convert to .gz files!
Type
./bz2_2_gz.sh Fortra.com
# ./bz2_2_gz.sh Fortra.com
Running bz2_2_gz.sh,v #.# YYYY/MM/DD hh:mm:ss
Converting (27) .bz2 files to .gz files!
# ./bz2_2_gz.sh hsllc.com
Running bz2_2_gz.sh,v #.# YYYY/MM/DD hh:mm:ss
There are no .bz2 files to convert to .gz files!
|
|
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)
|
|
change_long2short.sh
Used to change long hostnames to short hostnames in all nmon files.
This includes internal lines and filename.
1. Turn off auto_start
2. killnmon
3. cd to data directory
4. Backup data before changes are made to alternate location, just in case.
5. Rename files with longhostname to shorthostname
6. Identify gzipped files that internally have longhostname
7. Fix Identifed gzipped files that internally have longhostname
8. Identify non-gzipped files that internally have longhostname
9. Fix Identified non-gzipped files that internally have longhostname
10. Turn on auto_start
11. nmon will then auto_start within 15 minutes.
|
|
change_pn.sh
change_pn.sh is used to make changes to the pn.config file
It can make several changes at the same time.
Will make a back up copy of the pn.config file to pn.config.date_time
No Regular Comments. There must be at least one (#&)
|
|
chk_ps.sh
Used to check ps info and kernel ps info at a moment in time
#========================#
Checking processes, (date info)
(uptime info)
(uname -a)
#========================#
ps -edo pid,ppid,uname,pcpu,pmem,vsz,args
PID PPID USER %CPU %MEM VSZ COMMAND
1 0 root 0.0 0.0 800 /etc/init
1638482 1 root 0.0 0.0 396 /usr/ccs/bin/shlap64
1966324 4063360 root 0.0 0.0 1124 /usr/sbin/hrd
2293922 1 root 0.0 0.0 1076 /usr/lib/errdemon
2556076 1 root 0.0 0.0 604 /usr/sbin/syncd 60
2621562 4063360 root 0.0 0.0 516 /bin/ksh /opt/itlm/tlmagent
2949276 4063360 root 0.0 0.0 1968 /usr/sbin/clcomd -d
3014856 4063360 root 0.0 0.0 1296 sendmail: accepting connections
3080210 1 root 0.0 0.0 712 /usr/sbin/nmbd
3276818 4063360 root 0.0 0.0 1288 /usr/sbin/hostmibd
3342482 2621562 root 0.0 0.0 1536 /opt/itlm/tlmagent.bin
3539068 4063360 root 0.0 0.0 652 /usr/sbin/inetd
3670134 4063360 root 0.0 0.0 1780 /usr/sbin/snmpd
3735670 4063360 root 0.0 0.0 1144 /usr/sbin/snmpmibd
3801268 4063360 root 0.0 0.0 1420 /usr/sbin/aixmibd
3866744 4063360 root 0.0 0.0 1024 /usr/sbin/portmap
3932290 4063360 root 0.0 0.0 880 /usr/sbin/syslogd
4063360 1 root 0.0 0.0 940 /usr/sbin/srcmstr
4128956 1 root 0.0 0.0 1360 /usr/bin/topasrec -L -s 300 -R 1 -r 6 -o /var/perf/daily/ -ypersistent=1 -O type=bin -ystart_time=13:55:44,Nov12,2015
4653218 4063360 root 0.0 0.0 220 /usr/sbin/qdaemon
4915440 1 root 0.0 0.0 12932 /opt/freeware/cimom/pegasus/bin/cimprovagt 0 12 16 root SLPProviderModule
4980982 5505222 root 0.0 0.0 896 /usr/sbin/smbd
5112010 1 root 0.0 1.0 30312 [cimserve]
5243066 9961572 root 0.0 0.0 788 ps -edo pid,ppid,uname,pcpu,pmem,vsz,args
5505222 1 root 0.0 0.0 1040 /usr/sbin/smbd
5570732 1 root 0.0 0.0 88 /usr/sbin/uprintfd
5701810 4063360 root 0.0 0.0 156 /usr/sbin/biod 6
5832896 4063360 root 0.0 0.0 284 /usr/sbin/writesrv
5898426 4063360 root 0.0 0.0 372 /usr/sbin/rpc.lockd -d 0
5963966 4063360 root 0.0 0.0 416 /opt/freeware/cimom/pegasus/bin/cimssys cimsys
6029532 4063360 root 0.0 0.0 544 /bin/ksh /pconsole/lwi/bin/lwistart_src.sh
6160598 6029532 pconsole 0.0 0.0 540 /bin/ksh /pconsole/lwi/bin/lwistart_src.sh
6291656 1 root 0.0 0.0 312 /opt/freeware/cimom/pegasus/bin/CIM_diagd
6357196 4063360 daemon 0.0 0.0 1516 /usr/sbin/rpc.statd -d 0 -t 50
6553802 4063360 root 0.0 0.0 276 /usr/sbin/nfsd 3891
6619374 1 nobody 0.0 0.0 3592 /opt/freeware/sbin/gmond -p /var/run/gmond.pid
6815966 4063360 root 0.0 0.0 556 /bin/ksh /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh
6947030 4063360 root 0.0 0.0 1776 /usr/sbin/rpc.mountd
7012414 1 root 0.0 0.0 2832 /usr/bin/topas_nmon -m /usr/local/mpg -F /usr/local/mpg/mpg_20151115.nmon -s300 -c287 -t -I 0.02 -youtput_dir=/usr/local/mpg/mpg_20151115.nmon -ystart_time=00:01:00,Nov15,2015
7209104 6815966 root 0.0 0.0 448 bin/nonstop_aix @/var/opt/tivoli/ep/runtime/nonstop/config/nonstop.properties
7536894 1 root 0.0 0.0 1168 /usr/sbin/cron
7733500 1 root 0.0 0.0 660 /usr/sbin/getty /dev/console
8061084 6160598 pconsole 0.0 1.0 56640 /usr/java6/bin/java -Xmx512m -Xms20m -Xscmx10m -Xshareclasses -Dfile.encoding=UTF-8 -Xbootclasspath/a:/pconsole/lwi/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.1.20091117-1800/rcpbootcp.jar:/pconsole/lwi/lib/ISCJaasModule.jar:/pconsole/lwi/lib/com.ibm.logging.icl_1.1.1.jar:/pconsole/lwi/lib/jaas2zos.jar:/pconsole/lwi/lib/jaasmodule.jar:/pconsole/lwi/lib/lwinative.jar:/pconsole/lwi/lib/lwinl.jar:/pconsole/lwi/lib/lwirolemap.jar:/pconsole/lwi/lib/lwisecurity.jar:/pconsole/lwi/lib/lwitools.jar:/pconsole/lwi/lib/passutils.jar -Xverify:none -cp eclipse/launch.jar:eclipse/startup.jar:/pconsole/lwi/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.1.20091117-1800/launcher.jar com.ibm.lwi.LaunchLWI
8126718 4063360 root 0.0 4.0 216476 /usr/sbin/rsct/bin/rmcd -a IBM.LPCommands -r -d all_but_msgs=4
9043998 4063360 root 0.0 0.0 900 /usr/sbin/sshd
9502768 4063360 root 0.0 0.0 1712 /usr/sbin/rsct/bin/IBM.DRMd
9830474 1 root 0.0 0.0 9712 /usr/bin/cimlistener
9896122 7209104 root 0.0 1.0 65444 /var/opt/tivoli/ep/_jvm/jre/bin/java -Xmx384m -Xminf0.01 -Xmaxf0.4 -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Xbootclasspath/a:/var/opt/tivoli/ep/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.3.20110824-0615/rcpbootcp.jar:/var/opt/tivoli/ep/lib/com.ibm.logging.icl_1.1.1.jar:/var/opt/tivoli/ep/lib/jaas2zos.jar:/var/opt/tivoli/ep/lib/jaasmodule.jar:/var/opt/tivoli/ep/lib/lwidiag.jar:/var/opt/tivoli/ep/lib/lwinative.jar:/var/opt/tivoli/ep/lib/lwinl.jar:/var/opt/tivoli/ep/lib/lwirolemap.jar:/var/opt/tivoli/ep/lib/lwisecurity.jar:/var/opt/tivoli/ep/lib/lwitools.jar:/var/opt/tivoli/ep/lib/passutils.jar:../../runtime/agent/lib/cas-bootcp.jar -Xverify:none -cp eclipse/launch.jar:eclipse/startup.jar:/var/opt/tivoli/ep/runtime/core/eclipse/plugins/com.ibm.rcp.base_6.2.3.20110824-0615/launcher.jar com.ibm.lwi.LaunchLWI
9961572 14549238 root 0.0 0.0 492 /bin/ksh /perfnav-nix/pn/scripts/chk_ps.sh
10289218 4063360 root 0.0 0.0 5560 /usr/sbin/rsct/bin/IBM.MgmtDomainRMd
10354752 4063360 root 0.0 0.0 1580 /usr/sbin/rsct/bin/IBM.ServiceRMd
11206768 13697070 username 0.0 0.0 992 sshd: username@pts/0
12714004 9043998 root 0.0 0.0 536 sshd: [accepted]
13697070 9043998 root 0.0 0.0 764 sshd: username [priv]
13959366 11206768 username 0.0 0.0 556 -ksh
14221458 12714004 sshd 0.0 0.0 788 sshd: [net]
14549238 13959366 root 0.0 0.0 572 -ksh
#========================#
Checking kernel processes
#========================#
ps -ko pid,ppid,uname,pcpu,pmem,vsz,args
PID PPID USER %CPU %MEM VSZ COMMAND
0 0 root 0.0 0.0 384 swapper
131076 0 root 0.0 0.0 448 wait
196614 0 root 0.0 0.0 448 sched
262152 0 root 0.0 0.0 512 lrud
327690 0 root 0.0 0.0 448 vmptacrt
393228 0 root 0.0 0.0 512 psmd
458766 0 root 0.0 0.0 832 vmmd
524304 0 root 0.0 0.0 448 pvlist
589842 0 root 0.0 0.0 640 reaffin
655380 0 root 0.0 0.0 448 memgrdd
720938 1 root 0.0 0.0 448 pofCmdProc
786456 0 root 0.0 0.0 512 vtiol
851994 0 root 0.0 0.0 448 devstatd
917532 0 root 0.0 0.0 640 pilegc
983070 0 root 0.0 0.0 448 xmgc
1048608 0 root 0.1 0.0 448 wait
1114146 0 root 0.1 0.0 448 wait
1179684 0 root 0.1 0.0 448 wait
1245222 0 root 0.0 0.0 448 netm
1310760 0 root 0.0 0.0 960 gil
1376298 0 root 0.0 0.0 512 wlmsched
1441836 0 root 0.0 0.0 448 armtrace_kproc
1572978 0 root 0.0 0.0 704 nfssync_kproc
1704022 1 root 0.0 0.0 448 aioPpool
1769536 0 root 0.0 0.0 2176 j2pg
1835208 0 root 0.0 0.0 960 dog
2031700 0 root 0.0 0.0 448 memp_rbd
2097218 0 root 0.0 0.0 448 lvmbb
2162830 1 root 0.0 0.0 448 hea_kproc
2359456 0 root 0.0 0.0 448 rtcmd
2424912 1 root 0.0 0.0 448 aioLpool
2490446 1 root 0.0 0.0 1216 kpkcs11
2687064 0 root 0.0 0.0 448 rdpgc
2752728 1 root 0.0 0.0 512 ldmp_process
2818172 0 root 0.0 0.0 512 nfsSM
2883694 1 root 0.0 0.0 512 kbiod
3145840 0 root 0.0 0.0 448 rgsr
3211370 0 root 0.0 0.0 448 n4bg
3604636 1 root 0.0 0.0 448 events
3997846 1 root 0.0 0.0 448 random
4194432 1 root 0.0 0.0 448 ib_addr
4259970 1 root 0.0 0.0 448 ib_mcast
4325508 1 root 0.0 0.0 448 ib_inform
4391046 1 root 0.0 0.0 448 local_sa
4456584 1 root 0.0 0.0 448 ib_cm
4522122 1 root 0.0 0.0 448 iw_cm_wq
4587660 1 root 0.0 0.0 448 rdma_cm
5767346 1 root 0.0 0.0 1216 rpc.lockd
6881492 1 root 0.0 0.0 1856 nfsd
8257672 1 root 0.0 0.0 448 ahafs_kproc
#========================#
|
|
chk_ps_4_nmon.sh
Looks for nmon running in the ps command and ids the directories where
nmon files are placed.
With the old option it will do a find on root looking for files with nmon
in the name and identifies the directories those files are in.
I.E.
chk_ps4_nmon.sh old
chk_ps_4_nmon.sh
Running chk_ps_4_nmon.sh,v #.# YYYY/MM/DD hh:mm:ss
#----------------------------------#
/usr/local/mpg
/_other_nmon_directory
#----------------------------------#
# --------- /perfnav-nix/pn/scripts/chk_ps_4_nmon.sh old ---------- #
#----------------------------------#
nmon files found are in /tmp/helpsystems_tmp/nmon_find_files.tmp
nmon directories found are in /tmp/helpsystems_tmp/nmon_find_nmon_dirs.tmp
#-------------- Done --------------#
|
|
chk_security
Used to check various security issues for AIX remote user connection
# chk_security
Running help chk_security,v #.# YYYY/MM/DD hh:mm:ss
usage: usage [options]
where options may be any of:
-f List the location of the security database for possible
deletion/removal if it gets too big. (achive or compress copy?)
-i Sort by ip addresses uniq count and sort again by the number of
times an ip shows up.
-d List by date uniq count.
(Can be piped to 'sort -n' to see which date is higher)
-l Normal list of all security data
-H Help
-h Help
|
|
chk_version.sh
chk_version.sh is ran for testing purposes only if nmon did not run
when install.sh was ran. ( Used if install was not successful. )
No Regular Comments. There must be at least one (#&)
|
|
compile_nmon_pre_chk.sh
Tests items required to compile nmon, use if compiling new nmon version or
install needed nmon that was not in the Performance Navigator host code.
To run type ./compile_nmon_pre_chk.sh
This would normally be used as root but can be used as a non-root user.
Need root to install gcc, make, ssh, and ncurses development package.
Once that is done, you could compile as a non-root user in temp directory.
##############
Sample run [if ncurses-development, ssh, make, or gcc are not installed,
note error(s)] I.E. ### (make) Missing ### and install missing item.
##############
# ./compile_nmon_pre_chk.sh
Running compile_nmon_pre_chk.sh,v 1.4 2020/04/15 21:00:56
lrwxrwxrwx 1 root root 20 Apr 16 17:44 /usr/local/mpg/nmon -> nmon_x86_64_ubuntu18
uname -a (Linux UbuntuDesktop16 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux)
#=== ===#
uname -s (Linux), uname -m (x86_64), uname -n (UbuntuDesktop16), uname -p (x86_64)
#=== required files ===#
/lib/x86_64-linux-gnu/libncurses.so.5
ncurses is installed OK
/usr/bin/ssh
ssh OK
/usr/bin/make
make OK
/usr/bin/gcc
gcc OK
#=== /etc/issue ===#
Ubuntu 18.04.3 LTS \n \l
#=== /etc/*release without equals ===#
#=== How 2 get gcc, ncurses, ssh, make, or other files ===#
/usr/bin/apt-get
libncurses5-dev - developer's libraries for ncurses
===
Try: (make nmon_x86_64_test)
or: (make nmon_x86_64_ubuntu_test)
Better name might be nmon_x86_64_ubuntu18
===
or\: grep nmon_x86_64_test makefile
|
|
disk_trace.sh
Used to setup and run blktrace and iostat to files and gather the
resulting files into a dated gzipped tar file.
Written using infor from IBM see 3rd_IBM_blktrace_instructions.txt
# disk_trace.sh
Running disk_trace.sh,v #.# YYYY/MM/DD hh:mm:ss
usage: /perfnav-nix/pn/scripts/disk_trace.sh [options]
where options may be any of:
-a (a)uto_install any missing required apps
-b (b)lktrace and iostat on only (specified scsii device)
-B (B)lktrace and iostat on all scsii devices
-G (G)zip blktrace files into MPG_Inc_blktrace_AIX_MPGAIX_1_mins_YYYYMMDD_hhmm.tar.gz
-l (l)ist available scsii devices
-m (m)inutes for blktrace and iostat to run (1 min default, max 10)
-t (t)est for required applications
-D (D)ebug (debug="T")
-v (v)erbose (verbose="T")
-h (h)elp
-H (H)elp
# disk_trace.sh -l
Running disk_trace.sh,v ......
[0:0:1:0] disk AIX VDASD 0001 /dev/sda
[0:0:2:0] disk AIX VDASD 0001 /dev/sdb
# ======================================================== #
### Mounting /sys/kernel/debug with
### mount -t debugfs none /sys/kernel/debug
# disk_trace.sh -B
Running disk_trace.sh,v ......
Checking for required packages for scsi tracing
# ======================================================== #
lsscsi is installed - OK
### There are NO non-virtual scsi disks detected: ()
### blktrace cannot be performed on virtual disks!
blktrace is installed - OK
sysstat is installed - OK
# ======================================================== #
/usr/bin/zypper
zypper search package_name
zypper install package_name_full # ID'd in search
# ======================================================== #
Neither blktrace or iostat are running
# ======================================================== #
No blktrace files exist
# ======================================================== #
### No scsi devices specified for run_blktrace
### Mounting /sys/kernel/debug with
### mount -t debugfs none /sys/kernel/debug
# ./disk_trace.sh -a
Running disk_trace.sh,v ......
Checking for required packages for scsi tracing
# ======================================================== #
### lsscsi is not installed - error
### blktrace is not installed - error
### sysstat is not installed - error
# ======================================================== #
### Please install items above that had error using package manager(s) or
### use auto install option (-a)
# ======================================================== #
/usr/bin/apt-get
apt-cache search package_name
apt-get install package_name_full # ID'd in search
# ======================================================== #
Neither blktrace or iostat are running
# ======================================================== #
blktrace files exist
# ======================================================== #
Installing ( sysstat blktrace lsscsi ) with ... (apt-get)
Command: ( apt-get install sysstat blktrace lsscsi )
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libaio1
Suggested packages:
gnuplot-x11 isag
The following NEW packages will be installed:
blktrace libaio1 lsscsi sysstat
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,068 kB of archives.
After this operation, 2,317 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.debian.net/debian/ wheezy/main libaio1 amd64 0.3.109-3 [9,150 B]
Get:2 http://http.debian.net/debian/ wheezy/main lsscsi amd64 0.26-2 [35.4 kB]
Get:3 http://http.debian.net/debian/ wheezy/main sysstat amd64 10.0.5-1 [391 kB]
Get:4 http://http.debian.net/debian/ wheezy/main blktrace amd64 1.0.1-2.1 [632 kB]
Fetched 1,068 kB in 1s (575 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libaio1:amd64.
(Reading database ... 143610 files and directories currently installed.)
Unpacking libaio1:amd64 (from .../libaio1_0.3.109-3_amd64.deb) ...
Selecting previously unselected package lsscsi.
Unpacking lsscsi (from .../lsscsi_0.26-2_amd64.deb) ...
Selecting previously unselected package sysstat.
Unpacking sysstat (from .../sysstat_10.0.5-1_amd64.deb) ...
Selecting previously unselected package blktrace.
Unpacking blktrace (from .../blktrace_1.0.1-2.1_amd64.deb) ...
Processing triggers for man-db ...
Setting up libaio1:amd64 (0.3.109-3) ...
Setting up lsscsi (0.26-2) ...
Setting up sysstat (10.0.5-1) ...
Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode
Setting up blktrace (1.0.1-2.1) ...
update-rc.d: warning: start runlevel arguments (S) do not match mountdebugfs Default-Start values (S 1 2 3 4 5)
[ ok ] Mounted debugfs on /sys/kernel/debug.
# ======================================================== #
### /sys/kernel/debug may already be mounted
# ./disk_trace.sh -t | awk '{print "#&",$0}'
Running disk_trace.sh,v 1.9 2014/08/19 17:25:30
Checking for required packages for scsi tracing
# ======================================================== #
### lsscsi is not installed - error
### blktrace is not installed - error
### sysstat is not installed - error
# ======================================================== #
### Please install items above that had error using package manager(s) or
### use auto install option (-a)
# ======================================================== #
/usr/bin/apt-get
apt-cache search package_name
apt-get install package_name_full # ID'd in search
# ======================================================== #
Neither blktrace or iostat are running
# ======================================================== #
No blktrace files exist
# ======================================================== #
### /sys/kernel/debug may already be mounted
|
|
fix_mpgd3.sh
Used to correct problem with mpgdata3 file.
Removes bad lines from mpgdata3 file
|
|
fix_mpgdata3_cacheusr.sh
Fix mpgdata3 file has many cacheusr lines (fix_mpgdata3_cacheusr.sh)
Will gzip the mpgdata3 file and strip the cacheusr lines into a new
mpgdata3 file.
Holding original mpgdata3 file in mpgdata3_w_cacheusr.${jsysname}.gz
#========================================#
# Sample run of fix_mpgdata3_cacheusr.sh #
#========================================#
# Note: Files sizes of zipped files may #
# be slightly different even if they are #
# the same in an unzipped condition. #
# #
# If mpgdata3.hostname does not exist, #
# the script will let you know and exit. #
# #
# File mpgdata3_w_cacheusr.hostname.gz #
# must be manually removed. #
#========================================#
./fix_mpgdata3_cacheusr.sh
# Running fix_mpgdata3_cacheusr.sh,v #.# YYYY/MM/DD hh:mm:ss
# (Holding original mpgdata3 file in mpgdata3_w_cacheusr.gz)
#=================#
-rw-rw---- 1 root system 351348 Jun 29 18:36 mpgdata3_w_cacheusr.hostname.gz
-rw-rw---- 1 root system 351332 Jun 29 18:39 mpgdata3.hostname.gz
#=================#
-rw-rw---- 1 root system 15171227 Jun 29 18:39 mpgdata3.hostname
#=================#
# Once checked remove mpgdata3_w_cacheusr.hostname.gz
# with the command:
#
# (rm mpgdata3_w_cacheusr.hostname.gz)
#
|
|
fix_nmon_file_date.sh
Used to change the date/time on an nmon file that is not set to its
original date/time, because of a cp (copy) command that did not
retain its original date/time stamp.
Uses touch command to change the date of the files.
Uses the last "ZZZZ," record to find date and time for the file.
|
|
for_mpg
for_mpg is used by MPG when troubleshooting or working remotely
No Regular Comments. There must be at least one (#&)
|
|
ftp_all_hosts_currentfiles.bta
&& Gets multiple current files via ftp from a common location
&& for for AIX, Linux, Unix hosts to use by Performance Navigator client
#& Generate the temp.txt file. Will overwrite any existing temp.txt
#& ip_or_name, Username, Password, c:\area2place_files, and /files_location have to be replaced
#& save file with BAT extension instead of BTA
|
|
ftp_all_hosts_mpgdatafiles.bta
&& Gets all required files via ftp from a common location from
&& AIX, Linux, Unix hosts to use by Performance Navigator client.
#& Generate the temp.txt file. Will overwrite any existing temp.txt
#& ip_or_name, Username, Password, c:\area2place_files, and /files_location have to be replaced
#& save file with BAT extension instead of BTA
|
|
group_fix_nmon_file_date.sh
Locates nmon files and runs fix_nmon_file_date.sh on every nmonfile found.
This resets the date stamp to the date time stamp of the nmonfiles
internally. Nmon files that are copied without the -p option can have more
current datestamp.
Sample run
Running group_fix_nmon_file_date.sh,v #.# YYYY/MM/DD hh:mm:ss
# Running ./fix_nmon_file_date.sh ./nmonfile.sample1
# Running ./fix_nmon_file_date.sh ./nmonfile.sample2
|
|
gz_2_bz2.sh
gz_2_bz2.sh converts all .gz files to .bz2 files in the current directory
#=#=#=#=#=#=#=#=#=#=#
Sample runs
#=#=#=#=#=#=#=#=#=#=#
# ./gz_2_bz2.sh
There are (27) .gz files to convert to .bz2 files!
Type
./gz_2_bz2.sh Fortra.com
# ./gz_2_bz2.sh Fortra.com
Running gz_2_bz2.sh,v #.# YYYY/MM/DD hh:mm:ss
Converting (27) .gz files to .bz2 files!
# ./gz_2_bz2.sh Fortra.com
Running gz_2_bz2.sh,v #.# YYYY/MM/DD hh:mm:ss
There are no .gz files to convert to .bz2 files!
|
|
gz_2_z.sh
gz_2_z.sh converts all .gz files to .Z files in the current directory
#=#=#=#=#=#=#=#=#=#=#
Sample runs
#=#=#=#=#=#=#=#=#=#=#
# ./gz_2_z.sh
There are (27) .gz files to convert to .Z files!
Type
./gz_2_z.sh Fortra.com
# ./gz_2_z.sh Fortra.com
Running gz_2_z.sh,v #.# YYYY/MM/DD hh:mm:ss
Converting (27) .gz files to .Z files!
# ./gz_2_z.sh Fortra.com
Running gz_2_z.sh,v #.# YYYY/MM/DD hh:mm:ss
There are no .gz files to convert to .Z files!
|
|
gzip_nmon_continuous.sh
Used to continually gzip nmon files while data is being transfered until
( rm delete2stop_gzip )
Locates nmon files that are not gzipped that are over 5 minutes old.
To start ( nohup ./gzip_nmon_continuous.sh & )
Generally only needed if lots of data is being transferred and they may no be
enough room on the target without gzipping the nmondata as it being transferred.
|
|
hsllc_admin_info.sh
Script to gather administrator information (hsllc_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
|
|
hsllc_un.sh
Only to use in extreme situations under direction of support.mpginc@helpsystems.com
No Regular Comments. There must be at least one (#&)
|
|
install.sh_info
Installs the Performance 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
|
|
install_version_history
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
install_version_history.info
install_version_history is a previous version listing of install.sh with
dates.This is for older versions, the version number within the install.sh
of the most recent powernav.tar.gz will have the lastest version number
and latest date of the build.
Example:
19.1 2020.03.25.22.00.41
6.211 2020.03.17.16.27.13
...
1.3 2010.04.30.01.39.56
1.1 2010.04.08.00.54.49
|
|
killnmon
Used to kill nmon processes.
Helps a user kill running processes. This is not normally required.
|
|
lspool.sh
lspool list each cluster and for each list its pools and pool details
Presented in presentation by Nigel Griffiths
Nigel Griffiths, IBM Power Systems
Advanced Technology Support, Europe
|
|
lv_info.sh
Used to gather logical volume information from a system.
Output file is /tmp/helpsystems_tmp/lv_info4${jtype}.out_systemname
|
|
lv_info4aix.sh
Used to gather logical volume information from a system.
Output file is /tmp/helpsystems_tmp/lv_info4aix.out_systemname
|
|
lv_info4hp.sh
Used to gather logical volume information from an HP system (HP-UX).
Output tar file is /tmp/helpsystems_tmp/lv_info4hp.out_systemname.tar.gz
|
|
machinfo4parisc
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
machinfo4parisc.info
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.
|
|
merges.tar
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
mpgd2_arcgztrim.sh
mpgdata2.hostname_archive.tar.gz must exist.
mpgdata2.hostname_archive.tar.gz more records than remove_old_arc_data?
Is there enough space to create the new mpgdata2.hostname_archive.tar.gz?
Will be ran monthly when pndchk.sh runs
Trim will happen automatically without prompting.
gunzip
sysname needs to come from pn.config or "-s name" option
Trims mpgdata2.hostname_archive.tar.gz if it has more than
remove_old_arc_data lines.
#########################
Sample run
#########################
./mpgd2_arcgztrim.sh
pn.config file does not exist at /nmondata/arctrim_test
./mpgdata2.AIX720_archive.gz exists, continuing
Space available is (194851044 k bytes)
(194851044) is greater than or equal to (183332)
./mpgdata2.AIX720_archive.gz is (3133) days! Reducing to (366) days!
Old file size (187731011) New file size (16690914)
-rw-rw---- 1 root system 187731011 Sep 30 10:53 ./mpgdata2.AIX720_archive.gz
-rw-rw---- 1 root system 16690914 Oct 08 11:04 ./mpgdata2.AIX720_arch_new.gz
root_PN@HelpSystems_AIX720:/nmondata/arctrim_test >
|
|
mpgd3_arcgztrim.sh
mpgdata3.hostname_archive.tar.gz must exist.
mpgdata3.hostname_archive.tar.gz more records than remove_old_arc_data?
Is there enough space to create the new mpgdata3.hostname_archive.tar.gz?
Will be ran monthly when pndchk.sh runs
Trim will happen automatically without prompting.
gunzip
sysname needs to come from pn.config or "-s name" option
Trims mpgdata3.hostname_archive.tar.gz if it has more than
remove_old_arc_data lines.
#########################
Sample run
#########################
./mpgd3_arcgztrim.sh
pn.config file does not exist at /nmondata/arctrim_test
./mpgdata3.AIX720_archive.gz exists, continuing
Space available is (194794264 k bytes)
(194794264) is greater than or equal to (11648)
./mpgdata3.AIX720_archive.gz is (2723) days! Reducing to (366) days!
Old file size (11925638) New file size (1199537)
-rw-rw---- 1 root system 11925638 Oct 05 10:49 ./mpgdata3.AIX720_archive.gz
-rw-rw---- 1 root system 1199537 Oct 12 14:34 ./mpgdata3.AIX720_arch_new.gz
|
|
mpgtemp.readme
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
njmon_aix.man
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
njmon_linux-h.info
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
njmon_linux.man
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
njmonchart.info
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
njmonchart_aix.py
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
njmonchart_linux.py
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
nmchart_nmon_files.sh
Creates nmonchart html files out of nmon files in directory
All nmon files must have (.nmon) extension.
##############
Sample Run
##############
nmchart_nmon_files.sh
Running nmchart_nmon_files.sh,v #.# YYYY/MM/DD hh:mm:ss
Processing (###) files for (##) hosts.
Send /tmp/helpsystems_tmp/nmchart_nmon_files_YYYYMMDD_hhmm.tar.gz to Fortra, LLC. (HelpSystems|MPG) Support!
|
|
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 (#&)
|
|
nmon2WLE
No Purpose Provided
nmon2WLE formatting script.
Assumes AIX nmon files and ignores more then 150 disks
|
|
nmon2json
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
nmon2json.info
Used to create an json formated file from and nmon file.
For a single nmon file.
|
|
nmonchart
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
nmonchart.info
Used to chart sections of an nmon file. Creates an html file from a days
worth of nmon. nmonchart is written by Nigel Griffiths at IBM
nag@uk.ibm.com tag name nagger
Requires javascript
|
|
nmonchart_license
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
nmondetail.sh
This will increase nmon detail every minute and collect top data until
midnight and return to settings within ps.config
Intended as an aid to troubleshooting a problem that is occuring now.
Saves existing configuration
copies pn.config to pn.config_nmondetailb4
Stops nmon sets the timing to one minute intervals
sets nmon opts to "-t -I 0.02"
sets external data collection to "T"
Starts nmon with new parameters.
Returns configuration to original_configuration and 5 minute snaps at 2400
|
|
nweb.info
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
nweb.tar.gz
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
nwebdir_install.tar
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
pn_chart_nmon_files.sh
Takes the current nmon files from the mpg directory and runs nmonchart
on each of them. (Including the most recent data.)
nmonchart required on path
Running pn_chart_nmon_files.sh,v #.# YYYY/MM/DD hh:mm:ss
Creating nmoncharts for (/usr/local/mpg) into (/tmp/pn_chart_nmon_files) # helpsystems
/usr/local/mpg
a hostname_mpg_20160413.nmon.html 786 blocks.
a hostname_mpg_20160414.nmon.html 786 blocks.
a hostname_mpg_20160415.nmon.html 786 blocks.
a hostname_mpg_20160416.nmon.html 784 blocks.
a hostname_mpg_20160417.nmon.html 786 blocks.
a hostname_mpg_20160418.nmon.html 786 blocks.
a hostname_mpg_20160419.nmon.html 786 blocks.
a hostname_mpg_20160420.nmon.html 462 blocks.
a mpg_hostname_nchart.html 4 blocks.
All the charts are in (/tmp/pn_chart_nmon_files/helpsys_hostname_nchart.tar.gz) # helpsystems
|
|
pn_chart_topas_files.sh
Takes the current topas files from the /tmp/helpsystems_tmp/mpgdata_topas directory and
runs topaschart on each of them. (Including the most recent data.)
topaschart required on path
Running pn_chart_topas_files.sh,v #.# YYYY/MM/DD hh:mm:ss
Creating topascharts for (/tmp/helpsystems_tmp/mpgdata_topas)into(/tmp/helpsystems_tmp/pn_chart_topas_files)
Found topasrec is running periodically in directory
(/etc/perf/daily/)
Identified a directory for topas
# Gathering topas data!
a hostname_160414.topas.csv.html 700 blocks.
a hostname_160415.topas.csv.html 700 blocks.
a hostname_160416.topas.csv.html 700 blocks.
a hostname_160417.topas.csv.html 700 blocks.
a hostname_160418.topas.csv.html 700 blocks.
a hostname_160419.topas.csv.html 700 blocks.
a hostname_160420.topas.csv.html 399 blocks.
a helpsys_hostname_tchart.html 4 blocks.
a mpgdata_topas_hostname.tar.gz 1263 blocks.
All the charts are in (/tmp/helpsystems_tmp/pn_chart_topas_files/helpsys_hostname_tchart.tar.gz)
|
|
pn_fix_data_after_hostname_change.sh
Purpose Line
Comment Line
determine where the mpgdata files are at and confirm what file names are involved.
pn_fix_data_after_hostname_change.sh
# Ensure problem exists
# Determine where the mpgdata files are at and confirm what file names are involved.
# For instance is their a mpgdata2.hostname and a mpgdata2.oldhostname or other old hostnames involved.
# Are archive files involved?
# Script will not be ran unless password is include or hsllc
./pn_fix_data_after_hostname_change.sh hsllc oldhostname currenthostname
# First ensure there does appear to be data that has
multiple hostnames and ONLY two.
Otherwise echo a message the script is being ran in error
# To ensure that nmon is not started
./change_pn.sh -n F
# Then killnmon
./killnmon
/usr/loca/mpg or other home directory is tar.gzipped
# Changes will go into /usr/local/mpg_fixed after processing is complete come back.
Once changes have been validated then data is brought back.
|
|
pn_scripts_info_hsllc.sh
Used to create information files about all hsllc 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_hsllc.sh
Running pn_scripts_info_hsllc.sh
..................................................
..........................
All script information in text form is in /tmp/helpsystems_tmp/scripts_info_hsllc
All script information in html form is in /tmp/helpsystems_tmp/scripts_info_hsllc.htm
|
|
pnadcp.sh
Performance 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.
|
|
pnbmpgd2gzip.sh
Performance Navigator Build mpgdata2.hostname file (pnbmpgd2.sh)
Requires files of the nmon data collected from an existing nmon
installation formerly gzipped (.gz).
Will also run "nmonmerge" if it is the same directory as pnbmpgd2gzip.sh
Will also run "pnbrdf.sh" if it is the same directory as pnbmpgd2gzip.sh
Will also run "rackdata.sh"
By default only the last 60 days will be process for each host.
To change that, run the following without the quotes example "export days2keep=90"
To go back to the default, run the following without quotes "export days2keep="
Will build an mpgdata2 file from existing gzipped (.gz) nmon files that
were not created by the Performance 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 Performance Navigator
consolidation process.
All nmon files in the current directory will be processed except mpgdata2
files
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/helpsystems_tmp/mpgmpg 2>/dev/null >> mpgdata2.hostname
#& Please send file pninfo_multiple_${jsysname}.tar.gz to MPG of HelpSystems, LLC.
# Sample run with all nmon data files gzipped
# =================================================#
# Running (YYMMDD_hhmm) pnbmpgd2gzip.sh,v 1.1 2013/12/17 17:38:05
# # All files are gzipped from the beginning.
# Making a list of gzipped files into gzippedfiles.tmp
# # gzipping (gzip) any nmon files that are not already gzipped.
# # They are listed in (/tmp/helpsystems_tmp/filesnotgzipped.tmp)
# Making a list of files into files2process.tmp
# Will be processing (960) files for (2) servers.
# No filenames had mutiple hosts internally, continuing
# Field counts are correct in files2process.tmp, continuing
# =================================================#
# Processing files in files2process.tmp
# =================================================#
# Processing server_one
# Processing server_two
# rackdata.server_one was created from mpgdata2.server_one
# rackdata.server_two was created from mpgdata2.server_two
#
# -rw-rw---- 1 root system 18434556 Dec 17 10:20 pninfo_multiple_yourhostname.tar.gz
#
# # In order To (gunzip) any nmon files that started not gzipped (.gz).
# Run --- ( cat /tmp/helpsystems_tmp/filesnotgzipped.tmp | xargs gunzip )
# Please send file pninfo_multiple_processingserver.tar.gz to MPG of HelpSystems, LLC.
# # In order To (gunzip) any nmon files that started not gzipped (.gz).
# Run --- ( cat /tmp/helpsystems_tmp/filesnotgzipped.tmp | xargs gunzip )
#
# Please send file pninfo_multiple_AIX720.tar.gz to MPG of HelpSystems, LLC.
# 960 good_files.tmp
# 0 bad_files.tmp
# 960 total
# # Done (YYMMDD_hhmm)
# =================================================#
# In addition, possible errors or messages.
# =================================================#
### Error ### You cannot run from (/usr/local/mpg)
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
### Error ### You cannot run from the root file sytem (/)
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
### Error ### You cannot run from install directory (yourinstalldir)
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
### Error ### There should not be any mpgdata2 files when starting, correct!
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
### Error ### needs to be ran on (AIX powerpc)
# This is on (Linux ppc64)
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
### Error ### The executable nmonmerge_systemtype is required in this directory!
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
### Error ### The executable pnbrdf.sh is required in this directory!
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
#### Error #### Has more or less than one host listed, not processing files
#### Review the data listed below, being placed into bad files
# filename
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
#### Error #### Field count should be 4 and is not correct for these
#### Review the data listed below, being placed into bad files
# filename
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
### Error ### files2process.tmp does not exist #
#
# = = = = = = = = = = = = = = = = = = = = = = = = =#
# # gzipping (gzip) any nmon files that are not already gzipped.
# # They are listed in (filesnotgzipped.tmp)
#
# =================================================#
|
|
pnbrdf.sh
Performance 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 or ppc64 Linux system.
If no mpgdata2.hostname file exists, to build an rackdata.hostname file a
syntax message will be displayed.
|
|
pncheck
Check the status of nmon and the ability to compile
Can be used to confirm nmon is okay and the status of compiling possibility
If nmon appears to not be working:
. /etc/pn.conf
${nminst}/pncheck
### Details will be in file /tmp/helpsystems_tmp/pncheck.mpginc ###
==========================
# Sample run AIX
==========================
Running pncheck,v 1.3 2018/01/12 19:25:02
Installed at /usr/local/mpg
# ################ #
nmon appears to be okay
# ################ #
lrwxrwxrwx 1 root system 9 Aug 31 08:36 nmon -> /bin/nmon
/bin/nmon: shell script
# ################ #
root 10158232 1 0 00:01:03 - 0:02 /usr/bin/topas_nmon -m /usr/local/mpg -F /usr/local/mpg/mpg_20180112.nmon -s300 -c287 -t -I 0.02 -youtput_dir=/usr/local/mpg/mpg_20180112.nmon -ystart_time=00:01:02,Jan12,2018
# ################ #
/etc/issue does not exist
Files /etc/*release* do not exist
# ################ #
uname -a (AIX AIX720 1 7 00F62C2C4C00)
#=== ===#
uname -s (AIX), uname -m (00F62C2C4C00), uname -n (AIX720), uname -p (powerpc)
#=== compiling required files ===#
/usr/bin/ssh
ssh OK
/usr/bin/make
make OK
*** gcc Missing ***
#### You cannot compile Linux nmon on AIX ####
#### There are executables already available from IBM ####
/usr/bin/nmon
/usr/bin/topas_nmon
### Details are in /tmp/helpsystems_tmp/pncheck.mpginc ###
==========================
# Sample run Linux
==========================
Running pncheck,v 1.3 2018/01/12 19:25:02
Installed at /usr/local/mpg
# ################ #
nmon appears to be okay
# ################ #
lrwxrwxrwx. 1 root root 19 Aug 14 11:18 nmon -> nmon_power_64_linux
Version nmon_power_64_linux 16f
nmon_power_64_linux: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=acfe7cd0539495ee144e06b8030f3b237464bec7, not stripped
# ################ #
root 18315 1 0 00:01 ? 00:00:02 /usr/local/mpg/nmon -m /usr/local/mpg -F /usr/local/mpg/mpg_20180112.nmon -s300 -c287 -t -I 0.02
# ################ #
#=== /etc/issue ===#
\S
Kernel \r on an \m
#=== /etc/*release* without equals ===#
cpe:/o:redhat:enterprise_linux:7.3:ga:server
Red Hat Enterprise Linux Server release 7.3 (Maipo)
# ################ #
uname -a (Linux mpgrh7 3.10.0-514.21.2.el7.ppc64 #1 SMP Sun May 28 17:12:03 EDT 2017 ppc64 ppc64 ppc64 GNU/Linux)
#=== ===#
uname -s (Linux), uname -m (ppc64), uname -n (mpgrh7), uname -p (ppc64)
#=== compiling required files ===#
/bin/ssh
ssh OK
/bin/make
make OK
/bin/gcc
gcc OK
#=== How 2 get gcc, ncurses, ssh, make, or other files ===#
/bin/yum
### Details are in /tmp/helpsystems_tmp/pncheck.mpginc ###
|
|
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
|
|
pnd_arc_purge_top.sh
Performance Navigator Data archive purge top (pnd_arc_purge_top.sh)
Purges any and all top data from mpgdata2.(hostname)_archive.gz
|
|
pndchk.sh
Performance Navigator Data CHecK (pndchk.sh)
Ran on the second of the month in crontab
pndcutils.sh is also required
First removes PCPU# PCPU_ALL SCPU# SCPU_ALL lines from the mpgdata2.hostname
Performs data validation of mpgdata2 file data, and creates resequenced file
if required.
|
|
pndchk_fix_group.sh
Runs pndchk.sh a group of mpgdata2 files in the directory.
Requires files named mpgdata2.*
Requires pndchk.sh pndchk_fix_group.sh pndcutils.sh
|
|
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
Performance 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
Performance Navigator Data Consolidation Utilities (pndcutils.sh)
Common utilities used by other scripts
|
|
pnedcp_end.sh
Performance Navigator External Data Collection Process (pnedcp_end.sh)
This script runs at the end of the collection process.
|
|
pnedcp_snap.sh
Performance Navigator External Data Collection Process (pnedcp_snap.sh)
This script runs at snap collection process.
|
|
pnedcp_start.sh
Performance Navigator External Data Collection Process (pnedcp_start.sh)
This script runs at the start of the collection process.
|
|
pngetinfo.sh
Performance Navigator Get Information (pngetinfo.sh)
Ran daily in crontab
pndcutils.sh is also required
This script gets the information that is used by Fortra, LLC. (HelpSystems|MPG)
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,
*.mpginc and *.hsllc
To include IPs for analysis, type:
export netstrip="F"
then
./pnbmpgd2gzip.sh
If netstrip is blank or "T" remove IPS
This script gets the information that is used by Fortra, LLC. (HelpSystems|MPG)
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
Gathers (last# days by default 60 or if specified different # )
unless -A all is selected.
Always gets current, config files, rackdata outputs, *.mpginc, and *.hsllc
Because output data may be in a seperate place than the install directory,
there is an append to the original tar file for additional files
|
|
pngetinfo_transfer.sh
NEED to change comments after finishing new script
Performance Navigator Get Information (pngetinfo_transfer.sh)
Not scheduled and will run only when used from directory with multiple
files from multiple servers.
pndcutils.sh is also required
This script gets 60 days or less of data gathered by transfer scripts.
and puts them in one file. (pninfo_multiples.tar.gz)
Options have yet to be determined.
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,
*.mpginc and *.hsllc
This script gets the information that is used by Fortra, LLC. (HelpSystems|MPG)
and puts them in one file. (pninfo_transfer_files.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
Gathers (last# days by default 60 or if specified different # )
unless -A all is selected.
Always gets current, config files, rackdata outputs, *.mpginc and *.hsllc
Because output data may be in a seperate place than the install directory,
there is an append to the original tar file for additional files
|
|
pnndc.rc
script that will start or stop nmon for PowerNavigator data collection
It was created to start nmon in the boot process.
It is not used on install (at the present time) It could be used to
stop and start it by a system administrator ( if desired )
in lieu of using crontab.
|
|
psftp_all_hosts_currentfiles.bta
&& Gets latest current files for a group of AIX, Linux, Unix hosts.
&@ Requires putty's psftp in path
#& This is intended to be ran every 5 minutes or simply to update.
#& Generates two files psftp_all_hosts_currentfiles.tmp file
#& psftp_all_hosts_currentfiles.tmp psftp_all_hosts_currentfiles.log
#& Will overwrite them each time.
#& Filename must be changed to end with bat not bta and placed in path.
#& 6 values need to be specified, two in quotes.
#& psftp_all_hosts_currentfiles Port User PW IP_Host "host_directory" "local_directory"
#& screen is cleared so password is not displayed after entered.
|
|
psftp_all_hosts_mpgdatafiles.bta
&& Gets latest current files for a group of AIX, Linux, Unix hosts.
&@ Requires putty's psftp in path
#& This is intended to be ran every 5 minutes or simply to update.
#& Generates two files psftp_all_hosts_mpgdata.tmp file
#& psftp_all_hosts_mpgdata.tmp psftp_all_hosts_mpgdata.log
#& Will overwrite them each time.
#& Filename must be changed to end with bat not bta and placed in path.
#& 6 values need to be specified, two in quotes.
#& psftp_all_hosts_mpgdata Port User PW IP_Host "host_directory" "local_directory"
#& screen is cleared so password is not displayed after entered.
|
|
psftp_hostcurrentfiles.bta
&& Gets latest current files for AIX, Linux, Unix hosts.
&@ Requires putty's psftp in path
#& Generates two files psftp_hostcurrentfiles.tmp file
#& psftp_hostcurrentfiles.tmp psftp_hostcurrentfiles.log
#& Will overwrite them each time.
#& Filename must be changed to end with bat not bta and placed in path.
#& 7 values need to be specified, two in quotes.
#& psftp_hostcurrentfiles Port User PW IP_Host hostname "host_directory" "local_directory"
#& screen is cleared so password is not displayed after entered.
|
|
psftp_hostmpgdatafiles.bta
&& Gets latest mpgdata files for AIX, Linux, Unix hosts.
&@ Requires putty's psftp in path
#& Generates two files psftp_hostmpgdatafiles.tmp file
#& psftp_hostmpgdatafiles.tmp psftp_hostmpgdatafiles.log
#& Will overwrite them each time.
#& Filename must be changed to end with bat not bta and placed in path.
#& 7 values need to be specified, two in quotes.
#& psftp_hostmpgdatafiles Port User PW IP_Host hostname "host_directory" "local_directory"
#& screen is cleared so password is not displayed after entered.
|
|
quickmpgd2.sh
This is only intended for internal use, but can be used by a partner
It does NO validation and maybe the only way to get mpgdata2 and rackdata
for virtual servers that have little if any information that is expected
normally. Much better for them to install powernav.tar.gz on each lpar.
No Regular Comments. There must be at least one (#&)
|
|
rackdata.sh
rackdata.sh creates a file rackdata.(uname -n | awk -F. '{print $1}') with system information.
If the df.(uname -n | awk -F. '{print $1}') 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
If rackdata.sh is ran/downloaded idependently, please run:
(chmod 744 rackdata.sh)
(ls -al rackdata.sh)
-rwxr--r-- 1 root system ##### MMM DD hh:mm rackdata.sh
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.
# ===================== #
# Sample run of rackdata.sh with -T option to gather topas data
# ===================== #
./rackdata.sh -T
Found topasrec is running periodically in directory
(/etc/perf/daily/)
Identified a directory for topas
Gathering topas data!
a HSdata_topas
a HSdata_topas/yourhostname_140610.topas.csv 414 blocks.
a HSdata_topas/yourhostname_140909.topas.csv 489 blocks.
a HSdata_topas/yourhostname_140910.topas.csv 489 blocks.
a HSdata_topas/yourhostname_140911.topas.csv 488 blocks.
a HSdata_topas/yourhostname_140912.topas.csv 488 blocks.
a HSdata_topas/yourhostname_140913.topas.csv 488 blocks.
a HSdata_topas/yourhostname_140914.topas.csv 488 blocks.
a HSdata_topas/yourhostname_140915.topas.csv 340 blocks.
a mpgdata2_topas.yourhostname 3268 blocks.
a topasrec_status.yourhostname 3268 blocks.
a rackdata.yourhostname 3268 blocks.
Please send /tmp/helpsystems_tmp/rackdata_topas_yourhostname_YYYYMMDD_hhmm.tar.gz
You can send by:
./send2helpsys_sftp.sh /tmp/helpsystems_tmp/rackdata_topas_yourhostname_YYYYMMDD_hhmm.tar.gz
|
|
rd_disk_type_sort.sh
Disk type and size from rackdata files sorted into a file
General comment
Running rackdata_disk_type_sort.sh,v 1.2 2018/07/09 19:38:37
Analyzing disk-types-sizes of rackdatas in /nmondata/Randstad/20180706/Randy
( more /tmp/helpsystems_tmp/rackdata_disk_type_sort.hsllc )
( mailfile /tmp/helpsystems_tmp/rackdata_disk_type_sort.hsllc )
|
|
rdhist_trim.sh
rdhist.hostname must exist.
rdhist.hostname more records than remove_old_arc_data?
Is there enough space to create the new rdhist.hostname?
Will be ran monthly when pndchk.sh runs
Trim will happen automatically without prompting.
sysname needs to come from pn.config or "-s name" option
Trims rdhist.hostname if it has more than remove_old_arc_data lines.
#########################
Sample run
#########################
./rdhist_trim.sh
pn.config file does not exist at /nmondata/arctrim_test
./rdhist.AIX720 exists, continuing
Space available is (194624476 k bytes)
(194624476) is greater than or equal to (11664)
./rdhist.AIX720 is (1956) days! Reducing to (366) days!
First new date (20190927) for new rdhist file.
Old file size (11942743) New file size (2593716)
-rw-r----- 1 root system 11942743 Oct 05 11:55 ./rdhist.AIX720
-rw-rw---- 1 root system 2593716 Oct 20 09:52 ./rdhist.AIX720_new
|
|
reseq_mult_mpgd2_files.sh
Resequence multiple mpgdata2 files if many in the build process are out
of date sequence(reseq_mult_mpgd2_files.sh)
This is not intended to be ran all the time, but only if needed.
It will automatically run pndchk.sh on each mpgdata2 file and delete any
temporary files.
It may take significant time to run on many files.
|
|
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
|
|
send2helpsys.sh
Send the pninfo file to ftp.mpginc.net as user capplan
Requires CompanyName.
Syntax:
./send2helpsys.sh CompanyName
Gets the directory from /etc/pn.conf
###################
Sample Run
###################
root # ./send2helpsys.sh
Running send2helpsys.sh,v 1.2 2017/08/23 01:34:29
Sending (pninfo.hostname.systemtype.tar.gz) to user capplan at ftp.mpginc.net
Interactive mode off.
-rw-r--r-- 1 capplan capplan 4674514 Aug 23 01:45 pninfo.hostname.systemtype.tar.gz
|
|
send2helpsys_sftp.sh
Automatically sends the pninfo file from /usr/local/mpg if no filename is
specified to Help Systems
If a filename is specified, then it will send that filename.
Note: Can be used do send any file including a pninfo_topas file.
If prompted about authenticity, answer yes and press return
When prompted for password, answer powernav and press return
###################
Sample Runs
###################
#################
No filename specified will send /usr/local/mpg/pninfo.hostname.systemtype.tar.gz
#################
# ./send2helpsys_sftp.sh
Running send2helpsys_sftp.sh,v 1.2 2021/09/29 16:50:24
If prompted about authenticity, answer yes and press return
When prompted for password, answer (powernav) and press return
scapplan@ftp.mpginc.net's password:
Connected to ftp.mpginc.net.
sftp> mput pninfo.rocky.AIX.tar.gz
Uploading pninfo.hostname.systemtype.tar.gz to /home/scapplan/pninfo.rocky.AIX.tar.gz
pninfo.hostname.systemtype.tar.gz 100% 14MB 3.0MB/s 00:04
Please send email to support.mpginc@helpsystems.com with the following subject:
sftp'd pninfo.rocky.AIX.tar.gz to user scapplan ftp.mpginc.net for HelpSystem
#################
Specifying a filename
#################
# ./send2helpsys_sftp.sh README
Running send2helpsys_sftp.sh,v 1.2 2021/09/29 16:50:24
If prompted about authenticity, answer yes and press return
When prompted for password, answer (powernav) and press return
scapplan@ftp.mpginc.net's password:
Connected to ftp.mpginc.net.
sftp> mput README
Uploading README to /home/scapplan/README
README 100% 22KB 111.8KB/s 00:00
Please send email to support.mpginc@helpsystems.com with the following subject:
sftp'd README to user scapplan ftp.mpginc.net for HelpSystem
#################
|
|
send2ibm.sh
Send the pninfo file to ftp.ibminc.net as user anonymous
Requires CompanyName.
Syntax:
./send2ibm.sh CompanyName
Gets the directory from /etc/pn.conf
###################
Sample Run
###################
# ./send2ibm.sh MPG Inc Randy
Running send2ibm.sh,v 1.9 2018/05/07 17:24:54
If -m is not specified will use $0 for CompanyName (MPG.Inc.Randy)
Sending pninfo file from (MPG.Inc.Randy) to user anonymous at ftp.ibminc.net
Sending (pninfo.hostname.AIX.tar.gz) from (MPG.Inc.Randy) user anonymous at ftp.ibminc.net
Connected to testcase.boulder.ibm.com.
220-IBM's internal systems must only be used for conducting IBM's
220-business or for purposes authorized by IBM management.
220-
220-Use is subject to audit at any time by IBM management.
220-
220-Before using this service for technical support purposes, refer
220-to the terms of use for Exchanging Diagnostic Data with IBM
220-(see http://www.ibm.com/de/support/ecurep/service.html).
220-
220-Important changes are coming on May 24, 2018 due to GDPR
220-see http://public.dhe.ibm.com/SupportFileTransferDetails.html
220-
220 testcase-yellow secure FTP server ready.
331 Password required for anonymous.
230 virtual user anonymous logged in from /96.69.172.233:44655.
200 Type set to I.
Interactive mode off.
250 CWD command successful.
200 PORT command successful.
150 Opening BINARY mode data connection for MPG.Inc.Randy.pninfo.AIX720.AIX.tar.gz.
226 Transfer complete.
7277844 bytes sent in 2.472 seconds (2875 Kbytes/s)
local: pninfo.AIX720.AIX.tar.gz remote: MPG.Inc.Randy.pninfo.AIX720.AIX.tar.gz
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
total 0
226 Transfer complete.
221 Goodbye.
#
|
|
send_file_ftp.bta
&& Used to send (ftp) a file to ftp.mpginc.net
#& Filename must be changed to end with bat not bta and placed in path
#& email address must be specified.
|
|
send_file_sftp.bta
&& Used to send (sftp) a file to ftp.mpginc.net
#& Filename must be changed to end with bat not bta and placed in path
#& email address must be specified.
|
|
sendpninfo2hsllc.sh
Send the pninfo file to ftp.mpginc.net as user capplan
Requires CompanyName.
Syntax:
./sendpninfo2hsllc.sh CompanyName
Gets the directory from /etc/pn.conf
###################
Sample Run
###################
root # ./sendpninfo2hsllc.sh
Running sendpninfo2hsllc.sh,v 1.2 2017/08/23 01:34:29
Sending (pninfo.hostname.systemtype.tar.gz) to user capplan at ftp.mpginc.net
Interactive mode off.
-rw-r--r-- 1 capplan capplan 4674514 Aug 23 01:45 pninfo.hostname.systemtype.tar.gz
|
|
sftp2helpsys.sh
Automatically send the pninfo file from /usr/local/mpg to Help Systems
If prompted about authenticity, answer yes and press return
When prompted for password, answer powernav and press return
|
|
single_directory_check.sh
Used to check how long it takes to list a directory with only filename
and list directory with details.
syntax: single_directory_check.sh directory
### ./single_directory_check.sh ./single_directory_check.sh
### (./single_directory_check.sh) is not directory.
### ./single_directory_check.sh
### You have not specified a directory ()
### syntax: [ single_directory_check.sh directory ]
#### ./single_directory_check.sh /nmondata
#### ls -1 $1 | wc -l #### > /var/tmp/ls-1_nohup.out
#### ls -1 $1 | wc -l #### > /var/tmp/ls-al_nohup.out
#### Please send /var/tmp/ls-1_nohup.out /var/tmp/ls-al_nohup.out ####
#### ls -1 $1 | wc -l #### > /var/tmp/ls-1_nohup.out
Tue Sep 17 08:29:37 MDT 2019
129
Tue Sep 17 08:29:37 MDT 2019
##########
#### ls -1 $1 | wc -l #### > /var/tmp/ls-al_nohup.out
Tue Sep 17 08:29:37 MDT 2019
132
Tue Sep 17 08:29:37 MDT 2019
|
|
split_and_rebuild_mpgd2.sh
Splits mpgdata2.hostname file into individual nmon files in
splits directory then rebuilds the mpgdata2.hostname file using
nmonmerge so T####'s can be corrected within individual days.
Original is mpgdata2.hostname renamed orig_mpgdata2.hostname.gz
No Regular Comments. There must be at least one (#&)
|
|
split_mpgd2.sh
Splits mpgdata2.hostname file into individual nmon files in splits directory
No Regular Comments. There must be at least one (#&)
|
|
start_njmon_now
starts njmon 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 (quiet) option is used.
pndcutils.sh is also required
An attempt is made to start njmon every 15 minutes if it is not aleady running.
|
|
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.
|
|
test_ping.list
Used by ping_test.list to test ftp to other servers.
Included are the ftp server and web server for
Fortra, LLC. (HelpSystems|MPG)
The lines in ping_test.list can be replaced with ip and server_name on each line
Currently, the lines are for fortra.com google.com and aol.com
|
|
test_ping.sh
Used to test ftp to other servers.
Requires ping_test.list
Test runs of test_ping.sh
# ========================= #
./test_ping.sh
Running
# ========================= #
### Error ### List file ./test_ping.list does not exist
./test_ping.sh
Running
# ========================= #
Using list file ./test_ping.list
# ========================= #
159.203.224.42 ftp.fortra.net Ok
96.69.172.229 ftp.fortra.com Ok
96.69.172.226 www.fortra.com Ok
# ========================= #
|
|
test_targz.sh
Used to test a tar.gz file to see files and determine space when gunzipped
and untarred.
Also counts files, gz, tar, tar.gz, rackdata and mpgdata2 files
# /perfnav-nix/pn/scripts/test_targz.sh /dirname/test.tar.gz
# Running test_targz.sh,v #.## YYYY/MM/DD hh:mm:ss
# (/perfnav-nix/pn/scripts/test_targz.sh /dirname/test.tar.gz)
-rw-rw---- 0 0 20 Sep 13 19:07:33 2015 jserver.gz
-rw-rw---- 0 0 20 Sep 13 19:07:40 2015 jserver.tar
-rw-rw---- 0 0 20 Sep 13 19:07:15 2015 jserver.tar.gz
-rw-rw---- 0 0 20 Sep 13 19:08:02 2015 mpgdata2.jserver
-rw-rw---- 0 0 20 Sep 13 19:08:09 2015 rackdata.jsersver
Bytes 100
rd_files 1
mpgd2_files 1
tar_files 1
gz_files 2
targz_files 1
nmon_files 0
topas_files 0
Files 5
|
|
timestamp
Copy filename specified to filename_YYYYMMDD_hhmm
time stamps with current datetime.
This is can be used by customers.
|
|
topas2nmonchart.sh
Can process .topas files that customer sent into nmonchart files.
Customer should be running rackdata.sh -T
No Regular Comments. There must be at least one (#&)
|
|
topaschart
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
topaschart.info
Used to chart sections of an topas csv file. Creates an html file from a days
worth of topas.
Requires javascript
|
|
topaschart_license
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
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
transfer_script.sh & transfer_current.sh are the same except for the name
and the Id line near the top of the scripts. The script will behave
differently depending on the name of the file.
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
pull requires a list of server file information and requires passwordless
key based authentication
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
./transfer_script.sh -c ./transfer_pull.config
These config files need to be modified to the specific needs of the customer
Requires user modified configuration file for normal operation.
In addition if using the pull option, a list of servers file with info on
servers/users and locations needs to be identified separately.
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_pull.config
Configuration for using scp pull to pull data from several servers
pull can be used if you are using a shared directory that each computer
computer is pulling data into.
To execute the script using a transfer_pull.config file see example below
and substitute your own values
./transfer_script.sh -c ./transfer_pull.config
pull uses scp on each computer and depends on the ability to use
passwordless authentification (id files)
|
|
transfer_pull.list
Used by transfer_pull.config for both transfer_script.sh and
tranfer_current.sh
*** The case of hostname is extremely important. ***
*** Needs to match the case of the mpg files. ***
No Regular Comments. There must be at least one (#&)
|
|
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.info
List of script configurations for various types of file transfers
Transfer methods include ftp,scp,rcp,cp & pull
The pull method uses scp to allow one machine to pull the files
from other machines that are on transfer_pull.list, these are done
sequentially (not in parallel) so concern about multiple servers
transfering data at exactly the same time is eliminated. Setting
up the pull method requires modifying the transfer_pull.list file,
as well.
Determine which method is preferred.
Then edit the appropriate config file and/or list file for that method.
#<---->#
To setup the pn.config file, it can be edited manually or use change_pn.sh
I.E. (./change_pn.sh -S sftp)
Once the pn.config and the appropriate transfer_*.config file has been
setup the script (./transfer_test.sh) can be ran.
Confirm that all the files transferred correctly and it is setup for
use by the transfer_script.sh and transfer_current.sh which will then
occur automatically from powernavigator crontab entries.
#=============================#
If additional servers will be using same method, copy the
transfer_METHOD.config file to the other servers mpgdata install
directory and repeats steps starting at #<----># above for each server.
|
|
transfer_script.sh
transfer_script.sh & transfer_current.sh are the same except for the name
and the Id line near the top of the scripts. The script will behave
differently depending on the name of the file.
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
pull requires a list of server file information and requires passwordless
key based authentication
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
./transfer_script.sh -c ./transfer_pull.config
These config files need to be modified to the specific needs of the customer
Requires user modified configuration file for normal operation.
In addition if using the pull option, a list of servers file with info on
servers/users and locations needs to be identified separately.
Example configuration files are included.
|
|
transfer_test.sh
transfer_test.sh script is to test the setup in pn.config and see if it
works. It uses the same commands that are listed for the variables
transfer_script_cmd and transfer_current_cmd
The only option is -D for debug
|
|
transfer_topas.sh
transfer_script.sh & transfer_current.sh are the same except for the name
and the Id line near the top of the scripts. The script will behave
differently depending on the name of the file.
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
pull requires a list of server file information and requires passwordless
key based authentication
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
./transfer_script.sh -c ./transfer_pull.config
These config files need to be modified to the specific needs of the customer
Requires user modified configuration file for normal operation.
In addition if using the pull option, a list of servers file with info on
servers/users and locations needs to be identified separately.
Example configuration files are included.
|
|
windows_batch_files.tar.gz
No Purpose Provided
No Regular Comments. There must be at least one (#&)
|
|
windows_batch_files.tar.gz.info
batch files .bat are included with names .bta
These batch files need to be renamed with .bat at the end.
The first two are used to allow gathering perfnav/powernav data files
from a common location via ftp.
Intended for use at common location on an iseries system.
All clients send data to the common location.
Then Performance Navigator can get all the data at one time via ftp
once daily apx 5:30
get_mpgcurrentfiles.bat
get_mpgcurrentfiles
for updated only to get more current data:
get_mpgdatafiles.bat
get_mpgdatafiles
To get the latest client version of powernav.tar.gz
get_powernav_tarfile.bat
get_powernav_tarfile
get_powernav_ftp.bat
get_powernav_ftp
get_powernav_sftp.bat
get_powernav_sftp
To a file to ftp.mpginc.net
send_file_sftp.bat
send_file_sftp
send_file_ftp.bat
send_file_ftp
|
|
z_2_gz.sh
z_2_gz.sh converts all .Z files to .gz files in the current directory
#=#=#=#=#=#=#=#=#=#=#
Sample runs
#=#=#=#=#=#=#=#=#=#=#
# ./z_2_gz.sh
There are (27) .Z files to convert to .gz files!
Type
./z_2_gz.sh Fortra.com
# ./z_2_gz.sh Fortra.com
Running z_2_gz.sh,v #.# YYYY/MM/DD hh:mm:ss
Converting (27) .Z files to .gz files!
# ./z_2_gz.sh Fortra.com
Running z_2_gz.sh,v #.# YYYY/MM/DD hh:mm:ss
There are no .Z files to convert to .gz files!
|