UNIX

Check Linux Version

Before install SAP system you need check what version of Linux you are running. To do thes, enter the following command at the shell prompt: cat `ls /etc/*{-,_}{release,version} 2>/dev/null | head -n 1`

Posted in UNIX | Tagged | No Comments

FTP Script For Upload SAP Transport Request

If the transport landscape, each system uses its own transport directory, it may be necessary to transfer files of transport requests between servers. In case Unix simple solution is FTP Script For Upload SAP Transport Request #!/bin/bash HOST=hostname #This is the FTP servers host or IP address. USER=username PASS=password ftp -inv $HOST <<EOF user $USER $PASS bin cd /usr/sap/trans/cofiles/ lcd /usr/sap/trans/cofiles/ get KXXXXXX.YYY cd /usr/sap/trans/data/ lcd /usr/sap/trans/data/ mget *XXXXXX.YYY quit EOF Where YYYKXXXXXX – name of transport request KXXXXXX.YYY – cofile of transport request RXXXXXX.YYY and DXXXXXX.YYY – data files of transport request

Posted in UNIX | Tagged | No Comments

errpt – aix system log report

To display a detailed report of all aix system errors logged in the past 24 hours, enter: errpt  -a -s mmddhhmmyy where the mmddhhmmyy string equals the current month, day, hour, minute, and year, minus 24 hours.

Posted in UNIX | Tagged | No Comments

Полная перезагрузка системы SAP с очисткой shared memory UNIX

Пример полной перезагрузки для системы SAP о очисткой shared memory Под пользователем <sidadm> Для каждой установленной инстанции (на примере DVEMESG00) stopsap r3 DVEBMGS00 stopsap sapstartsrv DVEBMGS00 Проверяем наличие процессов под пользователем <sidadm> ps -ef | grep <sidadm> Производим очистку shared memory стандартной утилитой cleanipc (в нашем примере номер инстанции 00) cleanipc 00 remove Проверяем наличие сегментов shared memory ipcs | grep <sidadm> При необходимости удаляем сегменты shared memory ipcrm -s [semaphor id] ipcrm -m [memory id]    

Posted in SAP Basis, UNIX | Tagged | No Comments

SUSE11 for SAP

Note 1275776 – Linux: Preparing SLES for SAP environments Note 1310037 – SUSE LINUX Enterprise Server 11: Installation notes

Posted in UNIX | Tagged | No Comments

XTerm Geometry And Font

Option -geometry If you use XTerm and want to control window size and window position, use -geometry option. xterm -geometry 150×50+0+0 & Will open an XTerm 150 chars wide, 50 chars high in the top left hand corner of the screen .Xresources file Another way is write some lines to file .Xresources in user home directory. xterm*geometry: 100×40+0+0 XTerm*faceName: DejaVu Sans Mono XTerm*faceSize: 14 Last two strings setup font face and font size for xterm. The final step is to set these resource changes using xrdb xrdb -merge .Xresources

Posted in UNIX | Tagged | No Comments

mount nfs file system error Directory/File Name is not valid with the -t flag

Symptom When We try mount nfs file system on AIX mount -t nfs server1:/path /path We have errror ‘Directory/File Name’ is not valid with the -t flag.. Solution Add to /etc/hosts host, where We try mount nfs file system with command: mount server1:/path /path

Posted in UNIX | Tagged , | No Comments

Script for UnSAPCAR Multiple SAR files in single shot

For UnSAPCAR Multiple SAR files in single shot create this script in trans directory: #!/bin/sh ls *.SAR | while read sar do SAPCAR -xvf $sar done

Posted in SAP Basis, UNIX | Tagged | 2 Comments

Работа с UNIХ через VNC

Запуск графических приложений UNIX через vnc. Заходим на сервер текстовым терминалом, например putty. Меняем пользователя на того под которым должно запускаться графическое приложение. Запускаем vncserver Устанавливаем пароль командой vncpasswd Сморим какой порт используется ps -ef | grep vnc sidadm 2666684 1 0 15:52:42 pts/51 0:00 Xvnc :1 -desktop X -httpd /opt/freeware/vnc/classes -auth /home/sidadm/.Xauthority -geometry 1024×768 -depth 8 -rfbwait 120000 -rfbauth /home/sidadm/.vnc/passwd -rfbport 5901 -nolisten local -fp /usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fonts/ibm850/,/usr/lib/X11/fonts/Type1/ опция -rfbport 5901 говорит нам о том, что vncserver запущен на порту 5901 Запускаем vnc клиент, например Real VNC Viewer в строке Server пишем IP:порт, жмем коннект кнопку.

Posted in UNIX | Tagged | No Comments

AIX swap

Анализ использования swap в AIX выполняется следующими командами: lsps -s vmstat 1 5 topas swap -l

Posted in UNIX | Tagged , | 1 Comment