{"id":404,"date":"2016-05-09T11:17:44","date_gmt":"2016-05-09T05:47:44","guid":{"rendered":"https:\/\/adilfahim.com\/myblog\/?p=404"},"modified":"2016-05-09T13:41:07","modified_gmt":"2016-05-09T08:11:07","slug":"sapctl-commands-for-high-availability-environment","status":"publish","type":"post","link":"https:\/\/adilfahim.com\/myblog\/sapctl-commands-for-high-availability-environment\/","title":{"rendered":"SAPCTL Commands for High Availability Environment"},"content":{"rendered":"<p>In high availability enviroment for starting\/stopping ENQ\/Replication, you need to work through SAPCTL commands. SAPCTL provide multiple commands to start service individually or all in one go. it also give you feature that during any failover the service will start on another node without any user interruption.<\/p>\n<p>Below are the some example of SAPCTL commands:<\/p>\n<p>(sid)adm) \/usr\/sap\/sapctl\/bin\/sapctl<br \/>\nsapctl version 7.0 Patch 0    Production Copyright 2013 Oracle.  All rights reserved<br \/>\nUSAGE:<br \/>\nsapctl (command) [(object)]  -sapsid (SAP_SID) [options]<br \/>\n        command : start|stop|status|create|remove|relocate<br \/>\n        objects : abapvip|javavip|abapenq|javaenq|abaprep|javarep|abapall|javaall|asinstall|asinstvip|asinst|gwvip|gwinst|wdspvip|wdspinst|all<br \/>\nNOTE:<br \/>\ncreate and remove commands work on all objects only<br \/>\nFor detailed help on each command and object and its options use:<br \/>\n    sapctl (command) -h<\/p>\n<p>Check ENQUEUE\/ERS Service status<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nLogin as (sid)adm<\/p>\n<p>\/usr\/sap\/sapctl\/bin\/Check_Cluster.sh |grep SCS |grep -v startsrv<\/p>\n<p>\/usr\/sap\/sapctl\/bin\/Check_Cluster.sh |grep rep<\/p>\n<p>Sample output:<br \/>\n(sid)adm) \/usr\/sap\/sapctl\/bin\/Check_Cluster.sh |grep SCS |grep -v startsrv<br \/>\nsap.SID.ASCS14.abapenq                        ONLINE     ONLINE on (hostname)<br \/>\nsap.SID.ASCS08.abapenq                        ONLINE     ONLINE on (hostname)<br \/>\nsap.SID.SCS09.javaenq                         ONLINE     ONLINE on (hostname)<\/p>\n<p>the above command will show the status of all systems enqueue service started at respective host.<\/p>\n<p>(sid)adm) \/usr\/sap\/sapctl\/bin\/Check_Cluster.sh |grep rep<br \/>\nsap.SID.ERS43.abaprep                         ONLINE     ONLINE on (hostname)<br \/>\nsap.SID.ERS37.abaprep                         ONLINE     ONLINE on (hostname)<br \/>\nsap.SID.ERS38.javarep                         ONLINE     ONLINE on (hostname)<\/p>\n<p>the above command will show the status of all systems replication service started at respective host.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n(A)SCS Status Check <\/p>\n<p>\/usr\/sap\/sapctl\/bin\/sapctl status all -sapsid (SID)<\/p>\n<p>the above command will show the status of single (SID)<\/p>\n<p>(A)SCS Stop\/Start All (ENQ\/ERS)<br \/>\n\/usr\/sap\/sapctl\/bin\/sapctl stop all -sapsid (SID)<br \/>\n\/usr\/sap\/sapctl\/bin\/sapctl start all -sapsid (SID)<\/p>\n<p>the above command will start\/stop all services of particular system including ENQ\/ERS &#038; Message server.<\/p>\n<p>ASCS Stop\/Start ENQ<br \/>\n\/usr\/sap\/sapctl\/bin\/sapctl stop abapenq -sapsid (SID)<br \/>\n\/usr\/sap\/sapctl\/bin\/sapctl start abapenq -sapsid (SID)<\/p>\n<p>ASCS Stop\/Start ERS<br \/>\n\/usr\/sap\/sapctl\/bin\/sapctl stop abaprep -sapsid (SID)<br \/>\n\/usr\/sap\/sapctl\/bin\/sapctl start abaprep -sapsid (SID)<\/p>\n<p>RELOCATE ERS<br \/>\n\/usr\/sap\/sapctl\/bin\/sapctl relocate \u2013sapsid (SID) \u2013abaprep ERS(instance no.) \u2013to (hostname)<\/p>\n<p>the above command will relocate the replication service of particular system to different host.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In high availability enviroment for starting\/stopping ENQ\/Replication, you need to work through SAPCTL commands. SAPCTL provide multiple commands to start service individually or all in one go. it also give you feature that during any failover the service will start on another node without any user interruption. Below are the some example of SAPCTL commands: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[308,307,305,306,187,304],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-sap-updates","tag-abapenq","tag-abaprep","tag-ers","tag-replication","tag-sap","tag-sapctl"],"_links":{"self":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":3,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/posts\/404\/revisions"}],"predecessor-version":[{"id":407,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/posts\/404\/revisions\/407"}],"wp:attachment":[{"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/categories?post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adilfahim.com\/myblog\/wp-json\/wp\/v2\/tags?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}