Solved

Replication manager

Posted on 2003-12-04
4
248 Views
Last Modified: 2013-12-18
Who knows a tool that can create replica's automatically from the input in a database?

I get a lot of questions like "please create a replica of xxx.ntf on our Swiss server". Now I would like to go in the database, select the document for xxx.nsf and add a server to the list of servers in that document. Some kind of agent will then create a replica on the desired server automatically.

I hope someone has an answer.

Greetz
Filips
0
Comment
Question by:Filips
  • 2
4 Comments
 
LVL 24

Assisted Solution

by:HemanthaKumar
HemanthaKumar earned 100 total points
Comment Utility
Write this in an agent, and set it to run on selected docs

Dim session As New NotesSession
Dim db As NotesDatabase
Dim col as NotesDocumentCollection
Dim doc as NotesDocument
Dim replica As NotesDatabase, fdb as NotesDatabase

Set db = session.CurrentDatabase
set col = db.UnprocessedDocuments
set doc = col.GetFirstDocument
while not doc is nothing
Server = doc.Server(0) ' Server where db is residing currently
Path = doc.Path(0)     ' File path
if Path <> "" then
set fdb = session.GetDatabase( Server, Path)
if not fdb is nothing
Set replica = db.CreateReplica( "Jakarta", "sales.nsf" )
end if
end if
Set doc = col.GetNextDocument(doc)
wend

~Hemanth
0
 
LVL 24

Expert Comment

by:HemanthaKumar
Comment Utility
I made some mistake in line

Set replica = db.CreateReplica( "Jakarta", "sales.nsf" )


It should be

Set replica = fdb.CreateReplica( doc.NewServer(0), doc.NewPath(0))    ' NewServer and NewPath should be mentioned in the document
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 150 total points
Comment Utility
Not sure I understand why you want to do that.  There is a built-in tool for this:

"I would like to go in the database," = Start Domio Adminstrator
"select the document for xxx.nsf " = Select teh database from teh files tab
"add a server to the list of servers in that document. " = Pop menu "Create replica..."

Why does this not suffice?

I would NOT go with Hemantha's solution, as it requires YOUR WORKSTATION to create the new replica and replicate it IN TEH FOREGROUND, meaning your Notes client is locked up uuntil it completes.  On a slow, long-haul link, with a very large database, you can leave for the day.

If you absolutely must have a tool built, I would have it write a request to the administration process database on a "source server" that is closest in proximity to the destination server.  That will get t processed cleanly, efficiently, and using only server resources.  Essentially, it "automates" the process I outlined above (open Administrator, right click DB file, CREATE REPLICA...)
0
 
LVL 6

Author Comment

by:Filips
Comment Utility
I agree with qwaletee. I don't like the foreground stuff but the Domino administrator isn't user-friendly enough. I searched myself a lot of ours but couldn't find anything so I presume it doesn't exist.

Thanks
Greetz
Filips
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now