sapcontrol – FAIL: NIECONN_REFUSED (Connection refused) – UNIX,Linux

You are getting below error message with sapcontrol command line while performing the startup / status check in the UNIX or Linux environment.

##ERROR 1
sapcontrol -nr 00 -function Start

Start
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

##ERROR 2
sapcontrol -nr 00 -host HOSTNAME -function GetInstanceProperties

GetInstanceProperties
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

Solution

  • Login to the operating system as sidadm.
  • Check the sapstartsrv process. Kill the process, if it’s running.
  • Go to cdexe (kernel directory) and execute below command.
sapstartsrv pf=/sapmnt/SID/profile/INSTANCE-PROFILE -D

* SID = System ID
* INSTANCE-PROFILE = Your SAP instance profile
  • To verify you can execute the instance properties command
sapcontrol -nr XX -host HOSTNAME -function GetInstanceProperties

* XX = Instance Number
* HOSTNAME = Your server hostname

Note

  • 1916333 – “FAIL: NIECONN_REFUSED” sapcontrol error due to agent.lock file

You May Also Like

Leave a Reply?