Home > Ask the Domino Experts > LotusScript Questions & Answers > Scan all Lotus Notes databases using a LotusScript agent
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Scan all Lotus Notes databases using a LotusScript agent

Cregg Hardwick EXPERT RESPONSE FROM: Cregg Hardwick

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 16 August 2006

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:

  • Learning Guide: LotusScript
  • FAQ: LotusScript
  • Reference Center: LotusScript tips and resources


  • Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    LotusScript
    LotusScript agent parses ACL to Microsoft Notepad
    LotusScript finds the first occurrence of a string from the right
    Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
    Search Microsoft Active Directory with LotusScript
    Three steps to trap and handle save conflicts with LotusScript
    Troubleshoot agents by displaying LotusScript variables online
    LotusScript sorts lists alphabetically
    Run or restart Notes/Domino agents via text messages
    LotusScript code rebuilds corrupted busytime.nsf file
    Soft-code item names to facilitate LotusScript management

    LotusScript
    Can you use LotusScript to read a text file attached to a Notes doc?
    Customize the principal field of outgoing email messages
    Can I use LotusScript to merge cells in a Microsoft Word table?
    Modifying LotusScript code for date and time handling
    Use DXL utilities for advanced replication settings in Notes
    Use LotusScript to create encrypted replicas
    Write a LotusScript agent to automate file attachments
    Troubleshooting a scheduled agent not running on a Global Notes Architecture (GNA) server
    Setting up local replication of a Lotus Notes database for offline employees
    Creating a link on an HTML page to a Microsoft Word attachment in a Lotus Notes database

    Lotus Notes Domino Database Management
    LotusScript agent parses ACL to Microsoft Notepad
    Domino Domain Monitoring hints and gotchas
    LotusScript code rebuilds corrupted busytime.nsf file
    LotusScript agent automates selective mail file replication
    Configuring Domino Domain Monitoring (DDM)
    How to move Notes databases off Domino 8 servers and save disk space
    What is Notes 8.5's DAOS (Domino Attachment and Object Storage) feature?
    LotusScript agent indexes Lotus Notes/Domino databases
    An introduction to Domino Domain Monitoring (DDM)
    'Customize this view' options are disabled in Lotus Notes databases

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice



    Lotus Notes Domino on Blackberry and mobile devices
    HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts