After upgrade to CommandCentral Storage (CCS) 5.0 - The 4.x users upgraded to 5.x or some of the 5.x users cannot perform operations due to missing domain type in 5.x authorization.xml.

Problem

After upgrade to CommandCentral Storage (CCS) 5.0 - The 4.x users upgraded to 5.x or some of the 5.x users cannot perform operations due to missing domain type in 5.x authorization.xml.

Solution

Solution:

The script can be used to add the missing domain type for the users in 5.x authorization.xml after performing the upgrade or if there are users created with missing domain type in 5.x.

Steps to be followed for executing the updatedomaintype script for both Windows And Solaris Machine

Note: Please note that instructions given are with respect to default path installation, if you have not installed the CCStorage in default path, please change the path accordingly both while following the below steps and also in the perl script being used.  The path has been added as a variable at the beginning of the script which can be easily modified if CCStorage has been installed in a non-default location.  Please change the below mentioned variables in the perl script to include the non-default path location:

Solaris:
In updatedomaintype-sol.pl.
AT_installdir = "/opt/VRTSccs/VRTShal/bin/vssat"
authorization_bkp = "/var/VRTSccs/data/VRTSccstw/authorization_bkp.xml"
authorization = "/var/VRTSccs/data/VRTSccstw/authorization.xml"
vssatOutput = "/tmp/vssatOutput.tmp"
logfile = "/tmp/logfile.tmp"
In UpdateHalTable-sol.pl:
exe = "/opt/VRTSccs/VRTShal/bin/vssat"
halexe = "/opt/VRTSccs/VRTShal/bin/halsecurity"
halOutput = "/tmp/halOutput.tmp"
vssatOutput = "/tmp/vssatOutput.tmp"
logfile = "/tmp/logfile_hal.tmp"
       
Windows:
In updatedomaintype-win.pl:
AT_installdir = "cd C:\\Program Files\\VERITAS\\CommandCentral Storage\\HAL\\bin\\"
authorization_bkp = "C:\\Program Files\\VERITAS\\CommandCentral Storage Data\\Data\\Web Engine\\authorization_bkp.xml"
authorization = "C:\\Program Files\\VERITAS\\CommandCentral Storage Data\\Data\\Web Engine\\authorization.xml"
vssatOutput = "C:\\vssatOutput.tmp"
logfile = "C:\\logfile.tmp"
In UpdateHalTable-win.pl:
halOutput = "C:\\halOutput.tmp"
vssatOutput = "C:\\vssatOutput.tmp"
logfile = "C:\\logfile_hal.tmp"
     

Step 1: Download, unzip/untar the attached file PostUpgradeDomainType.zip file to a temp directory to get updatedomaintype-win.pl,updatedomaintype-sol.pl,UpdateHALTable-win.pl,UpdateHALTable-sol.pl and the ReadMe file.

Step 2. stop Web Engine service
   For Windows:
1. Stop the Veritas Web Engine service (ControlPanel - Services)
   For Solaris:
1. Go to the directory /opt/VRTSccs/VRTSccsts/bin/
          # cd /opt/VRTSccs/VRTSccsts/bin/
       2. Stop Web Engine service
          # ./vxccs stop gui

****************************************************************************************************
#updatedomaintype-win.pl for Windows machine

Step 1: Rename(backup) the existing "authorization.xml" located at "C:\Program Files\VERITAS\CommandCentral Storage Data\Data\Web Engine" to "authorization_bkp.xml" at the same location.

Note: The script is dependent on the name of backed up file("authorization_bkp.xml").Please ensure that the file has been named exactly as mentioned in Step 1.


Step 2: Open command prompt and point to Veritas Perl location, if the Veritas Perl is not set in the classpath. The Veritas Perl location is "C:\Program Files\VERITAS\CommandCentral Storage\HAL\bin\"
e.g Run the command ---> cd C:\Program Files\VERITAS\CommandCentral Storage\HAL\bin\

Step 3: Execute the perl script updatedomaintype-win.pl which will modify the "authorization_bkp.xml" file and create a new file "authorization.xml" at the same location.
e.g.C:\Program Files\VERITAS\CommandCentral Storage\HAL\bin\>perl "C:\temp\updatedomaintype-win.pl"

Step 4: Execute another perl script "UpdateHALTable-win.pl" which will update the users with missing domain-type in the HAL Table
e.g.C:\Program Files\VERITAS\CommandCentral Storage\HAL\bin\>perl "C:\temp\UpdateHALTable-win.pl"

After the script is executed, the users (without domain type) present in the "authorization_bkp.xml", would be modified and the output would be redirected to a new file called "authorization.xml" which would be created after the 3rd step at the same location as the "authorization_bkp.xml".This newly created "authorization.xml" is the modified file with corrected domain type. The 4th step would ensure that all the modified users in Step 3 are also updated in the HAL Table.
The logfile.tmp, halOutput.tmp and vssatOutput.tmp files would be created by default at "C:\" which can be changed by modifying the location of the same in the script.

*****************************************************************************************************


#updatedomaintype-sol.pl for Solaris machine

Step 1: Rename(backup) the existing "authorization.xml" located at "/var/VRTSccs/data/VRTSccstw/" to "authorization_bkp.xml" at the same location.  Execute the below command:
1) cd /var/VRTSccs/data/VRTSccstw/
2) mv authorization.xml authorization_bkp.xml


Step 2: Extract and copy the script "updatedomaintype-sol.pl" to a temp directory .For example "/temp". Hence the complete path of the script would be "/temp/updatedomaintype-sol.pl".


Step 3: Point to Veritas Perl location, if the Veritas Perl is not set in the classpath. The Veritas Perl location is "/opt/VRTSccs/VRTShal/bin"
e.g Run the command ---> cd /opt/VRTSccs/VRTShal/bin


Step 4: Execute the perl script updatedomaintype-sol.pl which will modify the "authorization_bkp.xml" file and create a new file "authorization.xml" at the same location.
e.g.(root@hostname)->/opt/VRTSperl/bin>perl /temp/updatedomaintype-sol.pl

Step 5: Execute another perl script "UpdateHALTable-sol.pl" which will update the users with missing domain-type in the HAL Table
e.g.(root@hostname)->/opt/VRTSccs/VRTShal/bin>perl /temp/UpdateHALTable-sol.pl

After the script is executed, the users (without domain type) present in the "authorization_bkp.xml", would be modified and the output would be redirected to a new file called "authorization.xml" which would be created after the 4th step at the same location as the "authorization_bkp.xml".This newly created "authorization.xml" is the modified file with corrected domain type.  The 5th step would ensure that all the modified users in Step4 are also updated in the HAL Table.
The logfile.tmp, halOutput.tmp and vssatOutput.tmp files would be created by default at "/tmp" which can be changed by modifying the location of the same in the script.



*******************************************************************************************************

Start the Web Engine service
   For Windows-      Start the VRTSwebengine service
   For Solaris-      # cd /opt/VRTSccs/VRTSccsts/bin/
     # ./vxccs start gui
     




Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)