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-f...
Part 2 link:- https://community.sap.com/t5/technology-blogs-by-members/part-2-sap-basis-os-support-on-suse-linux-f...
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
/usr/sap/<SID>/SYS/exe/run/sappfpar check pf=<profile file name> | more
cdpro
cdexe
sapcontrol -nr <instance number> -function GetProcessList
msmon pf=<SID_DVEBMGS02_hostname> file
cdtrace
Common working shortcuts on linux
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |