sexta-feira, 18 de junho de 2010

Operating system

AIX
1)
instfix -ik

2) to get the memory consuption for a specific process.
You should get the INUSE output and multiply for 4096 to get the value in bytes:
svmon -P (to analyse a specific process)

svmon -G (to analyse the total memory)
svmon -Pnsm (to analyse the top process)

ps auxw  | sort -r +3  (process sort by memory consuption)

svmon -Pt15 | perl -e 'while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}'



SOLARIS

1) to analyse the memory usage for each process:
/usr/bin/ps -eo 'zone user pid ppid vsz rss args'


WINDOWS
1) to find a specific string in a OUTPUT:
netstat -an | findstr LISTEN

2) to list process from prompt line
tasklist

3) services
sc qc


HP-UX

memory statistics:
ps -el | sort -rnk10 
will list all processes on the system, sorted by the SZ column.

quinta-feira, 17 de junho de 2010

NIPING tests

#Name resolution
niping -v -H

# With option -L 6048000 the test will run for 7 days.
niping -c -H -B 10000 -D 100 -L 6048000

#niping as server
niping -s -I 0 -T NIPING_SERVER_TRACE

#niping as client
niping -c -H -X3 -B 10 -D 30 -T NIPING_CLIENT_TRACE

500235

terça-feira, 15 de junho de 2010

Looking for a RFC

You can find all RFC in SM59, but no always is easy to find a specific RFC if you do not have the name.

The table RFCDES have all RFC connection with hostname or IP Address.
You can find in this table with a easy way.

segunda-feira, 14 de junho de 2010

Windows services for start SAP


User should be SAP*SID*_*NR*

To create a new service:

1) Log into the NT machine as adm.
2) Run 'sapstartsrv.exe'.
3) Select "Uninstall Service + Unregister COM Interface"
4) Specify your SID and System Number (NR) and click ok.
5) Select "Install Service + Register COM Interface + Start Service
6) Specify your SID and System Number (NR).
7) Specify your startprofile (use the 'browse' button).
8) Specify your user as (domain\adm or workgroup\SIDadm).
9) Specify the passsword for adm.
10) Click OK.

segunda-feira, 31 de maio de 2010

SNMPTRAP for SAP system

You should use the package SNMPLIB delivery by SAP.

Download

Market Place
Download ->
Support Packages and Patches
Entry by Application Group ->
Additional Components ->
SAP Kernel ->
SAP KERNEL 32/64bit ->
-> Database Independent

To test the package:
You should check the dependencies with LDD.
Call trapsend from OS side
.

1. Run command: rectraps rectraps.cfg

2. In another session run command: trapsend -v 2c -m MIB:SAP_R3_MIB -M
DIR: -c public -t 5 -r 5
UDP:localhost:162 '' SAP-MIB::r3maTrap SAP-MIB::r3maAlertMsgString s
'test'

Notes:
585110 RZ20: Sending alerts as SNMP traps

sexta-feira, 21 de maio de 2010

Make last versions

STARTSAP and STOPSAP scripts
#809477 startsap and stopsap <= SAP WebAs 640, 700/701 and 710/711

CPS (REDWOOD)
#1257610 How to download SAP CPS for NetWeaver 7.0 and 7.01

quinta-feira, 13 de maio de 2010

monitoring from OS

If you wold like to monitoring the SAP system from command line or automatize a script to do this or colect information from OS side to update a external tool or report you can use the DPMON or sapcontrol.

DPMON is an interactive tool provide from SAP.

sapcontrol is a tool that you can colect information from instance and from remote instances.


More info:
675778 Analysis after system downtime
42074 Using the R/3 dispatcher monitor 'dpmon'