Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Option 1.
You would like to move GSW Telnet to an alternate port for everyone who connects.
1. Test the port you want to use to make sure it is not already in use. Open an
elevated Windows command prompt and enter the following specifying the
desired port. For my example we will use Port 2301.
netstat -a | findstr :2301
If the command returns nothing it usually means the port is available.
2. Add the port to the %systemroot%\system32\drivers\etc\services file.
. Right click on notepad.exe and select Run as Administrator.
. Using the File Menu select Open and paste %systemroot%\system32\drivers\etc
3. Make sure the C:\Windows\System32\drivers\etc\services file does not have a file extension.
Enable viewing file extensions.
4. Configure services file with the desired GSW telnet ports.
#telnet 23/tcp
gstnet1 2301/tcp
gstnet2 2302/tcp
gstnet3 2303/tcp
gstnet4 2304/tcp
Save the changes and launch the GS Telnet Client shortcut to make a connection on port 2301.
7. From a Windows command prompt you can view the listening ports with this command.
netstat -aon |findstr :230*
Example:
C:\Windows\system32>netstat -aon |findstr :230*
TCP 0.0.0.0:2301 0.0.0.0:0 LISTENING 10700
TCP 0.0.0.0:2302 0.0.0.0:0 LISTENING 10700
TCP 0.0.0.0:2303 0.0.0.0:0 LISTENING 10700
TCP 0.0.0.0:2304 0.0.0.0:0 LISTENING 10700
TCP 127.0.0.1:2301 127.0.0.1:52998 ESTABLISHED 10700
TCP 127.0.0.1:2302 127.0.0.1:53008 ESTABLISHED 10700
TCP 127.0.0.1:2303 127.0.0.1:53043 ESTABLISHED 10700
TCP 127.0.0.1:2304 127.0.0.1:53055 ESTABLISHED 10700
8. Configure all devices to connect using the new port.
Option 2:
Note Option 2 is not supported for the SSH protocol.
You would like for the User account that is connecting to run a profile based on the port
they are connecting with.
@:label23
@cd ..
@cd ..
@cd "C:\Program Files\SAP\FrontEnd\SAPgui\sapconsole"
@sapcnsl -pRFU02
@goto label23
@:label2323
@cd ..
@cd ..
@cd "C:\Program Files\SAP\FrontEnd\SAPgui\sapconsole"
@sapcnsl -p RFU01
@goto label2323
@labelend
Sapcnsl