The Script Function SYS_SNMP_ACTIVE returns 'Y' although no connection is available to the SNMP-Agent

book

Article ID: 87607

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine AUTOMIC WORKLOAD AUTOMATION

Issue/Introduction

Error Message :
N/A

In a script, the script function "SYS_SNMP_ACTIVE" returns a "Y" although the SNMP Agent is not running.

This behavior is as designed since the script element is not checking for an active SNMP connection, instead it is checking the SNMP connection to AE using the parameter that is defined in the UCSRV.INI file.

Example
According to our documentation:

SYS_SNMP_ACTIVE Return codes 
"Y" - The SNMP connection of AE is active 
"N" - The SNMP connection of AE is inactive 

And the snmp parameter can be set in the UCSRV.INI file with the following values:

"0" = No SNMP connection. 
"1" = SNMP connection is active. 
"2" = SNMP connection is active. SNMP Traps are additionally logged in the Windows Event Viewer 

If the parameter snmp=0 is set in the UCSRV.INI file, the script element will return SYS_SNMP_ACTIVE='N'.

References

Automation Engine Script Guide > Ordered by Function> System Conditions and Settings > SYS_SNMP_ACTIVE

Administration Guide > Configuration > Structure of the Configuration Files > Structure of the INI file
 

Cause

Cause type:
By design
Root Cause: N/A

Environment

OS Version: N/A

Resolution

This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Fix Status: No Fix

Fix Version(s):
N/A

Additional Information

Workaround :
N/A