retire-notification-cr

retire_notification_cr

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

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

export PATH="/usr/sbin:/usr/ccs/bin:/usr/bin:/usr/lib:$PATH:/etc:/usr/platform/$(/bin/uname -m)/sbin:/usr/tools/bin:/usr/bin:~/.bin"

set DAYS Sat Sun Mon Tue Wed Thu Fri Sat set MONTHS Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec DAY=$((`date +%d`)) MONTH=$((`date +%m` +1)) YEAR=`date +%Y` NDAY=`date +%u` if [ $MONTH -eq "13" ] then MONTH=1 set `cal $MONTH $YEAR` shift $(($# - 1)) DAY=$1 fi TMONTH=${MONTHS[MONTH]}
 * 1) Calculate the Anticipated retirement date

business_group=`cat  | grep $(hostname) | awk -F, '{print $4}'`
 * 1) Get Current Business Group

case "$business_group" in        esac

/usr/platform/`uname -m`/sbin/prtdiag -v > /tmp/prtdiag.shive
 * 1) Find answers

echo " The purpose of this CR is to document Unix server retirement requests and notify the Capacity Planning team when a server is being retired. Please fill in the following information and assign this CR to Craig Storm.

Current Business Area of server being retired: $SUPPORT

Anticipated retirement date: $MONTH/$DAY/$YEAR

Hostname of server being retired: `hostname`

OS: `uname`

OS Version: `uname -r`

Server Model: `uname -i`

Number of CPUs: `psrinfo -v | grep MHz | awk '{print $6}' | wc -l`

CPU MHz (Run MHz): `psrinfo -v | grep MHz | awk '{print $6}' | uniq`

Amount of Memory: `cat /tmp/prtdiag.shive | grep "Memory size:" | awk '{print $3}'`

Size and number of internal disks: `echo | format | grep SUN.*G | awk '{print $3}' | wc -l` Total `echo | format | grep SUN.*G | awk '{print $3}' | uniq -c`

Number of HBA ports: `cat /tmp/prtdiag.shive | grep lpfc | wc -l`

Number of Network Interface ports: `ifconfig -a | grep -v ^lo | grep "^.*: " | wc -l`

If this server is clustered and is being redeployed as a standalone server, list the VCS license key:

`if [ -e /etc/llthosts ]; then /opt/VRTS/bin/vxlicrep | /usr/sfw/bin/ggrep -B 1 "  Product Name                        = VERITAS Cluster Server" | awk '{print $4}' | head -1 fi`

Has this server already been assigned for redeployment: Yes ____ No _x_

If yes, please identify the: Business area: Project name: Customer name:

=
====================== If the server will be sent to salvage, please do the following:

List the Veritas License Keys to be reclaimed:

1. Make sure the server is powered down. 2. Make sure that non-SAN disk drives have been removed and follow the disk drive destruction process to properly dispose of them. 3. Make sure that the server has been tagged for removal. 4. Remove the server from the rack or shelve and take it to the designated salvage area in the data center. 5. Make sure that the server has been physically moved to salvage. "; code