OpenNTF.org - Notes Agent Fixup
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
Notes Agent Fixup 
Rating:
Not Rated Yet 
Contributor:
Eric Bickle 
Category:
Application, C/Cpp 
Type:
Utilities 
Document Release:
1.0.0 
Notes Version:
R6.x 
Last Modified:
22 Aug 2003 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
Notes Agent Fixup, Version 1.0.0


(N)AgentFixup is a Lotus Notes 6 server addin which can be used to remove orphan agent data notes. Orphan agent data notes are horrible internal design elements which have become 'broken'. These broken notes can cause a wide variety of server and database problems, including extreme performance degradation, server tcpip stack corruption, random server crashes, etc.

TeamStudio released the source code and binary for a client tool which could be used to remove the orphan agent data notes in a database or directory. Eric Bickle of HealthSpace Integrated Solutions reengineered the source code to be more object-oriented and to be "server friendly". This new NAgentFixup program can be used on both Notes 6 servers and clients.

This modified source code is redistributed under it's original TeamStudio open source license. See license.txt for more information.

If anyone wants to fix/finish the -l and -L options for statrep.nsf logging, please do so. If you have any questions or want to show me any modifications you make to the code, please contact me at ebickle@healthspace.ca

I'd also like to know if anyone is successfull in getting this to compile under linux. I haven't tried yet.

Usage / Example
Server Usage: Load AGENTFIXUP [path] [options]
Client Usage: NAgentFixup [path] [options]


[path]: One database, one folder (recurses), or omitted (all, recurses).

[options]:
-a Remove all agent data notes.
-h Show this help menu.
-l Log detected problems as events to statrep.nsf. (not functional)
-L Log detected problems as alerts to statrep.nsf. (not functional)
-v Log/report additional information.
-y Do not recurse through subdirectories.
-Y Recurse through subdirectories (default).
Code Attachments
 Comments
Posted by Ian Murray-Watson on 09/09/2003 10:46:14 AMC++ API
Hi Eric,
You are about the first person I've managed to trace who actually programs for Notes - using a programming language rather than database hackette tools. Is there any chance you could give me some help or point me in the right direction at least? I am trying to do an extension manager and having unbelievable trouble. Never used Notes, so it's a whole new area, which is bad enough, and then there's the terminology... At the moment I'm trying to iterate forms/views and their associated actions simply to get more understanding of how everything works. Whenever I try to access the second element of an actions array, the code throws an exception (typically "invalid rich text object"). However, if I start iterating at this element, it's fine, but the next one then throws an exception. I've tried everything including specifically seeing that every instance of a form/action object is destructed between calls, but nothing seems to work. Any help would be most gratefully received - before I tear the last of my hair out.
All this to find out how the heck I get hold of an action bar (form/view/folder/note/is it a bird, a plane?? There's got to be an easier way of making a living....
Ian Murray-Watson (ian.murraywatson@btinternet.com)
Posted by James Ray on 02/04/2004 09:26:33 AMRe: Notes Agent Fixup
What about an R5 version? Any plans?
Posted by Ruud van Eijken on 04/04/2004 08:15:19 AMI linked the C-Api code with the Domino R5.02 C-API libs
when you are interested sent me an e-mail
and i will e-mail the R5 version to you rvaneijken@ilionx.com
kind regards
Ruud van eijken
Posted by Andrew Price on 07/26/2005 07:31:59 PMDANGER
DO NOT USE THIS CODE. OpenNTF has locked me out from updating it - there is a bug in this code that can crash a server in remote cases. Please use Version 1.0.1 instead (posted in project area)
 Add your comment!