PHC --- Account duplication: [V 2005.02.23] FRI, APR 8, 2005, 3:26 PM ACCTDUP is a utility that can be used to 'duplicate' the account structure of MPE accounts/'Account Sets' from one HP3000 host to another. (Private volumes work ONLY in MPE/iX). Only users with 'SM' capability can specify 'Account sets', while users with AM capability are restricted to generate the structure of their specific MPE account. The utility is executed as follows: RUN ACCTDUP[;parm=n][;info='val1;val2;val3;...'] Parm <> 0 AND 'SM' capability invokes the 'CLEANUP' option. (It is retained for backward compatibility reasons). The different 'info' string values are: AUTO - Eliminates some prompts and assigns the default values: Assign Jobname of [GENACCTS] Replace old version [Y] Submit stream file [N]. CLEANUP - Directs the utility to create two additional jobs. 'JGENALL' to stream the generated jobs for ALL selected accounts and 'JCLEANUP' to 'cleanup' the mess. CMUDCSTYLE - Directs the utility to create the UDC related commands in the MPE/V format (without using the 'append parameter of the 'setcatalog' command). This provides a method for generating a 'compact' list of all the UDC files 'set' in a specific account HELP - Prints this information AND terminates. HPSECURITY - Valid on MPE/V machines. Indicates the presence of the Security Monitor software and alters the [new/alt]user command to include 'USERPASS=REQ' if set. 'SETJCW HPSECURITY=1' has the same effect. NEWACCOUNT='MpeAcctName' - Directs the utility to create a jobstream where the account name is replaced by the value of 'MpeAcctName'. Can be used to 'clone' an account's structure with a new name. NODEFAULTS- Directs the utility NOT to include the FILES, CPU, and CONNECT parameters in the job stream, if set to default values. NODIRS - Directs the utility NOT to include any 'posix' directories that may be defined below each selected MPE account (Moving from MPE/iX to MPE/V ?) ROOTDIR - Directs the utility to create an additional job-stream ('ROOTDIRJ') containing all the commands needed to re-create ANY 'posix' directories that are defined below the 'root' directory. It is acted upon, when the requestor has 'SM' capability. UDCJOB - Directs the utility to create the file 'JSETUDCS' which contains a job for each account with set UDCs. Used to set the UDCs after the files are restored. Have used it to 'fix/clean' a corrupted COMMAND.PUB.SYS file. UDCJOBONLY - Directs the utility to ONLY create the JSETUDCS file for the purpose of 'fixing' 'command.pub.sys' DS=HostName - Used to identify a 'remote' machine from which the MPE accounts will be extracted. The user MUST know the MANAGER.SYS passwords for the remote machine. GETHVS - Include any private volume information currently associated with the account, so that they can be used to rebuild it in the destination machine. SYSFILES=nn - For accounts without any 'objects' on the '$SYS' set, reserve 'nn' sectors to allow building posix directories. (MPE/iX requirement). Default = 0 STAGEGROUP='MpeGroupName' - The utility will place its streamfiles in the indicated group. Said group MUST already exist, the user MUST have SM capability, AND the group will NOT be included in the account structure. STAGEINCLUDE - Overrides the default behavior of the utility and will include the 'STAGEGROUP' in the job stream to recreate the account structure. VS=NewVolSet- Generate the needed commands for creating/updating the specified account on the indicated 'NewVolSet'. NOPM - Do NOT use 'Privileged Mode' routine to extract the correct user 'local attributes'. Accept the values as reported by the LISTUSER command. :NOTE: The additional CV & UV capabilities required with the GETHVS & 'VS=' parameters will be 'included/added' in the stream file. If NONE of the account's groups reside in the '$SYS' Volume Set AND 'sysfiles=nn' has NOT been specified then a 'files=0' parameter will be issued for the '$SYS' volume set's entry for the account. If no user with AM & BA capabilities is found, the user XZMGRZX will be created to allow account re-creation. Said user should be removed after ALL duplication tasks are done. ALL stream files generated by this utility are saved with their 'access matrix' set to 'Creator Only' for added security. The 'POSIX' directory related parameters will work correctly as long as the 'absolute directory name' does NOT exceed 254 chars. Paul H. Christidis Raytheon Systems Company (310) 952-4666 Christidis@raytheon.com