Here's some of our favourite tips for Notes/Domino
Professionals. We hope you find them useful.
Cool Tip Topics include:
Administration
How do you execute a console
command on a scheduled basis?
Use a Program document. Under
'Program Name' enter 'nserver' and under 'Command' enter
'-c <console command>'.
How do you repeat a
console command at regular intervals?
Enter a console command, press enter,
then press the ~ key. To change the frequency of
the repeating commands use the NOTES.INI variable
Console_Interate_Delay=<seconds>
How do you make a
clustered server stop taking new connections from
clients?
Use the NOTES.INI parameter
SERVER_RESTRICTED=1 to prevent any new connections on
the server. Wait until all users have stopped
using the server then perform your maintenance tasks.
How do you see the IP
addresses of Notes clients that are connecting to your
Domino server?
Use the console command SHOW USER
DEBUG.
How do you get a memory
dump from a Domino R5 server running on Windows NT/2000?
Two methods; 1) At the command prompt
type NSERVER -m 2) At the Domino console type SH MEMORY
DUMP > somefile.txt
How do view the list of
databases in the server's database cache?
Use the DBCACHE SHOW console command.
How do you clear the
list of databases in the server's database cache?
Use the DBCACHE FLUSH console command.
How do you show a set
of transaction statistics on a Domino server?
Use the
SHOW TR console command.
How do you run an agent
from the Domino Console on a Domino 6 server?
Use the TELL AMGR RUN
"<database>" "<agentname>"
console command.
How do you run an agent
from a "DOS" prompt on a Domino 6 server (on
NT/2000)?
Use the command nserver.exe -c "TELL AMGR RUN
'<database>' '<agentname>'"
console command.
Development
How do you generate an
XML view automatically on a Domino web server?
Domino R5.02 and above includes a URL
command called ?ReadViewEntries which can be used to
display an XML version of a view without any
programming. e.g. http://server/database.nsf/viewname?readviewentries
How do you run a scheduled
agent on the Domino server immediately?
Write one agent which you execute from the Notes Client
which uses the RunOnServer method to invoke the agent
you want to execute on the server.
Notes Client Features
How do you read your most
recent unread mail message with one keystroke?
Press the ~ key whilst you are using the R4 style
workspace.
How do you toggle unread marks?
Navigate to the document that you want to mark
read/unread and use the Insert key to toggle the unread
marks.
How do you see the NRPC
traffic that flows between the Notes client and the
Domino server?
Use the client NOTES.INI parameter
CLIENT_CLOCK=1 then restart your client. A debug
window will appear and the NRPC traffic wil be shown in
the window.
How
do you send a link to a file on a LAN server via Notes
mail?
Create a shortcut to the file on your desktop (.lnk
file). Drag and drop the shortcut into the body of
a new mail message then send to your friends/colleauges.
Operating
System
How
do you create a file on the operating system which
launches Notes and opens a specific database, view or
document?
Create a doclink in your Notes client and then open a
text editor and choose Paste. Save the text that
has been pasted into the file with a .NDL extension.
Now execute the .NDL file from your operating system and
it should launch the Notes client and link to the Notes
resource.
How
do you shut down a Domino 5 server from the command line
(or from a backup utility)?
Three methods; 1) net stop
"<NT Service name for Lotus Domino
Server>" 2) Type NSERVER -q at the
command prompt 3) Type NSERVER -c "q" at the
command prompt.
How
do you shut down a Domino server (on NT or Windows 2000)
from a remote backup server so that you can backup
across the network?
Ensure that Domino is installed as a
NT Service then use the SC utility from the NT
resource kit to issue net stop "Lotus Domino
Server"
How
do you start up or shut down Domino 5 server tasks on
schedule?
On the Windows platform, create a
Program document and use Program Name: NSERVER.EXE and
Command Line: "-c <command>".
e.g. To tell the server to quit issue "-c
quit" or to tell the router to start issue "-c
load router".
Browser
Features
How do you link from a web page
to a specific document or design element in the Notes client?
Notes version 5.09a introduced Notes URLs.
(e.g. notes://server/database/<design element
or document>). You can use this syntax in a web
page to link directly from the web page to a design
element (e.g. view) or . Any syntax valid for
Domino HTTP URLs is supported. To link to a local
database use the following syntax
(notes:///database/<design element or
document). For Notes clients before R5.09a it is
possible to add entries into the Windows registry to
achieve the same result.
WebSphere and Domino Integration
How do you authenticate with
WebSphere (java) logic from a Notes application?
Set up your Domino and WebSphere servers to use Single
Sign-On and then use the getSessionToken method in a
client side java agent. Use the recently
documented server parameter
to get the token from a nominated Domino server.
e.g. String token = getSessionToken("server").
This parameter has existed since R5.06a but it was only
documented in R5.010.
|