We need to upgrade Spectrum 10.4 to version 21.2, current OS is RHEL 7.x and we do not have GUI mode available, and need to upgrade the same via command line (silent)
Below step is giving error
./sdiclinux -h hostfile.txt -p password.txt -test
Error
spectrumserver: Creating installation log: LOGS_20220316/spectrumserver.03.38
spectrumserver: Starting Test
spectrumserver: SPC-INT-20074: Insufficient privileges on spectrumserver.
spectrumserver:
spectrumserver: Spectrum Installation requires either ROOT access, SUDO privileges or Administrator privileges. Please see the Spectrum Installation Guide (Document number 5136) for more information regarding SUDO.
spectrumserver: Test complete
All tests complete
Release : 21.2
Component : SPECTRUM INSTALLATION
Permissions issue with Sudoers
spectrum spectrumserver = (root) NOPASSWD:/opt/spectrum/CA/SRAdmin/sradmin.exe
Check sudoers file and ensure that root is not given at below line.
spectrum spectrumserver = (root) NOPASSWD:/opt/spectrum/CA/SRAdmin/sradmin.exe
If it is given then ensure the line reflect as below
spectrum spectrumserver = /opt/spectrum/CA/SRAdmin/sradmin.exe (<--- correct way)
For silent install below are the steps
1. sudoes file contents of below entries
spectrum ALL=(ALL) NOPASSWD: /usr/bin/systemctl start sradmin.service
spectrum ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart sradmin.service
spectrum ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop sradmin.service
spectrum ALL=(ALL) NOPASSWD: /usr/bin/systemctl enable sradmin.service
spectrum ALL=(ALL) NOPASSWD: /usr/bin/systemctl status sradmin.service
spectrum spectrumserver = /opt/spectrum/CA/SRAdmin/sradmin.exe
2. symbolic link to the sradmin folder:(/opt/spectrum/CA/SRAdmin)
3. Give user permissions to the install folder:
chown -R spectrum:spectrum /opt/spectrum/CA/spectrum
4. Host file contents
remote_host=spectrumserver
install_owner=spectrum
main_loc_serv=spectrumserver
tomcat_port=8080
l_handle=0x100000
huge_landscape_handle=no
ss_install=yes
oc_install=yes
xtn_install=yes
exclude_parts=
install_type=full
locale=en_US
install_dir=/opt/spectrum/CA/spectrum
vcd_path=/opt/sw/sdic
product_name=CA Spectrum
remove_vnmdb_lock=yes
5.Password file contents
spectrumserver spectrum spectrum
Now run the install using below commands.
su spectrum
sudo ./sdiclinux.exe -h host.txt -p pass.txt -test
Once test succeeds then
sudo ./sdiclinux.exe -h host.txt -p pass.txt -accept
Document Link:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/21-2/installing-and-upgrading/fresh-install/sradmin-installation-methods.html#concept.dita_e604bc27adf8ae994571db426fc02e12bcb5a5a7_InstallCASpectruminSilentMode