Solved

Replication manager

Posted on 2003-12-04
4
249 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
ID: 9876278
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
ID: 9876303
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
ID: 9879012
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
ID: 10011755
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

895 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

16 Experts available now in Live!

Get 1:1 Help Now