Monday, May 11, 2009

Bug - LS agents property - My solution, well Julian Robichaux's solution

In my post Bug - LS agents property does not list all agents - Ideas? Xml, DXL,

I was looking for a solution to get private agents. The weekend brought my advide, I had a flash and remembered a post from Julian Robichaux about ND6 restrictions level for agents.

Here's the post, cause i'm not able to get a permalink. But instead of doing a single database, I can scan all my servers. The result is posted in a Notes db instead of Excel



Listing the ND6 Restriction Level for All Agents
January 19, 2003

This is a tip that uses the Notes API to check the new ND6 restriction level for all agents in all databases on a server. This is useful because it tells you which agents you need to check to make sure that the runtime security setting is correct (see the list of restricted operations for reference, but keep in mind that CreateObject and GetObject seem to be restricted operations as well). Take particular note of scheduled agents with an effective runtime security level of 1. I also wrote a blog entry that discusses this and other ND6 upgrade issues.

This agent can also be used as a template for writing your own agent that gets a list of agents and/or script libraries in a database and returns their NoteIDs so you can read and write to them like regular NotesDocuments. See Damien Katz's DatabaseDesign library for a class that uses the same technique (and is much more flexible), and which also presents an interesting way to do this by creating a temporary view and manipulating the $FormulaClass field.

(UPDATE: Richard Schwartz mentioned that you can also use the NotesNoteCollection class in ND6 to do this sort of thing much more easily -- if you're already using an ND6 client, you should check out the Designer help for that class.)

AgentRestictionList.lss (html)

1 comment:

Unknown said...

Thanks for the above post. you did a good job. Is it useful in the corporate world? I will share the same with my circle.
electronic signature