Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sched LS agent retrieves dbdirectory from servers

Status
Not open for further replies.

msao

Programmer
Sep 25, 2005
3
US
ELEMENT:
- LotusScript Agent
- gets all nsf dbs from servers (A,B,C,D,E)
- records db information into the db housing this agent.
1 db : 1 document
- DB housing the agent is installed on only one server
(agent runs on server A where it is installed, but
retrieves db information from dbs in servers A,B,C,D,E)
- Agent is signed with server id (server A id). server id
is a MEMBER OF AN ADDRESS BOOK GROUP that is set up on
all servers to:
- Run restricted LotusScript/Java agents
- Run Simple and Formula agents
- address book group is also a standard entry in the ACL of databases in servers

AGENT PSEUDOCODE:
- retrieves list of server to process from a config doc
- loops through every server
- retrieves dbdirectory of that server
- loops through every db
- sets the notesdatabase object
- opens db object via the Open method.
- retrieves the following information:
- db title
- server
- filepath
- replicaid
- created date
- modified date
- number of docs
- acl
- records info into a form in the agent's DB
1 db : 1 document in this database
- saves document
- gets next db
- gets next server

ISSUE:
- agent is UNABLE to retrieve the following information from dbs on servers where agent is not installed, despite explicitly opening the database (via Open method) before properties are retrieved.
- created date
- modified date
- number of docs
- acl

... it seems that the agent is unable to retrieve complete information from dbs residing on servers B,C,D,E despite having
- access to run scheduled agents to run on these servers
- access to databases on these servers

IS THIS A CODE ISSUE OR AN ADMIN\ACCESS ISSUE. WHERE ELSE SHOULD I BE LOOKING?
 
A scheduled agent cannot contact other servers. This is a design limitation implemented for security reasons.
A scheduled agent can only access network discs on which the server itself has a mapped access.

In your case, it would probably be preferable to replicate the other dbs in a special folder, and work from there.

Pascal.
 
What version of Notes are you running? If you're running R5 yes you can't access other servers via the script BUT if you're running R6 you can.
 
... using Lotus Notes Release 6.5.1.

the lotusscript agent makes a call to a script library sub(also signed with a server id though). could that be it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top