Q

Scan all Lotus Notes databases using a LotusScript agent

SearchDomino.com expert Cregg Hardwick provides LotusScript code that will allow you to access all the Lotus Notes databases on a machine.

Is there a way, in LotusScript, that I can create an agent that can scan all the Lotus Notes databases on my workspace to return information such as the size of a Lotus Notes database, percentage used, number of documents, and so on?

Not directly, since the Lotus Notes workspace icons are not exposed for programmatic access.

You can, however, access all the Lotus Notes databases on your machine.

Dim db as NotesDatabase
Dim dbdir As NotesDbDirectory                     
Set dbdir =New NotesDbDirectory("")
Set db = dbdir.GetFirstDatabase(DATABASE)
Do while not db is nothing
…
Set db = dbdir.GetNextDatabase
Loop

At CenterPoint, I used this method to build a crawler as part of our corporate application portfolio that collects data on every database on every server.

Or depending on how you manage your Lotus Notes workspace, you might be able to do it in the bookmarks.nsf. If you use the "Welcome page" introduced in Lotus Domino R5, all your bookmarks are stored in bookmarks.nsf, located in your default Notes data directory (normally c:\notes\data or c:\lotus\notes\data). Look at the design and you should have no trouble getting a handle on each database.

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchDomino.com:

This was first published in August 2006
This Content Component encountered an error

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close