cancel
Showing results for 
Search instead for 
Did you mean: 

Massive update for SAPGUI

0 Kudos
512

Hi Gurus,

We need to update the entries of our SAPGUI´s because the IP addresses of the server will be changed. How can we apply the massive change of the SAPLOGON.ini to over 1000 PC´s with some SAP tool.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

nelis
Active Contributor
0 Kudos

Hi,

The most obvious tool would be to use the SAPgui Installation Server to distribute the changes and keep all your clients up-to-date automatically with the workstation update service. I've also seen people use Windows AD group policies to do it or a combination of both.

Regards,

Nelis

Answers (4)

Answers (4)

fredrik_borlie
Contributor
0 Kudos

Another option is to have such a file stored on a central server. Then you only need to update the server and all clients will be "updated" at once.

Note describing this feature

https://service.sap.com/sap/support/notes/1426178

Former Member
0 Kudos

Hi Aldo,

The Installation Server is a great option.  Your Active Directory Administrators will want control.  We have uniqueue saplogon.ini files for regulating Business Unit access and Technical development.  Our solution leveraged a free tool called Autoit and built a wrapper for deploying just the saplogon.ini as it is changing constantly.  AutoIt is a freeware BASIC-like scripting language designed for automating the Windows GUI and general purpose scripting. (http://www.autoitscript.com/site/autoit/)

Best Regards,

Dan Mead

former_member194094
Active Participant
0 Kudos

Hello,

I would suggest that you setup a server for the configuration files. it is easier to handle the ini files in case of massive roll-out

The steps are outlines in note SAP note 1426178

Kind regards,

Eric

SDN NW Clients Moderator

S_Sriram
Active Contributor
0 Kudos

Hi

It easy way to do in the VB Script, Just execute the script in the batch file

VB Script

Find command enters

intLineFinder = InStr(strNextLine, "Old IP")

intLineFinder1 = InStr(strNextLine, "Old IP")

Replace command

strNextLine = Replace(strNextLine,"(Old IP)","(New IP)")

_____________________________________________

Const ForReading = 1

Const ForWriting = 2

Set oShell = CreateObject( "WScript.Shell" )

'Set the target file and backup directory.

'Note that I've used an environment variable here to ensure it works on all systems.

'

targfile=oShell.ExpandEnvironmentStrings("%SystemRoot%") + "\saplogon.ini"

backdir=oShell.ExpandEnvironmentStrings("%TEMP%") + "\"

Set objFSO = CreateObject("Scripting.FileSystemObject")

'Make sure the file exists to prevent errors.

'

if objFSO.FileExists(targfile) then

'Copy it to the backup directory then open the file.

objFSO.CopyFile targfile, backdir, true

Set objTextFile = objFSO.OpenTextFile(targfile, ForReading)

'Read through each line of the file for the entry you want to set

'

Do Until objTextFile.AtEndOfStream

strNextLine = objTextFile.Readline

intLineFinder = InStr(strNextLine, "Old IP")

intLineFinder1 = InStr(strNextLine, "Old IP")

If intLineFinder <> 0 Then

'Set your new entry here.

'

strNextLine = Replace(strNextLine,"Old IP","New IP")

End If

If intLineFinder1 <> 0 Then

'Set your new entry here.

'

strNextLine = Replace(strNextLine,"Old IP","New IP")

End If

strNewFile = strNewFile & strNextLine & vbCrLf

Loop

objTextFile.Close

'Write the file with the new entry

'

Set objTextFile = objFSO.OpenTextFile(targfile, ForWriting)

objTextFile.WriteLine strNewFile

objTextFile.Close

End If

__________________________________________________________________________

Thanks & Regards

Sriram