Showing posts with label WAS-JAVA. Show all posts
Showing posts with label WAS-JAVA. Show all posts

Tuesday, October 21, 2008

Calculating J2EE Port Numbers

The J2EE ports are created via the following formula. Port Number = 50000+100*instance_number+port_index

Index Port Name
-----------------------
0 HTTP port
1 HTTP SSL port
2 IIOP Initial Context port
3 IIOP SSL port
4 P4 port
5 P4 HTTP Tunneling port
6 P4 SSL port
7 IIOP port
8 Telnet port
10 JMS port

example: inst num=02

HTTP Port = 50200
HTTP SSL Port = 50201
IIOP Initial Context port = 50202
IIOP SSL port = 50203
P4 port = 50204
P4 HTTP Tunneling port = 50205
P4 SSL port = 50206
IIOP port = 50207
Telnet port = 50208
JMS port = 50210

For more information about Port Numbers, please refer to http://service.sap.com/security > Security in Detail > Infrastructure Security > TCP/IP Ports Used by SAP Applications Document.

How To Recover SDM Password

As SDM is default in Integrated Mode, first you have to take it to Standalone Mode and after changing password take it back to Integrated Mode.

WINDOWS

  1. Access (RDP,VNC,RADMIN,..) system with adm user.
  2. Open Command Prompt
  3. Go to SDM Root folder with : cd :\usr\sap\\JC\SDM\program\
  4. Take SDM to Standalone Mode: sdm jstartup "mode=standalone"
  5. Change SDM Password: sdm changepassword "sdmhome=:\usr\sap\\JC\SDM\program" "newpassword="
  6. Take SDM to Integrated Mode: sdm jstartup "mode=integrated"

UNIX

  1. Access (Telnet, SSH, DT, XWindows) system with adm user.
  2. Open Terminal Window
  3. Go to SDM Root folder with : cd /usr/sap//JC/SDM/program
  4. Take SDM to Standalone Mode: sdm.sh jstartup mode=standalone
  5. Change SDM Password: sdm changepassword sdmhome=/usr/sap//JC/SDM/program newpassword=
  6. Take SDM to Integrated Mode: sdm.sh jstartup mode=integrated

Changing SDM Server Modes

To change the SDM Server mode please read more

You need to stop the SDM Server first as follow:

Stopping/Starting SDM Server

WINDOWS

  1. Navigate to the usr/sap///SDM/program directory of your J2EE Engine installation.
  2. To stop the SDM Server, execute the command:

    StopServer

  3. To start the SDM Server, execute the command:

    StartServer

  4. or simply start the SAP Management Console by choosing Start ® Programs ® SAP Management Console.
  5. From the tree, choose SAP Systems® ® ® Process Table.
  6. Select the SDM process

    To start it, choose Enable Process in the context menu.

    To stop it, choose Disable Process in the context menu.

UNIX

  1. Navigate to the usr/sap///SDM/program directory of your J2EE Engine installation.
  2. To stop the SDM Server, execute the command:

    StopServer.sh

    To start the SDM Server, execute the command:

    StartServer.sh

Change SDM Server Mode

  1. Navigate to the usr/sap///SDM/program directory of your J2EE Engine.
  2. Open a command prompt in this directory.
  • To remove the link between the SDM and the Java Control Framework execute the following command in the command line:

    sdm jstartup "mode=standalone" for Windows

  • sdm.sh jstartup mode=standalone for UNIX

  • To integrate SDM in the Java Control Framework, use the following command:

  • sdm jstartup "mode=integrated" for Windows

  • sdm.sh jstartup mode=integrated for UNIX

Starting JSPM on an IBM eServer iSeries System

Starting JSPM procedure is not the same as the other platforms. Please read more to learn how to start JSPM on iSeries (OS400).

1. To prevent JSPM from automatically starting its GUI, in the

/usr/sap///j2ee/JSPM/param/jspm_config.txt

file, change the

/dialog/SDTServerConnection/SDTGui/launch

property from true to false.

2. Run the go script on the IBM eServer iSeries host using the following OS/400 command:

QSH CMD('/usr/sap///j2ee/JSPM/go').

3. To start the JSPM GUI, from the mounted

/usr/sap///j2ee/JSPM

directory, run the

StartGui.bat

script.

The JSPM GUI appears.

4. In the Host field, enter the target IBM eServer iSeries host.

5. Enter your password for the SDM and choose Log On.

Starting SDM on an IBM eServer iSeries System

Sometimes, SDM (Software Deployment Manager) will not start if you recently updated the SDM. To solve this issue, please proceed as follow:

Starting SDM will not work if you do not first edit some files:

Edit the SDM file

:\usr\sap\\DVEBMGS\SDM\program\sdm_jdk.bat (Add-in Installation)

:\usr\sap\\JC\SDM\program\sdm_jdk.bat (Standalone Engine)

set sdm_java_home=/QIBM/ProdData/Java400/jdk14

to

set sdm_java_home=%JAVA_HOME%

and;

set sdm_heap_size=512

Then you can start SDM from a Windows Client:

:\usr\sap\\DVEBMGS\SDM\program\RemoteGui.bat (Add-in Installation)

:\usr\sap\\JC\SDM\program\RemoteGui.bat (Standalone Engine)

Note

Above changes also can help to solve JSPM Start Problems.

Archive