search cancel

Spectrum NetOps 20.2.7, 10.4.3 - Windows Server 2019 -- in bash, processd.pl does nothing

book

Article ID: 216511

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

 

Spectrum NetOps 20.2.7,  10.4.3.0.21, nothing outputs in Bash window when running ./processd.pl stop or ./processd.pl start. The service does not stop or start. 

It does work to use processd.exe from just a command window

 

 

 

Environment

Release : 20.2

Component : Spectrum Core / SpectroSERVER

Cause

10.4.3.0.21 version of processd.pl is missing IF statement checking for Operating System. This will cause Windows Bash to try to execute "systemctl" command which does not exist in Windows, and hence the script does not run. 

Resolution

This is fixed in Spectrum 10.4.3.1.17, NetOps 20.2.10

A repaired copy of process.pl is attached to this document. See attachment below. 

You can also replace the "if else" statement with the following: 

# Pass appropriate argument to processd
if(-x $processd_exe)
{
   if( ($os eq "solaris") || ($os eq "linux") )
   {

        if ( $< != 0 )
        {
            @command = ("$non_root_system_cmd $task processd");
            exec(@command);
        }
        else
        {
            @command = ("$system_cmd $task processd");
            exec(@command);
        }
   }
   else
   {
        @command = ("$processd_exe --$task");
        exec(@command);
   }
}
else
{
    print "Unable to execute the application $processd_exe --$task!\n";
    exit -1;
}

Attachments

1622740404412__processd.tar get_app