Hi friend! Now I’m came with new Article for commands which are related to Linux server. Especially for, to manage SAP ERP/S4 with HANA Data base, which are exist in Linux server, whether it is SUSE or Redhat platform.
Here, I’m providing some commands and their description. For that you can use any one of the tools like Putty or Gnome or XTerm terminals (VNC) etc.
Commands & Description :
- 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 Data base.
- HDB start or ./HDB start
It is used to start the Hana data base. To use this command, you need to login to the users as <db_sid>adm.
- stopsap r3
It same like as above. But it used to stop the all sap application servers except DB.
- HDB stop or ./HDB stop
To stop the Hana DB.
- df -h
File system monitor.
Current running processes(os level), memory , swap and cache … etc monitoring purpose.
- free -h or free -m
Memory consumption Analysis.
- cat /proc/cpuinfo.
Complete OS processes information.
- sar 1 1000
System Idle % statistics.
- chmod -R <permission number>
To provide the requuired permissions.
To jump directly into profiles directory.
- ls -ltr or ll
In details view & also shows the respective permissions.
It will show only files names.
Shows current directory/path.
- cd /
Move back to root directory.
- cd ..
Oe step back of directory.
To make a new directory.
To remove a file.
- rm *.*
To remove all files at a time in the specific path.
- more <file name>
To know more about file or file information.
Shows the existing environmental variables.
- export <environment variable>
To set the environmental variable as temporarily.
- yast or yast2
Linux system controll panel or All system settings.
To start the VNC as manually.
To set the VNC password.
- service vnc status
To check the VNC-services.
- ps -aef | grep vnc
Shows the current running VNC-processes.
- pkill vnc
To terminates current running all vnc-processes.
- ps -ef|grep <PID>
To know the status of specific work process.
- kill -9 <PID>
To kill the specific work process.
- rm -rf < dir of tmp folder>
To delete a folder.
- java -version
To know existing Java version.
- sapcontrol -nr <nn> -function GetProcessList
- ps -ef | grep <SID> | grep sapstartsrv
- tail -100 <file_name>
- fuser <port>/tcp
- fuser -k <port>/tcp
- netstat -anp| grep <port>
- netstat -ntlp
- ls -la | grep <file_name/dir>
- cat <file> | less
- cat <file> | grep <file>
- env | grep <parameter>
- du -sh <file name>
- du -sh *
- ip r
- uname -a
- lsb_release -a
- sudo su –
- cat /etc/Suse-release
- cat /etc/os-release
- rpm -qa
- /usr/sap/<SID>/SYS/exe/run/sappfpar check pf=/usr/sap/<SID>/SYS/profile/<SID>_D<nn>_host nr=<nn> name=<SID> | more —> with <SID>adm
- tp cleanbuffer <SID> pf=/usr/sap/trans/bin/TP_DOMAIN_<SID>.PFL —> with <SID>adm user.
Related Articles :
- Some Tricks/shortcuts for SAP consultants, those are makes your work easy
- How to check, If SAP instance is not getting start/up in Linux server – disp+work dispatcher IGS Watchdog Gateway ICM
“I hope it is helpful to you. If you like this Article, Hit me with Facebook Like button or/and share your buddies. If you have any queries, just drop a comment as below”