DX Netops Spectrum 21.2 upgrade using silent method
search cancel

DX Netops Spectrum 21.2 upgrade using silent method

book

Article ID: 237020

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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

 

Environment

Release : 21.2

Component : SPECTRUM INSTALLATION

Cause

Permissions issue with Sudoers

spectrum spectrumserver = (root) NOPASSWD:/opt/spectrum/CA/SRAdmin/sradmin.exe

 

Resolution

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)

 

Additional Information

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