ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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

lvntest000915.bpc.broadcom.net: Creating installation log: LOGS_20220316/lvntest000915.bpc.broadcom.net.03.38
lvntest000915.bpc.broadcom.net: Starting Test
lvntest000915.bpc.broadcom.net: SPC-INT-20074: Insufficient privileges on lvntest000915.bpc.broadcom.net.
lvntest000915.bpc.broadcom.net:
lvntest000915.bpc.broadcom.net: 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.
lvntest000915.bpc.broadcom.net: Test complete
All tests complete

 

Cause

Permissions issue with Sudoers

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

 

Environment

Release : 21.2

Component : SPECTRUM INSTALLATION

Resolution

Check sudoers file and ensure that root is not given at below line.

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

If it is given then ensure the line reflect as below
spectrum lvntest000915 = /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 lvntest000915 = /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=lvntest000915.bpc.broadcom.net
install_owner=spectrum
main_loc_serv=lvntest000915.bpc.broadcom.net
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
lvntest000915 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