Setting up TCS files
      
		
		
			Check for command files
		
			The following files should have been copied to SYS$MANAGER during 
			VMS customisation:
		
			- CREATE_SYSTEM_ACCS.COM
- CREATE_USER_ACCS.COM
- CREATE_GEN_ACCS.COM
- CREATE_STANDARD_DIRS.COM
On a development machine, the following file should also have been 
		copied:
		
		
			Create Users
		
		
			- SET DEF SYS$SYSTEM
- @SYS$MANAGER:CREATE_SYSTEM_ACCS
- @SYS$MANAGER:CREATE_USER_ACCS
- @SYS$MANAGER:CREATE_GEN_ACCS
			Create top-level directories
		
			- SET DEF SYS$SYSDEVICE:[000000]
- @SYS$MANAGER:CREATE_STANDARD_DIRS
			On development machine only:
		
			- @SYS$MANAGER:CREATE_LPAS3_DIRS
			Copy directories
			and files
		
			Make a tape backup of the TCS-related directories on the machine to 
			be replaced. The following instructions assume that the tape drive 
			is MKA500.
		
			- Login to the old machine as SYSTEM
- Copy the file COPY_STANDARD_FILES_TO_TAPE.COM from 
			SYS$SYSDEVICE:[UTILITY.SETUP] on the development machine to 
			SYS$MANAGER (on the machine you are logged-in to).
- Load a DDS-3 tape 
- INIT/OVER=(EXP,ACC,OWN) MKA500: FILES
- @SYS$MANAGER:COPY_STANDARD_FILES_TO_TAPE
- DISMOUNT MKA500:
- Remove the tape and logout
- Login to the new machine as SYSTEM 
- SET DEF SYS$SYSDEVICE:[000000]
- Load the backup tape
- BACKUP MKA500:FILES.BCK [*...]/BY=PARENT
The WHT TCS machine has a separate disk for the autoguider and 
		encoder logs. These should be copied as follows:
		
			- Login to the old machine as SYSTEM
- Load a DDS-3 tape 
- INIT/OVER=(EXP,ACC,OWN) MKA500: LOGS
- BACK DISK$LOGS:[WHT...] MKA500:LOGS.BCK
- DISMOUNT MKA500:
- Remove the tape and logout
- Login to the new machine as SYSTEM 
- SET DEF DISK$LOGS:[000000]
- Load the backup tape
- BACKUP MKA500:LOGS.BCK [*...]/BY=PARENT
- DISMOUNT MKA500:
The development machine contains directories that are not present on 
		the TCS machines, including source and archive directories. If the 
		development machine is being replaced, also copy these directories as 
		follows:
		
			- Login to the old machine as SYSTEM
- Copy the file COPY_LPAS3_FILES_TO_TAPE.COM from 
			SYS$SYSDEVICE:[UTILITY.SETUP] on the development machine to 
			SYS$MANAGER (on the machine you are logged-in to).
- Load a DDS-3 tape 
- INIT/OVER=(EXP,ACC,OWN) MKA500: DEVS
- @SYS$MANAGER:COPY_LPAS3_FILES_TO_TAPE
- DISMOUNT MKA500:
- Remove the tape and logout
- Login to the new machine as SYSTEM 
- SET DEF SYS$SYSDEVICE:[000000]
- Load the backup tape
- BACKUP MKA500:DEVS.BCK [*...]/BY=PARENT
- DISMOUNT MKA500:
Set passwords
		
			- SET DEF SYS$SYSTEM
- RUN AUTHORIZE
- Reset passwords using the following command:
 UAF> MOD/PASSW=xxxxxxxx username
- Use the existing passwords for the following accounts, INT_LOGIN, 
			JKT_LOGIN, WHT_LOGIN, ENGINEER, GENUSER, TCSMGR & SHUT
- Reset passwords for FJG and MPF, then inform FJG and MPF of 
			their passwords and ask them to login and reset them.
- Reset passwords for UCX_SYSLOGD & DUMP, using an obscure string. 
		These accounts are not really login accounts, so the password does not 
		need to be remembered.
- UAF> EXIT
Define and enable the SYSLOG service
      
- @a1:[syslogd.source]define_syslog_service 
- logger
"This is a test message" 
- logger -c s 
- type 
a1:[sys0.ucx_syslogd]syslogd.log 
If SYSLOG started successfully, there should be "This is a test message" on 
the last line of the file.
		Then edit LPASn_STARTUP.COM and uncomment the line: 
		UCX ENABLE SERVICE SYSLOG
		If an error occurs when running the 
		file DEFINE_SYSLOG_SERVICE.COM, or if there is an error message or no 
		test message at the end of SYSLOGD.LOG, check which version of TCPIP is 
		running. Use the command:
		
		on both the old and new machines. 
		Sometimes a new version of TCPIP requires a change to the file 
		DEFINE_SYSLOG_SERVICE.COM, specifically to the /FLAGS qualifier. The 
		FLAGS qualifier should be either /FLAGS=NONE or /FLAGS=NOLISTEN. Change 
		the qualifier from one to the other, then restart SYSLOGD as follows:
		- TCPIP DISABLE SERVICE SYSLOG
- TCPIP ENABLE SERVICE SYSLOG
Start batch jobs
LOG_TIDY.COM runs weekly; it deletes old log files and writes the results to 
SYS$MANAGER:LOG_TIDY.LOG .  
NETBCK.COM runs daily; on Mondays, Wednesdays and Fridays it performs an 
incremental backup of all files, the backup is written to disk on LPVF. The log 
file is written to SYS$MANAGER:NETBCK.LOG and the journal file is written to 
SYS$SYSDEVICE:[DUMP]monyy_LPASn.BJL
		      
- SUBMIT/RESTART/NOPRINT/QUEUE=SYS$BATCH/AFTER="TODAY+n-18" -
 SYS$MANAGER:LOG_TIDY.COM
 where n is number of days
from today
to Saturday, eg. if today is Thursday then n=2.
- 
SUBMIT/RESTART/NOPRINT/QUEUE=SYS$BATCH/AFTER="TOMORROW+08:45" -
 SYS$SYSDEVICE:[DUMP]NETBCK.COM
Install DFU
		The following command will install the version of DFU that was copied 
		from the machine to be replaced. There may be a later version on the 
		Freeware CDs in the HPcampus quarterly distribution.
		
  - PRODUCT INSTALL DFU /SAVE /SOURCE=A1:[DFU] 
	
		
         TCS Software Manager
		
			Last modified: 15 May 2006