----File Name----
@@ 3rd_IBM_AIX_showerrpt
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ 3rd_IBM_blktrace_instructions.txt
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ 3rd_IBM_chk_oslevel.sh
--Revision Info--
# $Id: 3rd_IBM_chk_oslevel.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ 3rd_IBM_dnf_aixtoolbox.sh
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ 3rd_IBM_dnf_aixtoolbox.sh_info
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ 3rd_IBM_nmon2WLE.sh
--Revision Info--
# $Id: 3rd_IBM_nmon2WLE.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#& nmon2WLE formatting script.
#& Assumes AIX nmon files and ignores more then 150 disks



----File Name----
@@ 3rd_IBM_userattr.sh
--Revision Info--
# $Id: 3rd_IBM_userattr.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#&& Identify user attributes 
#& This script can be used by customers and came from IBM developerworks



----File Name----
@@ 3rd_NGrep.pl
--Revision Info--
----Required-----
--Mail Comments--
#& On internet with free use by others ~ Jack II



----File Name----
@@ 3rd_Redhat_sosreport.sh
--Revision Info--
# $Id: 3rd_Redhat_sosreport.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#&& This has been wrapped around IBM Redhats script to create and sosreport 
#& This script can be used by customers and came from IBM developerworks



----File Name----
@@ 3rd_Techmint_monitor.sh
--Revision Info--
# $Id: 3rd_Techmint_monitor.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#&& Can to aid in monitoring
#& This script can be used by customers and came from Tecmint 



----File Name----
@@ 3rd_lock_example
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ 3rd_mod_IBM_yum.sh
--Revision Info--
# $Id: 3rd_mod_IBM_yum.sh,v 1.1 2023/03/27 16:02:21 root Exp $#
----Required-----
--Mail Comments--
#&& Downloads rpm.rte & yum_bundle.tar
#&& Install yum at /usr/bin/yum
#&



----File Name----
@@ 3rd_pmonitor.sh
--Revision Info--
# $Id: 3rd_pmonitor.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ 3rd_tecmint_monitor.sh
--Revision Info--
# $Id: 3rd_tecmint_monitor.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#&& Linux server health monitoring
#& Provided by Tecmint.com 



----File Name----
@@ 3rd_toolbox_mem!
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ 3rd_zonetype.sh
--Revision Info--
# $Id: 3rd_zonetype.sh,v 1.1 2023/03/27 16:02:21 root Exp $
----Required-----
--Mail Comments--
#&& zonetype 
#& This script can be used by customers and came from IBM developerworks



----File Name----
@@ Add_headers_each_day_mpgd2.sh
--Revision Info--
# $Id: Add_headers_each_day_mpgd2.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#& 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.
#&% This is intended to be used by Fortra employees only 
#&% with data that otherwise would not be compatible with Performance Navigator.



----File Name----
@@ Findcores
--Revision Info--
# $Id: Findcores,v 1.1 2023/03/27 16:20:34 root Exp root $
----Required-----
--Mail Comments--
#& While NOT intened for customers, but could be. LOCAL to Help Systems, LLC only.
#&& locates core files for possible problems
#& Used to locate core files on systems



----File Name----
@@ bz2_2_gz.sh
--Revision Info--
# $Id: bz2_2_gz.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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!
#& 



----File Name----
@@ cend.sh
--Revision Info--
# $Id: cend.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ pndcutils.sh is also required
#&@ pndcm.sh is also required
--Mail Comments--
#&& Collect Existing Nmon Data (cend.sh)
#&  Defaults to all mpg_*.nmon files (except for "today's" file)
#&@ pndcutils.sh is also required
#&@ pndcm.sh is also required
#&%  Does not collect data for "today" 
#&%  Ran daily by a cron job
#&%  Accepts file patterns on the commandline to designate which files to 
#&%  collect.



----File Name----
@@ change_long2short.sh
--Revision Info--
# $Id: change_long2short.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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.
#& 



----File Name----
@@ change_pn.sh
--Revision Info--
# $Id: change_pn.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ chk_ps.sh
--Revision Info--
# $Id: chk_ps.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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
#& #========================#
#& 
#& 



----File Name----
@@ chk_ps_4_nmon.sh
--Revision Info--
# $Id: chk_ps_4_nmon.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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 --------------#



----File Name----
@@ chk_security
--Revision Info--
# $Id: chk_security,v 1.1 2023/03/27 16:20:34 root Exp root $
----Required-----
--Mail Comments--
#&& 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
#&



----File Name----
@@ chk_version.sh
--Revision Info--
# $Id: chk_version.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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. )



----File Name----
@@ compile_nmon_pre_chk.sh
--Revision Info--
# $Id: compile_nmon_pre_chk.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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
#& 



----File Name----
@@ disk_trace.sh
--Revision Info--
# $Id: disk_trace.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ fix_mpgd3.sh
--Revision Info--
# $Id: fix_mpgd3.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Used to correct problem with mpgdata3 file.
#& Removes bad lines from mpgdata3 file



----File Name----
@@ fix_mpgdata3_cacheusr.sh
--Revision Info--
# $Id: fix_mpgdata3_cacheusr.sh,v 1.1 2023/03/27 16:07:05 root Exp $ 
----Required-----
--Mail Comments--
#&& 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)
#& #



----File Name----
@@ fix_nmon_file_date.sh
--Revision Info--
# $Id: fix_nmon_file_date.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ Uses touch command to change the date of the files.
--Mail Comments--
#&& 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 the last "ZZZZ," record to find date and time for the file.
#&@ Uses touch command to change the date of the files.



----File Name----
@@ for_mpg
--Revision Info--
----Required-----
--Mail Comments--
#&& for_mpg is used by MPG when troubleshooting or working remotely



----File Name----
@@ ftp_all_hosts_currentfiles.bta
--Revision Info--
:: # $Id: ftp_all_hosts_currentfiles.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
--Mail Comments--



----File Name----
@@ ftp_all_hosts_mpgdatafiles.bta
--Revision Info--
:: # $Id: ftp_all_hosts_mpgdatafiles.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
--Mail Comments--



----File Name----
@@ group_fix_nmon_file_date.sh
--Revision Info--
# $Id: group_fix_nmon_file_date.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ gz_2_bz2.sh
--Revision Info--
# $Id: gz_2_bz2.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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!
#& 



----File Name----
@@ gz_2_z.sh
--Revision Info--
# $Id: gz_2_z.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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!
#& 



----File Name----
@@ gzip_nmon_continuous.sh
--Revision Info--
# $Id: gzip_nmon_continuous.sh,v 1.1 2024/04/09 18:24:31 root Exp root $
----Required-----
--Mail Comments--
#&& 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.



----File Name----
@@ hsllc_admin_info.sh
--Revision Info--
# $Id: hsllc_admin_info.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ Several other calls are made and if successful they will be gathered.
--Mail Comments--
#&& Script to gather administrator information (hsllc_admin_info.sh)
#& Will gather assorted information for cpu and other hardware on linux or unix
#&@ Several other calls are made and if successful they will be gathered.
#&% Ran to gather assorted system information.



----File Name----
@@ hsllc_un.sh
--Revision Info--
# $Id: hsllc_un.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Only to use in extreme situations under direction of support.mpginc@helpsystems.com



----File Name----
@@ install.sh_info
--Revision Info--
----Required-----
#&@ mpgpn.tar is also required.
--Mail Comments--
#&& 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   
#& Using ./install.sh without option will install in /usr/local/mpg
#& This is the recommended installation directory
#&@ mpgpn.tar is also required.



----File Name----
@@ install_version_history
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ install_version_history.info
--Revision Info--
# $Id: install_version_history.info,v 1.1 2023/03/27 16:24:49 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ killnmon
--Revision Info--
# $Id: killnmon,v 1.1 2023/03/27 16:24:26 root Exp $
----Required-----
--Mail Comments--
#&& Used to kill nmon processes.
#& Helps a user kill running processes.  This is not normally required.



----File Name----
@@ lspool.sh
--Revision Info--
# $Id: lspool.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#& Presented in presentation by Nigel Griffiths 
#& Nigel Griffiths, IBM Power Systems
#& Advanced Technology Support, Europe
#&& lspool list each cluster and for each list its pools and pool details



----File Name----
@@ lv_info.sh
--Revision Info--
#$Id: lv_info.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Used to gather logical volume information from a system.
#& Output file is /tmp/helpsystems_tmp/lv_info4${jtype}.out_systemname



----File Name----
@@ lv_info4aix.sh
--Revision Info--
#$Id: lv_info4aix.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Used to gather logical volume information from a system.
#& Output file is /tmp/helpsystems_tmp/lv_info4aix.out_systemname



----File Name----
@@ lv_info4hp.sh
--Revision Info--
#$Id: lv_info4hp.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ machinfo4parisc
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ machinfo4parisc.info
--Revision Info--
# $Id: machinfo4parisc.info,v 1.1 2023/04/06 15:25:52 root Exp root $
----Required-----
--Mail Comments--
#&& 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.



----File Name----
@@ manifest
--Revision Info--
# $Id: manifest,v 1.8 2024/06/11 15:37:23 root Exp root $
----Required-----
--Mail Comments--
#&& 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.



----File Name----
@@ merges.tar
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ mpgd2_arcgztrim.sh
--Revision Info--
# $Id: mpgd2_arcgztrim.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ gunzip
#&@ sysname needs to come from pn.config or "-s name" option 
--Mail Comments--
#& Trims mpgdata2.hostname_archive.tar.gz if it has more than 
#& remove_old_arc_data lines.
#& 
#&& 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?
#&@ gunzip
#&@ sysname needs to come from pn.config or "-s name" option 
#&% 
#&% Will be ran monthly when pndchk.sh runs 
#&% Trim will happen automatically without prompting. 
#& #########################
#& 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 >



----File Name----
@@ mpgd3_arcgztrim.sh
--Revision Info--
# $Id: mpgd3_arcgztrim.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ gunzip
#&@ sysname needs to come from pn.config or "-s name" option
--Mail Comments--
#& Trims mpgdata3.hostname_archive.tar.gz if it has more than 
#& remove_old_arc_data lines.
#& 
#&& 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?
#&@ gunzip
#&@ sysname needs to come from pn.config or "-s name" option
#&% 
#&% Will be ran monthly when pndchk.sh runs 
#&% Trim will happen automatically without prompting. 
#& #########################
#& 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



----File Name----
@@ mpgtemp.readme
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ njmon_aix.man
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ njmon_linux-h.info
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ njmon_linux.man
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ njmonchart.info
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ njmonchart_aix.py
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ njmonchart_linux.py
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nmchart_nmon_files.sh
--Revision Info--
# $Id: nmchart_nmon_files.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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!



----File Name----
@@ nmon-files_info
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nmon-files_version
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nmon2WLE
--Revision Info--
# $Id: nmon2WLE,v 1.1 2023/03/27 19:56:31 root Exp root $
----Required-----
--Mail Comments--
#& nmon2WLE formatting script.
#& Assumes AIX nmon files and ignores more then 150 disks



----File Name----
@@ nmon2json
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nmon2json.info
--Revision Info--
# $Id: nmon2json.info,v 1.1 2023/03/27 19:56:31 root Exp $
----Required-----
--Mail Comments--
#&& Used to create an json formated file from and nmon file. 
#&& For a single nmon file.
#&



----File Name----
@@ nmonchart
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nmonchart.info
--Revision Info--
# $Id: nmonchart.info,v 1.2 2024/02/19 19:40:40 root Exp root $
----Required-----
#&@ Requires javascript
--Mail Comments--
#&& 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
#&



----File Name----
@@ nmonchart_license
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nmondetail.sh
--Revision Info--
# $Id: nmondetail.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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 



----File Name----
@@ nweb.info
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nweb.tar.gz
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ nwebdir_install.tar
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ pn_chart_nmon_files.sh
--Revision Info--
# $Id: pn_chart_nmon_files.sh,v 1.1 2023/03/27 16:07:05 root Exp $#
----Required-----
#&@ nmonchart required on path
--Mail Comments--
#&& 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
#&



----File Name----
@@ pn_chart_topas_files.sh
--Revision Info--
# $Id: pn_chart_topas_files.sh,v 1.1 2023/03/27 16:07:05 root Exp $#
----Required-----
#&@ topaschart required on path 
--Mail Comments--
#&& 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)
#&



----File Name----
@@ pn_fix_data_after_hostname_change.sh
--Revision Info--
# $Id: pn_fix_data_after_hostname_change.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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.



----File Name----
@@ pn_scripts_info_hsllc.sh
--Revision Info--
# $Id: pn_scripts_info_hsllc.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ pnadcp.sh
--Revision Info--
# $Id: pnadcp.sh,v 1.1 2023/03/27 16:07:05 root Exp $ 
----Required-----
--Mail Comments--
#&& 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.



----File Name----
@@ pnbmpgd2gzip.sh
--Revision Info--
# $Id: pnbmpgd2gzip.sh,v 1.3 2024/04/02 19:15:38 root Exp root $
----Required-----
#&@ 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"
--Mail Comments--
#&& Performance Navigator Build mpgdata2.hostname file (pnbmpgd2.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.
#&@ 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"
#&
#& 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)
#& #
#& # =================================================#



----File Name----
@@ pnbrdf.sh
--Revision Info--
# $Id: pnbrdf.sh,v 1.1 2023/03/27 16:07:05 root Exp $
   grep "\$Id\:" $0 | awk '{print $1,$3,$4,$5,$6}'
----Required-----
#&@ Requires a file input of the data collected from an existing nmon 
#&@ installation. If nofile is specified, a syntax message will be presented.  
--Mail Comments--
#&& Performance Navigator Build Rack Data File (pnbrdf.sh) 
#&
#& 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.
#&@ Requires a file input of the data collected from an existing nmon 
#&@ installation. If nofile is specified, a syntax message will be presented.  
#&
#& If no mpgdata2.hostname file exists, to build an rackdata.hostname file a 
#& syntax message will be displayed.
#& 



----File Name----
@@ pncheck
--Revision Info--
# $Id: pncheck,v 1.1 2023/03/27 21:23:12 root Exp root $
----Required-----
--Mail Comments--
#&& 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 ###



----File Name----
@@ pnd_arc_extract.sh
--Revision Info--
# $Id: pnd_arc_extract.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ pndcutils.sh is also required
--Mail Comments--
#&& Performance Navigator Data archive extractor (pnd_arc_extract.sh) 
#& Performs extract of portion of mpgdata2.hostname_archive.gz 
#& File name of extract is mpgdata2.hostname_extract_YYYYMM_to_YYYYMM
#&@ pndcutils.sh is also required
#&% Run as need needed with options to extract data from archive
#&% with dates between YYYYDD and YYYYDD



----File Name----
@@ pnd_arc_purge_top.sh
--Revision Info--
# $Id: pnd_arc_purge_top.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Performance Navigator Data archive purge top (pnd_arc_purge_top.sh) 
#& Purges any and all top data from mpgdata2.(hostname)_archive.gz



----File Name----
@@ pndchk.sh
--Revision Info--
# $Id: pndchk.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ pndcutils.sh is also required
--Mail Comments--
#&& Performance Navigator Data CHecK (pndchk.sh) 
#& 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.
#&@ pndcutils.sh is also required
#&% Ran on the second of the month in crontab 



----File Name----
@@ pndchk_fix_group.sh
--Revision Info--
# $Id: pndchk_fix_group.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ Requires files named mpgdata2.* 
#&@ 
#&@ Requires pndchk.sh pndchk_fix_group.sh pndcutils.sh
--Mail Comments--
#&& Runs pndchk.sh a group of mpgdata2 files in the directory.
#&
#&@ Requires files named mpgdata2.* 
#&@ 
#&@ Requires pndchk.sh pndchk_fix_group.sh pndcutils.sh



----File Name----
@@ pndchk_sar.sh
--Revision Info--
# $Id: pndchk_sar.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ pndcutils.sh is also required
--Mail Comments--
#&& Performance Navigator Data CHecK for SAR  pndchk_sar.sh) 
#& Performs data validation of mpgdata file data, and creates resequenced file
#& if required.
#&@ pndcutils.sh is also required
#&% Ran on the second of the month in crontab 



----File Name----
@@ pndcm.sh
--Revision Info--
# $Id: pndcm.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ pndcutils.sh is also required
#&@ nmonmerge(link) is also required
#&@ reduce.patt(link) is also required
--Mail Comments--
#&& Performance Navigator Data Consolidation Manager (pndcm.sh) 
#& Controls the consolidation of nmon data into the mpgdata2.hostname file
#&@ pndcutils.sh is also required
#&@ nmonmerge(link) is also required
#&@ reduce.patt(link) is also required
#&% Ran daily in crontab to clean older files



----File Name----
@@ pndcutils.sh
--Revision Info--
# $Id: pndcutils.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Performance Navigator Data Consolidation Utilities (pndcutils.sh)
#& Common utilities used by other scripts 



----File Name----
@@ pnedcp_end.sh
--Revision Info--
# $Id: pnedcp_end.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Performance Navigator External Data Collection Process (pnedcp_end.sh)
#& This script runs at the end of the collection process.



----File Name----
@@ pnedcp_snap.sh
--Revision Info--
# $Id: pnedcp_snap.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Performance Navigator External Data Collection Process (pnedcp_snap.sh)
#& This script runs at snap collection process.



----File Name----
@@ pnedcp_start.sh
--Revision Info--
# $Id: pnedcp_start.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Performance Navigator External Data Collection Process (pnedcp_start.sh)
#& This script runs at the start of the collection process.



----File Name----
@@ pngetinfo.sh
--Revision Info--
# $Id: pngetinfo.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ pndcutils.sh is also required
--Mail Comments--
#&& Performance Navigator Get Information (pngetinfo.sh)
#& 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  
#&@ pndcutils.sh is also required
#&% Ran daily in crontab
#& 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  
#&   



----File Name----
@@ pngetinfo_transfer.sh
--Revision Info--
# $Id: pngetinfo_transfer.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ pndcutils.sh is also required
--Mail Comments--
#&& NEED to change comments after finishing new script
#&& Performance Navigator Get Information (pngetinfo_transfer.sh)
#& 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  
#&@ pndcutils.sh is also required
#&% Not scheduled and will run only when used from directory with multiple 
#&% files from multiple servers. 
#& 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  
#&   



----File Name----
@@ pnndc.rc
--Revision Info--
# $Id: pnndc.rc,v 1.1 2023/03/27 21:23:12 root Exp $
----Required-----
--Mail Comments--
#&& 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. 



----File Name----
@@ psftp_all_hosts_currentfiles.bta
--Revision Info--
:: # $Id: psftp_all_hosts_currentfiles.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
:: #&@ Requires putty's psftp in path
--Mail Comments--



----File Name----
@@ psftp_all_hosts_mpgdatafiles.bta
--Revision Info--
:: # $Id: psftp_all_hosts_mpgdatafiles.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
:: #&@ Requires putty's psftp in path
--Mail Comments--



----File Name----
@@ psftp_hostcurrentfiles.bta
--Revision Info--
:: # $Id: psftp_hostcurrentfiles.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
:: #&@ Requires putty's psftp in path
--Mail Comments--



----File Name----
@@ psftp_hostmpgdatafiles.bta
--Revision Info--
:: # $Id: psftp_hostmpgdatafiles.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
:: #&@ Requires putty's psftp in path
--Mail Comments--



----File Name----
@@ quickmpgd2.sh
--Revision Info--
# $Id: quickmpgd2.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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.



----File Name----
@@ rackdata.sh
--Revision Info--
# $Id: rackdata.sh,v 1.4 2024/06/05 16:26:28 root Exp root $
grep "\$Id\:" $0 | awk '{print $1,$3,$4,$5,$6}' >> $outfile
----Required-----
#&@ df.hostname is used to gather history of disk space  
--Mail Comments--
#& 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
#&
#&& rackdata.sh creates a file rackdata.(uname -n | awk -F. '{print $1}') with system information.
#& 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
#&@ df.hostname is used to gather history of disk space  
#&% If the df.(uname -n | awk -F. '{print $1}') file does not exist, only the present data is gathered 
#&% Ran daily in crontab
#& rackdata history (rdhist.hostname) documents any changes that occur
#& in the top part of the rackdata.hostname file.
#&% rdhist.hold is used to retain last rackdata output for comparison.
#&% rdhist.tmp is a temporary 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



----File Name----
@@ rd_disk_type_sort.sh
--Revision Info--
# $Id: rd_disk_type_sort.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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 )
#& 



----File Name----
@@ rdhist_trim.sh
--Revision Info--
# $Id: rdhist_trim.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ sysname needs to come from pn.config or "-s name" option
--Mail Comments--
#& Trims rdhist.hostname if it has more than remove_old_arc_data lines.
#& 
#&& rdhist.hostname must exist.
#&& rdhist.hostname more records than remove_old_arc_data?
#&& Is there enough space to create the new rdhist.hostname?
#&@ sysname needs to come from pn.config or "-s name" option
#&% 
#&% Will be ran monthly when pndchk.sh runs 
#&% Trim will happen automatically without prompting. 
#& #########################
#& 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



----File Name----
@@ reseq_mult_mpgd2_files.sh
--Revision Info--
# $Id: reseq_mult_mpgd2_files.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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.



----File Name----
@@ sar.awk
--Revision Info--
# $Id: sar.awk,v 1.1 2023/03/27 21:25:54 root Exp $
----Required-----
--Mail Comments--
#&& collect multiple sar outputs into consolidated format
#& expects all data to be from a single day
#& invoke as:  (see sar.sh)



----File Name----
@@ sar.sh
--Revision Info--
# $Id: sar.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ sar.awk is also required.
--Mail Comments--
#&& sar.sh is used to format sar data with the help of sar.awk 
#& 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.
#&@ sar.awk is also required.



----File Name----
@@ sdcm.sh
--Revision Info--
# $Id: sdcm.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ sar.sh is also required.
#&@ sar.awk is also required.
--Mail Comments--
#&& Sar Data Consolidation Manager (sdcm.sh)
#& Controls the consolidation of sar data into the mpgdata.hostname file
#& Script is used normally used once each day via a crontab line
#&@ sar.sh is also required.
#&@ sar.awk is also required.
#&% Ran daily via crontab on HPUX and SunOS.



----File Name----
@@ send2helpsys.sh
--Revision Info--
# $Id: send2helpsys.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ send2helpsys_sftp.sh
--Revision Info--
# $Id: send2helpsys_sftp.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#& If prompted about authenticity, answer yes and press return 
#& When prompted for password, answer powernav and press return
#&
#&
#&& 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.
#&
#& ###################
#& 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
#& 
#& #################



----File Name----
@@ send2ibm.sh
--Revision Info--
# $Id: send2ibm.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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.
#& #



----File Name----
@@ send_file_ftp.bta
--Revision Info--
:: # $Id: send_file_ftp.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
--Mail Comments--



----File Name----
@@ send_file_sftp.bta
--Revision Info--
:: # $Id: send_file_sftp.bta,v 1.1 2023/03/27 16:23:48 root Exp $
----Required-----
--Mail Comments--



----File Name----
@@ sendpninfo2hsllc.sh
--Revision Info--
# $Id: sendpninfo2hsllc.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ sftp2helpsys.sh
--Revision Info--
# $Id: sftp2helpsys.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#& If prompted about authenticity, answer yes and press return 
#& When prompted for password, answer powernav and press return
#&
#&& Automatically send the pninfo file from /usr/local/mpg to Help Systems



----File Name----
@@ single_directory_check.sh
--Revision Info--
# $Id: single_directory_check.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ split_and_rebuild_mpgd2.sh
--Revision Info--
# $Id: split_and_rebuild_mpgd2.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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 



----File Name----
@@ split_mpgd2.sh
--Revision Info--
# $Id: split_mpgd2.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& Splits mpgdata2.hostname file into individual nmon files in splits directory 



----File Name----
@@ start_njmon_now
--Revision Info--
# $Id: start_njmon_now,v 1.1 2023/03/27 19:59:17 root Exp root $
----Required-----
#&@ pndcutils.sh is also required
--Mail Comments--
#&& starts njmon to run till the end of the day every 5 mins.
#&@ pndcutils.sh is also required
#& An attempt is made to start njmon every 15 minutes if it is not aleady running.
#&% This occurs via crontab at 1, 16, 31, 46 minutes after the hour
#&% In crontab, the -q (quiet) option is used.



----File Name----
@@ start_nmon_now
--Revision Info--
# $Id: start_nmon_now,v 1.1 2023/03/27 19:59:17 root Exp $
----Required-----
#&@ pndcutils.sh is also required
--Mail Comments--
#&& starts nmon to run till the end of the day every 5 mins.
#&@ pndcutils.sh is also required
#& An attempt is made to start nmon every 15 minutes if it is not aleady running.
#&% This occurs via crontab at 1, 16, 31, 46 minutes after the hour
#&% In crontab, the -q (quite) option is used.



----File Name----
@@ test_ping.list
--Revision Info--
# $Id: test_ping.list,v 1.1 2023/03/27 21:26:36 root Exp root $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ test_ping.sh
--Revision Info--
# $Id: test_ping.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ Requires ping_test.list 
--Mail Comments--
#&& 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
#& # ========================= #



----File Name----
@@ test_targz.sh
--Revision Info--
# $Id: test_targz.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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



----File Name----
@@ timestamp
--Revision Info--
# $Id: timestamp,v 1.1 2023/03/27 21:29:03 root Exp root $
----Required-----
--Mail Comments--
#&& Copy filename specified to filename_YYYYMMDD_hhmm
#&& time stamps with current datetime.
#& This is can be used by customers. 



----File Name----
@@ topas2nmonchart.sh
--Revision Info--
# $Id: topas2nmonchart.sh,v 1.1 2023/08/21 16:51:28 root Exp root $
----Required-----
--Mail Comments--
#&& Can process .topas files that customer sent into nmonchart files.
#&% Customer should be running rackdata.sh -T



----File Name----
@@ topaschart
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ topaschart.info
--Revision Info--
# $Id: topaschart.info,v 1.1 2023/03/27 21:26:36 root Exp $
----Required-----
#&@ Requires javascript
--Mail Comments--
#&& Used to chart sections of an topas csv file. Creates an html file from a days 
#&& worth of topas.
#&
#&@ Requires javascript
#&



----File Name----
@@ topaschart_license
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ transfer_cp.config
--Revision Info--
# $Id: transfer_cp.config,v 1.1 2023/03/27 21:26:36 root Exp $
----Required-----
--Mail Comments--
#&& Configuration for using cp for file transfer
#& 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
#&
#&% 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.  



----File Name----
@@ transfer_current.sh
--Revision Info--
# $Id: transfer_current.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ 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.
--Mail Comments--
#&& 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 
#& Example configuration files are included.
#&% 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.



----File Name----
@@ transfer_ftp.config
--Revision Info--
# $Id: transfer_ftp.config,v 1.1 2023/03/27 21:26:36 root Exp $
----Required-----
--Mail Comments--
#&& Configuration for ftp file transfer
#& 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
#&
#&% While this file requires a username and password, this can be an 
#&% anonymous or selected username with limited access.



----File Name----
@@ transfer_pull.config
--Revision Info--
# $Id: transfer_pull.config,v 1.1 2023/03/27 21:26:36 root Exp $
----Required-----
--Mail Comments--
#&& Configuration for using scp pull to pull data from several servers
#& 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)
#&
#&% pull can be used if you are using a shared directory that each computer 
#&% computer is pulling data into.  



----File Name----
@@ transfer_pull.list
--Revision Info--
#  $Id: transfer_pull.list,v 1.1 2023/03/27 21:26:36 root Exp $
----Required-----
--Mail Comments--
#&& 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.    ***



----File Name----
@@ transfer_rcp.config
--Revision Info--
# $Id: transfer_rcp.config,v 1.1 2023/03/27 21:26:36 root Exp $
----Required-----
--Mail Comments--
#&& Configuration for rcp file transfer.
#& 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
#&
#&% rcp must be set up for use by the system administrator
#&% The primary set up file is /etc/hosts.equiv on the receiving computer 



----File Name----
@@ transfer_scp.config
--Revision Info--
# $Id: transfer_scp.config,v 1.1 2023/03/27 21:26:36 root Exp $
----Required-----
--Mail Comments--
#&& Configuration for scp file transfer.
#& 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
#&% scp must be set up for use by the system administrator
#&% unless key authentication is set up, a password will be required. 



----File Name----
@@ transfer_script.info
--Revision Info--
# $Id: transfer_script.info,v 1.1 2023/04/06 15:25:52 root Exp root $
----Required-----
--Mail Comments--
#&& 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.
#& 



----File Name----
@@ transfer_script.sh
--Revision Info--
# $Id: transfer_script.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ 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.
--Mail Comments--
#&& 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 
#& Example configuration files are included.
#&% 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.



----File Name----
@@ transfer_test.sh
--Revision Info--
# $Id: transfer_test.sh,v 1.1 2023/03/27 16:07:05 root Exp $ 
----Required-----
--Mail Comments--
#&& 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
#& 



----File Name----
@@ transfer_topas.sh
--Revision Info--
# $Id: transfer_topas.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
#&@ 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.
--Mail Comments--
#&& 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 
#& Example configuration files are included.
#&% 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.



----File Name----
@@ windows_batch_files.tar.gz
--Revision Info--
----Required-----
--Mail Comments--



----File Name----
@@ windows_batch_files.tar.gz.info
--Revision Info--
# $Id: windows_batch_files.tar.gz.info,v 1.1 2023/03/27 21:27:45 root Exp $
----Required-----
--Mail Comments--
#&& 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
#&&



----File Name----
@@ z_2_gz.sh
--Revision Info--
# $Id: z_2_gz.sh,v 1.1 2023/03/27 16:07:05 root Exp $
----Required-----
--Mail Comments--
#&& 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!
#& 



