You can easily check you SAP HANA system’s status on Linux system via “sapcontrol” command…To do this “GetSystemInstanceList” and
“GetProcessList” switchs are enough…
- To get “Hostname” , “Instance No” , “HTTP Port” , “HTTPS Port” , “Start Priority” , ” Features” , ” Display Status” informations, execute the following “sapcontrol” command on your system ;
sapcontrol -nr <System Number> -function GetSystemInstanceList
Example ;
- To get “Process List” , “Description” , “Display Status” , “Text Status” , “Start Time” , “Elapsed Time” , “PID” informations, execute the following “sapcontrol” command on your system ;
sapcontrol -nr <System Number> -function GetProcessList | \ awk -F”,” ‘{printf “%20s %20s %10s %10s %23s %15s %10s\n”,$1, $2, $3, $4, $5, $6, $7 }’
Example ;
Another option which filter first 3 lines…
./sapcontrol -nr -function GetProcessList | awk ‘FNR > 3′ | awk -F”,” ‘{printf “%20s %20s %10s %10s %23s %15s %10s\n”,$1, $2, $3, $4, $5, $6, $7 }’