Solved

Replication manager

Posted on 2003-12-04
4
252 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

685 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