Skip to content

Instantly share code, notes, and snippets.

View earnhardt3rd's full-sized avatar

frank.earnhardt earnhardt3rd

View GitHub Profile
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_ROOTS_OLD();}
1;
sub _ROOTS_OLD {
my $input = shift || "";
print " _ROOTS($input)\n" if $DEBUG > 0;
if (uc($input) eq "NOW") {$input = &getDate() . "-" . &getTime();}
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_ROBO();}
1;
sub _ROBO {
my $src = shift || "";
my $usr = shift || "";
my $pas = shift || "";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_RMBIN();}
1;
sub _RMBIN {
my $binFile = $_[0];
$binFile =~ s/-_-.*//g;
$binFile = $UBIN . $SLASH . $binFile;
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_RFC_REVIEW();}
1;
sub _RFC_REVIEW {
my $REVIEW_PAK = shift || "";
my $REVIEW_TYP = shift || "";
my $PAK_FILENM = shift || "";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_RFC_REPORT();}
1;
sub _RFC_REPORT {
my $YR = &getDate("YYYY");
RFC_RPT:
chdir $PAK;
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_RFC();}
1;
sub _RFC {
my $PACKAGE = shift || "";
my $rfcTitle = " ***************************************\n PDM_RFC PACKAGE DIRECTORY SELECTION\n ***************************************";
my $pakDir="";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_REPLACE_STRING_IN_FILE();}
1;
sub _REPLACE_STRING_IN_FILE {
my $rFile = shift || ""; # File to replace values
my $rTAG = shift || ""; # Replace Tag such as PACKAGE
my $oVAL = shift || ""; # Old Value to match
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_RENPAK();}
1;
sub _RENPAK {
my $INPUT = shift || "";
print " _RENPAK($INPUT)\n" if $DEBUG > 0;
my $OLD="";
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_REFRESH_TOOL();}
1;
sub _REFRESH_TOOL {
my $overRide = shift || "";
my $PRE_DEBUG="";
if ($DEBUG > 1) {
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_REBOOT_SERVER_HELP();}
1;
sub _REBOOT_SERVER_HELP {
my $HelpMsg = " PDM_REBOOT \n";
$HelpMsg .= " ----------- \n";
$HelpMsg .= " In summary: this will build the command to allow you to remotely reboot servers in a consistant and repeatable manner \n";