DOWNLOAD:
The ‘um_cleanup’ script that comes with ITM6 Universal Agent I’m convinced was written by an intern or co-op who just learned the basics of scripting.
I “rewrote” the whole darn thing with the following comments and syntax:
um_cleanup_jds.ksh -h
USAGE: um_cleanup_jds.ksh [UA|CMS|CNPS|ALL]
um_cleanup_jds.ksh -f
You need only supply a single arg - the component or force
where
-f is only required if NO ARGS are supplied
no args assumes ALL and prompts unless '-f'
This is a cleaned up version of the 'um_cleanup' script provided
with ITM6.x. It'll figure out the variables as a half-way decentprogram should.
#############################################################################
# Modified by Jim Sander : jimsander@jdsmedia.net
# Date: 03.20.09
# Laziest damn script fix up
# - there's no reason why somebody in the automation business
# needs to be pluggin in specific variables for an already 'shotgun'
# approach.
# - Added simple iterative loops to run down every friggin
# working path
# - The ONLY required input value should be the 'CLEANOPT'
# and it should take a list
# - no args assumes 'ALL' and prompt or force option
# - take an individual arg
# - TEMSNAME is only used on a TEMS (so why do they expect you to do
# provide it on every component
#############################################################################


