retire-dcremove

retire_dcremove

 * OBSELETE** - updated and incorporated into MASTER Retirement Scripts

code format="bash"
 * 1) !/bin/bash

PATH=/usr/tools/bin:/usr/bin:$PATH

FQHOST=$1 if [ -z $1 ] ; then echo "Usage: `basename $0` " >&2 exit 1 fi

disposition=$2 if [ -z $2 ] ; then echo "Usage: `basename $0` " >&2 exit 1 fi


 * 1) Pull info from Hostedit

SHOST=`echo $FQHOST | tr "." " " | awk '{print $1}'` DOMAIN=`echo $FQHOST | tr "." " " | awk '{print $2"."$3"."$4}'`

URL="" wget -q -O /tmp/$FQHOST $URL

business_group=`cat /tmp/$FQHOST | sed -e :a -e 's/<[^>]*>//g;/ esac

echo "

Please answer as many of the following questions as possible:

Choose one of the following: (Note: UPPER CASE)
 * Reminder* Please indicate Value Cycle in Custom Field One.

$SUPPORT

Thanks.

PLEASE DO NOT COMBINE CHANGES FOR 22/5 AND 141/2 ON SAME REQUEST. (EXAMPLE: DCREMOVE FOR 2 SERVERS AT 22/5 AND 1 SERVER AT 141/2 ON SAME CR)  REQUEST WILL BE NOT BE ACCEPTED.

Removal Process: The Platform group must power off all devices associated with the removal before facilities can complete this request.

Please complete all line items or the request will be returned to Requestor:

Process the cable removal for the following:

1. Device Name: $FQHOST

2. Which Data Center location (22/5, 141/2) `cat /tmp/$FQHOST | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' | grep -i datacenter`

3. Requester Contact Information: Name Office # Pager # Cell #,

4. Special information important to this request:

5. IP Address(s) to be removed: `nslookup $FQHOST | grep Address | tail -1 | awk '{print $2}'`

6. Final Disposition of Equipment: (choose one): Rebuild (Must enter new server name here)

`echo $disposition | tr '[:lower:]' '[:upper:]'`

-ALL QUESTIONS BELOW TO BE COMPLETED BY FACILITIES-

1. Please enter specific device location using new Grid pattern (in 22/5, use Column):

2. Cable type Being Removed (Ethernet, Rib, Terminal server, Fiber, Etc.):

3. Total number of cables being removed:

4. Cable Label Information for cables to be removed:

Ethernet     Switch __________ Slot _______  Port _______

Rib             Switch __________  Slot _______  Port _______

Terminal server  Name __________    Port _______

Fiber        Name __________    Port _______

Hub         Name __________    Port _______

Modem Phone Number: ___________

5. Number of power circuits to be removed.

6. Circuit ID(s)

7. 5. Special information important to this request:

- ";

code