The ‘sapcontrol’ command doesn’t work at the OS level.
Symtoms
Tried to run a command like ‘sapcontrol -nr 00 -function GetProcessList’ at the OS level, but it returns the following errors:
- FAIL: NIECONN_REFUSED (Connection refused)
- NiRawConnect failed in plugin_fopen()
Solution
- Check the ‘sapstartsrv’ process is in running status.
- Use the following command: ps -ef|grep sapstartsrv.
- There might be dead sapstartsrv processes.
- D00: If you’re unable to run sapcontrol with instance number 00, the D00 process might have terminated.
- ASCS01: If you’re unable to run sapcontrol with instance number 01, the ASCS01 process might have terminated.
- To restart the sapstartsrv process, run the command ‘sapcontrol -nr <xx> -function StartService <SID>’.
References
3028932 – sapcontrol returns NIECONN_REFUSED for a remote instance