on 2013 Jun 11 10:41 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.