Decommission A Sun Server

This document has been created in a step-by-step fashion, however I have put in headings for each section so the reader may skip to the relevant parts as required.

Removing Flararchive from Client

If the server is been backed up using sun flasharchive then this will need to be removed as below:

1. Comment out crontab entry on the client server from the root crontab by doing a crontab -e, the entry will look as follows:

00 16 * * 0 /opt/SUNWjet/SB/scripts/full_flash_archive_nfs.sh >/dev/null 2>&1

2. Then unmount the flasharchive directory

bash-3.00# umount /opt/SUNWjet

Removing Tivoli Monitoring from Client

Next, we need to remove tivoli monitoring from the cleint, inorder to find where the installation lives we need to start the agent or be able to grep it when doing a ps -ef as follows:

bash-3.00# cd /opt/IBM/ITM/bin

bash-3.00# ./itmcmd agent start ux

bash-3.00 #ps -ef | grep ITM
  root  1278     1   1 15:03:43 pts/1       0:02 /opt/IBM/ITM/sol296/ux/bin/kuxagent
  root  2029   964   0 15:03:56 pts/1       0:00 grep ITM
  root  1281  1278   1 15:03:45 pts/1       0:01 /opt/IBM/ITM/sol296/ux/bin/stat_daemon 10
  root  1340  1281   0 15:03:45 pts/1       0:00 /opt/IBM/ITM/sol296/ux/bin/ifstat 30 8
  root  1362  1281   0 15:03:45 pts/1       0:00 /opt/IBM/ITM/sol296/ux/bin/nfs_stat SOL 30 11
  root  1353  1281   0 15:03:45 pts/1       0:00 /opt/IBM/ITM/sol296/ux/bin/kuxdstat 9 30
  root  1323  1281   0 15:03:45 pts/1       0:00 /opt/IBM/ITM/sol296/ux/bin/kux_vmstat 30 7
bash-3.00# ./itmcmd agent stop ux
Stopping Watchdog process...
Watchdog process was stopped.
Stopping Monitoring Agent for UNIX OS ...
Product Monitoring Agent for UNIX OS was stopped gracefully.
Agent stopped...
bash-3.00# ./uninstall.sh ux sol296

*********** Friday,  1 October 2010 15:05:20 BST ******************
User      : root         Group: root other bin sys adm uucp mail tty lp nuucp daemon
Host name : srv16ap      Installer Lvl:06.22.01.00
ITM home  : /opt/IBM/ITM
***********************************************************

Processing pre-uninstall operations...
Processing pre-uninstall complete.

removed from /opt/IBM/ITM ...
IBM Tivoli Monitoring Shared Libraries for platform Solaris R8 (64 bit)
removed from /opt/IBM/ITM ...
Tivoli Enterprise Services User Interface for platform Solaris R8 (64 bit)
removed from /opt/IBM/ITM ...
Tivoli Enterprise-supplied JRE for platform Solaris R8 (32 bit)
removed from /opt/IBM/ITM ...
Monitoring Agent for UNIX OS for platform Solaris R9 (64 bit)

Need to remove from tivoli monitoring server - (add more info)

Remove tsm schedules

login to dsmadmc

tsm: TSM15>q sched unix_dm srv06ap*

Domain           *     Schedule Name        Action     Start Date/Time          Duration     Period     Day
------------     -     ----------------     ------     --------------------     --------     ------     ---
UNIX_DM                srv06AP_OS           CMD        16/04/2008 19:00:00          2 H        1 D      Any


tsm: TSM15>tsm15: del sched unix_dm srv06ap_os



tsm: TSM15>tsm11:q sched unix_dm srv06ap*
ANR1699I Resolved TSM11 to 1 server(s) - issuing command Q SCHED unix_dm srv06ap*  against server(s).
ANR1687I Output for command 'Q SCHED unix_dm srv06ap* ' issued against server TSM11 follows:
ANR2034E QUERY SCHEDULE: No match found using this criteria.
ANR1688I Output for command 'Q SCHED unix_dm srv06ap* ' issued against server TSM11 completed.
ANR1695W Server TSM11 processed command 'Q SCHED unix_dm srv06ap* ' but completed with warnings.
ANR1697I Command 'Q SCHED unix_dm srv06ap* ' processed by 1 server(s):  0 successful, 1 with warnings, and 0 with   errors.
ANS8001I Return code 11.
shutdown -i 5 -g0 -y

comment out of /etc/hosts on srv4ap or nim servers

#10.84.1.247    srv06ap b0006 # SUN first App \\
#10.84.1.237    srv16ap b0016 # SUN first App \\

remove from flash archive details

edit file listed from:-

crontab -l 
cd /opt/SUNWjet/SB/scripts/flarchive_file_check.txt 

on srv04dp.

This will update the weekly email to ensure it is not noted as being missed.

Move old flar archives to decommissioned directory /jumpstart/flarchive/decomissioned

 
solaris/decomissionserver.txt · Last modified: 21/03/2023 21:33 by andrew