Symptoms
Unable to send autosupport with autosupport command.
Cause
Autosupport send command results in the following error:
#autosupport send
failed to open log file "/opt/connectemc/logs/rscApiLog.log", Error:2 No such file or directorymsg:2016-01-28T12:02:25 0 Info main() Version 1.0 Start DataDomain EMA alert processingfailed to open log file "/opt/connectemc/logs/rscApiLog.log", Error:2 No such file or directorymsg:2016-01-28T12:02:25 0 Info main() Version 1.0 Initialized identityfailed to open log file "/opt/connectemc/logs/rscApiLog.log", Error:2 No such file or directorymsg:2016-01-28T12:02:25 0 Info main() Version 1.0 Initialized connectionfailed to open log file "/opt/connectemc/logs/rscApiLog.log", Error:2 No such file or directorymsg:2016-01-28T12:02:25 0 Info main() Version 1.0 Initialized eventfailed to open log file "/opt/connectemc/logs/rscApiLog.log", Error:2 No such file or directorymsg:2016-01-28T12:02:25 201 Debug EMAAPI3.1.0-1 RSCEventAdd() Routine Entrance. autosupport
failed to open log file "/opt/connectemc/logs/rscApiLog.log", Error:2 No such file or directorymsg:2016-01-28T12:02:25 201 Info EMAAPI3.1.0-1 EMATransEventAndRawData() Routine Entrance. /opt/connectemc/poll/RSC_CKMXXXXXXXXXXX_012816_120225305.xml
Resolution
From ASUP, Confirm ConnectEMC is enabled and running:
config_master.connectemc.enable = trueconfig_master.connectemc.ipaddress_gateway = 10.XX.XXX.30config_master.connectemc.notification = noneconfig_master.connectemc.transport_type = ESRS
Connectemc Configuration------------------------ConnectEMC is not enabled.
Connectemc Status-----------------ConnectEMC is enabled but not running.
Check the content of folder /opt/connectemc on the system. It should contain something similar to the below:
-rw-r--r-- 1 root root 3133 Feb 9 14:52 ConnectEMC.ini-rw-r--r-- 1 root root 3133 Feb 9 14:52 ConnectEMC.ini.old-rw-r--r-- 1 root root 962 Feb 9 14:52 ConnectEMC_config.xml-rw-r--r-- 1 root root 962 Feb 9 14:52 ConnectEMC_config.xml.olddrwxr-xr-x 2 root root 4096 Feb 9 00:27 bindrwxr-xr-x 2 root root 4096 Feb 9 00:27 certs-rwxr-xr-x 1 root root 19193054 Jan 5 2012 connectemc-rwxr-xr-x 1 root root 737 Jan 5 2012 emcfepbsafepub.key-rwxr-xr-x 1 root root 320 Jan 5 2012 emcfeppub.keydrwxr-xr-x 2 root root 4096 Feb 9 00:27 lib
If ConnectEMC is not enabled, if the ConnectEMC is enabled but not running, then the error message is expected on Autosupport send output.