Change server IP in Lotus Notes Connection Document

Teknoxgroup
Teknoxgroup used Ask the Experts™
on
Yesterday we had a major failure of our server in one of our companies. We had to install OS from the scratch. Due to some problems we had to change the IP of the server. Next step is to install Lotus Domino server. I have two questions regarding change of IP address. First question is, if I change IP of the server, do I have change connection document on all servers? And the second is, if I change IP in connection documents on all servers how can I apply the change to users, if I try to avoid modifiying their connection document one by one?

regards,
Vladimir
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Hi there Teknoxgroup,,,

Answer1: open each connection  document  with this server and make sure that the (destination name is correct or not ) if you have put the IP address in the optional network address you have to put the new one . However, It is recommended to add the new IP address of the server to the HOST file ( Root:\WINDOWS\system32\drivers\etc )of the other servers and add the IPs of the other servers to the HOST file of the one with the new IP.

Answer2: if you use a pre LND8 version of lotus notes please access the EDIT Current of a sample user and click the " Server" TAB and then make sure that the name of the server is a correct one.

In conclusion, it is mainly defined by server name on both the " Connection Document" and the " EDIT Current" of the users just make sure to add the new IP address in the Host files of the other servers

Good Luck
Top Expert 2007
Commented:
1) You should not be using IP addresses at all. Always use the DNS as recommended by IBM/Lotus ( see the install and deploy docs as well as the Admin help )

If an IP needs to be changed, al you do is update the DNS server if needed.

Same is true for users. use DNS

If you have changed the IP and this will affect the users, then you should delete the user connection doc, and have them access the server once ( preferably by DNS name ) or Ip via

File-database ( application ) Open, and then the DNS or IP of the server.

I hope this helps !
Top Expert 2007

Commented:
this script button may help out.

You can modify it to delete old connection doc or correct it as needed.

Button Script To Add Server Connection Documents To Personal Address Book

Bob Pratico  17 Nov 1999, Rating 4.50 (out of 5)
 
This script can be used in an Action Button sent to users in order for them to
add server connection documents to their Personal Address Book. This script
will first alert the user to what is about to happen, then check for the
existence of one of two connection documents, add any connection documents as
appropriate, and notify the user how many connection documents were added.

Sub Click(Source As Button)
Messagebox "This action will automatically add Connection Documents to the
Huntsville servers if they do not already exist in your Personal Address
Book.", 0 + 64, "Huntsville Connection Documents"
Dim db As New NotesDatabase("" , "names.nsf")
Dim view As NotesView
Dim doc As NotesDocument
Dim success As Variant
Dim connect As NotesDocument
Dim State As Integer
State = 0

Set view = db.GetView("Connections")
Set doc = view.GetFirstDocument
While Not (doc Is Nothing)
If doc.Destination(0) =
"Server1Name(i.e.CN=RSCHUN-DH01/OU=RES/O=Raytheon/C=US)" Then
Goto NextServer
Else
Set doc = view.GetNextDocument(doc)
End If
Wend

Set connect = db.CreateDocument
connect.form = "local"
connect.type = "Connection"
connect.destination = "Server1Name(i.e.,
CN=RSCHUN-DH01/OU=RES/O=Raytheon/C=US)"
connect.lanportname = "TCPIP"
connect.connectiontype = "0"
connect.optionalnetworkaddress = "Server1IPAddress (i.e., xxx.xx.xx.xx)"
success = connect.ComputeWithForm( False, False)
Call connect.Save(True,True)
State = State + 1


NextServer:
Set view = db.GetView("Connections")
Set doc = view.GetFirstDocument
While Not (doc Is Nothing)
If doc.Destination(0) = "Server2Name" Then
Goto Alert
Else
Set doc = view.GetNextDocument(doc)
End If
Wend

Set connect = db.CreateDocument
connect.form = "local"
connect.type = "Connection"
connect.destination = "Server2Name"
connect.lanportname = "TCPIP"
connect.connectiontype = "0"
connect.optionalnetworkaddress = "Server2IPAddress(xxx.xx.xxx.xx)"
success = connect.ComputeWithForm( False, False)
Call connect.Save(True,True)
State = State + 1


Alert:
Select Case State
Case 0
Messagebox "Your Personal Address Book already has both Server Connection
Documents; no new connection documents were created." , 0 + 64 , "Finished!"
Case 1
Messagebox "Your Personal Address Book already had one of the Server
Connection documents; one new connection document was created." , 0 + 64,
"Finished!"
Case 2
Messagebox "Two new server connection documents were created in your Personal
Address Book." , 0 + 64, "Finished!"
End Select

End Sub  
 
I hope this helps !

Author

Commented:
SysExpert,

I should stick to your second solution. After all scripting button should be sent by e-mail however our users do not have access to e-mail due to Server IP number change.

Will try and report after that!

Author

Commented:
Sorry.. I meant first solution :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial