Hi brother,
the following commands will help you do it and practice it give rewards....
Copy files one system to another system in network
#mount -t nfs <IPAddress> : /<Source Directory> /<Target Directory>
To Display Clock
#xclock
Check Process Details:
#top
#ps -ef | grep user/process/servicename
Check Memory Size:
#free
Check Disk space:
#df -k (in %)
#df -h (in GB)
Check Subdirectory files
#du /usr
--Linux--
Shutdown
shutdown -h now (Force shutdown 0 sec)
init 0
halt
poweroff
Reboot
shutdown -r now (Force restart 0 sec)
reboot
init 6
Sap Basis In Linux To Mount trans dir
On the development system , do the following as user root
1. vi /etc/exports
add the line
/usr/sap/trans *(rw,sync)
save the file .
Then restart the nfs service as follows:
1. /etc/init.d/nfs restart
On the production do the following as user root
1. mount -t nfs <IP of dev system>:/usr/sap/trans /usr/sap/trans
You can see the trans directory mounted on production from dev.
Mounting in LInux
Show all mounted filesystems
# mount
Mount partition e on the first slice of the primary master IDE hard disk at /usr:
# mount /dev/ad0s1e /usr
Same thing, SCSI disk
# mount /dev/da0s1e /usr
*Unmount /usr
# umount /usr
Mount all filesystems listed in /etc/fstab:
# mount -a
Note that filesystems marked "noauto" in /etc/fstab would not be mounted by the above
command.
http://sureshchowdarysapbasiss.blogspot.com/2013/10/sap-basis-os-level-unix-
commands.html
SAP BASIS OS Level (UNIX) Commands
Here I have listed few UNIX Commands which are used most often by BASIS Consultants and it's
purpose.
Commands Description
dpmon d Dispatcher queue monitor
Sapdba (up to SAP R/3 -4.7)/ brtools database administration
PS Running work process
ps -eaf|grep dw process overview
ps -eaf|grep ora check oracle service is running
Ps –eaf | grep dw kill -9 Kill work process
msmon pf=profile path name=sid to check the message server status
gwmon pf=profile path nr=num to check the gateway status
Ps –eaf | grep lsnrctl Listener status
Rslgview pf =-r –ft | pg System logs
Disp + work –v to check the version of r3 kernel
R3trans –d ,tnsping Checking the connection with database
Df –k File system monitor
Du –k Display all directories and size of current directory
Sqlplus SQL prompt and database connection
“/as sysdba” (new versions)
Saplicence -get to get hardware key
saplicense -install to install license
sappfpar all pf=profile path display all profile parameters
sappfpar check path=profile path checks the required space for memory
memlimits to check the available space for heap and swap memory
telnet Remote system login
telnet <ipaddress><dispatcherportnum> to check the remote sap system is up and running
ftp file transfer protocol
rcp remote copy of files
Start/stop sap Start / stop Sap instance
ping check destination host reachable
niping check connection between server and a client by
transferring packets
systeminfo check the configuration of system
Ps -aef Processes status
lsps -a Swap space
topas Memory
Frequently Used UNIX Commands in SAP
What are the frequently used UNIX commands in SAP?
By: Manish Gupta
Top 10 fundamental commands which are commanly used in Unix OS.
1. stopsap/startsap for stopping/starting SAP+ DB, stopsap r3/startsap r3 for stopping/starting
R3
2. cdpro for checking the profiles path SAPMNT/<SID>/profile
3. cdexe for checling the kernel folder
4. find . -name filename -print for checking the file in the present directory
5. dpmon pf= <Instance profile path>, jcmon pf=<instance profile path>
6. df -k, bdf for checking all file system usages; df -k ., bdf. for individual file usages
7. ls -lrt for listing of files according to the date modified
8. du -a | sort -k 1n,1 for sorting the files in a recursive manner.
9. h for listing previous used commands.
10. rm < file> for removing file, gzip <file> for zipping the file.
-----
1. VI and Gedit is an Editor, just like to write any programme save it and go to command and
compile through through GCC -o .cpp
2. Ps -ef is to check the how many running process and Kill any running process
3. gunzip to unzip file
4. tar -xvzf file name to run the zip folder of file content
5. mv mo from one path to another
6. Rf remove forcifully any file
7. Make command to effect any coading content
8. make clean to clean the effect of make command
9. cp coppy from one location to another
10. pwd check the current directory
-----
Check these commands.
su - production-admin
stopsap all -> make sure that the R/3 Instance and Oracle Database stopped
startsap all -> make sure that the R/3 Instance and Oracle Database started
If the Oracle Database is not started, tried using SAPDBA
su - oracle-admin
sapdba
Options a - Startup / Shutdown Database instance
Shutdown –h now – отключение системы
Yes I try all the options but still getting the same error. Is firewall play some role in this.?
*****************************************************************************
***************
1. xhost +
1356-200 xhost unable to open display ""
1. export DISPLAY=10.52.162.25:0.0
2. csh
3. setenv DISPLAY 10.52.162.25:0.0
4. sh
5. xhost +
1356-200 xhost unable to open display "10.52.162.25:0.0"
1. echo $DISPLAY
10.52.162.25:0.0
*****************************************************************************
*******
Regards,
Bhushan
Команда Описание
# df -h отображает информацию о смонтированных
разделах с отображением общего, доступного и
используемого пространства [man]
# dpkg-query -W -f='${Installed-Size;10}t$ показывает размер используемого дискового
{Package}n' | sort -k1,1n пространства, занимаемое файлами deb-пакета, с
сортировкой по размеру (ubuntu, debian т.п.)
[man]
# du -sh dir1 подсчитывает и выводит размер, занимаемый
директорией 'dir1' [man]
# du -sk * | sort -rn отображает размер и имена файлов и
директорий, с соритровкой по размеру [man]
# ls -lSr |more выдаёт список файлов и директорий рекурсивно с
сортировкой по возрастанию размера и
позволяет осуществлять постраничный просмотр
[man]
# rpm -q -a --qf '%10{SIZE}t%{NAME}n' | sort - показывает размер используемого дискового
k1,1n пространства, занимаемое файлами rpm-пакета, с
сортировкой по размеру (fedora, redhat и т.п.)
[man]
Запуск Yast