Part 3:- SAP Basis OS support on SUSE Linux for beginners

Estimated read time 8 min read

As a SAP Basis consultants you are advised to understand the most commonly used Linux commands that are necessary while supporting SAP customers for day to day work. It is very common that basic commands should be handy with SAP Basis consultants.

 

Part 1 link:- https://community.sap.com/t5/technology-blogs-by-members/part-1-sap-basis-os-support-on-suse-linux-for-beginners/ba-p/13651528

Part 2 link:- https://community.sap.com/t5/technology-blogs-by-members/part-2-sap-basis-os-support-on-suse-linux-for-beginners/ba-p/13664041

 

Basic commands

Linux administrator can login with tools like putty or kitty or other applications available in market or allowed by customer, with either root or sidadm. Whereas both the IDs have different rights W.R.T  OS and sap application. ​

Echo command :- echo command in linux is used to display line of text/string that are passed as an argument . This is a built in command that is mostly used in shell scripts and batch files to output status text to the screen or a file.

 

echo $USER

echo $PWD

echo $MAIL

echo $JAVA_PATH

echo $DB2INSTANCE

Echo my name is Vivek Arya

 

 

YAST or YAST2 Command:-

Linux system

control panel or

All system settings

 

 

 

Hostname Command:-

Hostname –I (capital i) :- provides only the ip address of server or all ip addresses on server

 

Hostname :- provides the hostname of the server.

 

 

VERSION CHECKS

 

#java –version

 

 

# more /etc/SUSE-brand

 

 

# more /etc/os-release

 

 

To check which all packages installed (with their versions) on server related to all business specific support

# rpm –qa | more

Click space bar to see

Pagewise details

Click enter bar to see

Linewise details

 

 

System start and stop commands

startsap:- This will work only for <SID>adm user.This will start SAP system as well as database in standard defined sequence. (note the script should be enabled to run both with database details and user credentials)

startsap r3 :-This will work only for <SID>adm user. Your login in to ‘root’ user, then you need switch the user to SAP user as <SID>adm. It will start all sap application servers except existing Database. Please note database should be running to run this command

 

 

stopsap r3 :- This will stop only SAP system.

stopsap :-  This will stop SAP system as well as Database (note the script should be enabled to run both with database details and user credentials)

 

 

The cleanipc command is used to clear the shared memeory occupied by the SAP system. Mostly, this command is used (by <sid>adm user) while restarting an SAP system. So, you stop the system using stopsap, run the cleanipc command to clear the memory and then start the system using startsap.

 

cleanipc 00 remove ( where 00 is the instance ) 

 

 

 

ipcs | grep -l sidadm (to check if application has occupied any memory )

 

DPMON :- This command is used to check the running SAP processes for a particular application by using its profile file. For JAVA system the command used is JSMON with different options to be selected.

 

 

R3trans:- Check connectivity with database.

 

 

SAP Commands to check on SAP systems only

To check the consistency on parameters maintained in profile/Default file(sidadm user):-

/usr/sap/<SID>/SYS/exe/run/sappfpar check pf=<profile file name> | more

To move directly to profile directory (sidadm user):-

cdpro

To move directly to kernel directory (sidadm user):-

cdexe

To check the status of SAP system all process green status(sidadm user):-

sapcontrol -nr <instance number> -function GetProcessList

To check message server status(sidadm user):-

msmon pf=<SID_DVEBMGS02_hostname> file

To move directly to hana logs and traces(hana user):-

cdtrace

 

Common working shortcuts on linux

ctrl+c                                 Halts the current commandctrl+z                                 Stops the current command, resume with fg in the foreground or bg in the backgroundctrl+d                                 Logout the current session, similar to exitctrl+w                                Erases one word in the current linectrl+u                                 Erases the whole linectrl+r                                 Type to bring up a recent command!!                                        Repeats the last commandexit                                    Logout the current session

 

df –h (to check the size allocated/Used/Available and the mount point names for the files systems available on linux server)

 

 

Free Desktop Application used for accessing Linux platform.

Putty                   (Latest Version, available free on Internet)UltraVNC Viewer             (Latest Version, available free on Internet)Mobaexterm     (Latest Version, available free on Internet)Winscp               (For connectivity between Windows and Linux boxes.Latest Version, available free on Internet) 

​ As a SAP Basis consultants you are advised to understand the most commonly used Linux commands that are necessary while supporting SAP customers for day to day work. It is very common that basic commands should be handy with SAP Basis consultants. Part 1 link:- https://community.sap.com/t5/technology-blogs-by-members/part-1-sap-basis-os-support-on-suse-linux-for-beginners/ba-p/13651528Part 2 link:- https://community.sap.com/t5/technology-blogs-by-members/part-2-sap-basis-os-support-on-suse-linux-for-beginners/ba-p/13664041 Basic commandsLinux administrator can login with tools like putty or kitty or other applications available in market or allowed by customer, with either root or sidadm. Whereas both the IDs have different rights W.R.T  OS and sap application. ​​Echo command :- echo command in linux is used to display line of text/string that are passed as an argument . This is a built in command that is mostly used in shell scripts and batch files to output status text to the screen or a file. echo $USERecho $PWDecho $MAILecho $JAVA_PATHecho $DB2INSTANCEEcho my name is Vivek Arya  YAST or YAST2 Command:-Linux systemcontrol panel orAll system settings   Hostname Command:-Hostname –I (capital i) :- provides only the ip address of server or all ip addresses on server Hostname :- provides the hostname of the server.  VERSION CHECKS #java –version  # more /etc/SUSE-brand  # more /etc/os-release  To check which all packages installed (with their versions) on server related to all business specific support# rpm –qa | moreClick space bar to seePagewise detailsClick enter bar to seeLinewise details  System start and stop commandsstartsap:- This will work only for <SID>adm user.This will start SAP system as well as database in standard defined sequence. (note the script should be enabled to run both with database details and user credentials)startsap r3 :-This will work only for <SID>adm user. Your login in to ‘root’ user, then you need switch the user to SAP user as <SID>adm. It will start all sap application servers except existing Database. Please note database should be running to run this command  stopsap r3 :- This will stop only SAP system.stopsap :-  This will stop SAP system as well as Database (note the script should be enabled to run both with database details and user credentials)  The cleanipc command is used to clear the shared memeory occupied by the SAP system. Mostly, this command is used (by <sid>adm user) while restarting an SAP system. So, you stop the system using stopsap, run the cleanipc command to clear the memory and then start the system using startsap. cleanipc 00 remove ( where 00 is the instance )    ipcs | grep -l sidadm (to check if application has occupied any memory ) DPMON :- This command is used to check the running SAP processes for a particular application by using its profile file. For JAVA system the command used is JSMON with different options to be selected.  R3trans:- Check connectivity with database.  SAP Commands to check on SAP systems onlyTo check the consistency on parameters maintained in profile/Default file(sidadm user):-/usr/sap/<SID>/SYS/exe/run/sappfpar check pf=<profile file name> | moreTo move directly to profile directory (sidadm user):-cdproTo move directly to kernel directory (sidadm user):-cdexeTo check the status of SAP system all process green status(sidadm user):-sapcontrol -nr <instance number> -function GetProcessListTo check message server status(sidadm user):-msmon pf=<SID_DVEBMGS02_hostname> fileTo move directly to hana logs and traces(hana user):-cdtrace Common working shortcuts on linuxctrl+c                                 Halts the current commandctrl+z                                 Stops the current command, resume with fg in the foreground or bg in the backgroundctrl+d                                 Logout the current session, similar to exitctrl+w                                Erases one word in the current linectrl+u                                 Erases the whole linectrl+r                                 Type to bring up a recent command!!                                        Repeats the last commandexit                                    Logout the current session df –h (to check the size allocated/Used/Available and the mount point names for the files systems available on linux server)  Free Desktop Application used for accessing Linux platform.Putty                   (Latest Version, available free on Internet)UltraVNC Viewer             (Latest Version, available free on Internet)Mobaexterm     (Latest Version, available free on Internet)Winscp               (For connectivity between Windows and Linux boxes.Latest Version, available free on Internet)   Read More Technology Blogs by Members articles 

#SAP

#SAPTechnologyblog

You May Also Like

More From Author

+ There are no comments

Add yours