Schedule command to shutdown a service on Domino for iSeries (AS/400) - RESOLVED

Is there a way to schedule a command to shutdown a particular service? On a Wintel box I would create a program doc to issue nserver -c “tell mytask quit” but that won’t work on iSeries. Right now I have a database that runs a scheduled agent to send the command to the console, but I would like to change this so our admin can support it, w/o having to learn Lotusscript. BTW we’re doing this because the particular task is causing server shutdown to hang when we try to do backups.

Subject: Schedule command to shutdown a service on Domino for iSeries (AS/400)

Hi Jeremy,

What do you mean? IF you need to stop one domino task, it should work as in the windows box.

I have several of them on an iSerries running as expected.

Besides, your system admin can create a CL to bring the server down, and if the server hangs this CL can end the all subsystem.

But, I propose you to check why this task is not ending normally. Should be the best option.

HTH

Daniel

Subject: RE: Schedule command to shutdown a service on Domino for iSeries (AS/400)

There is a CL to bring down the server but it’s hanging on this task. I want to schedule the task to end at a certain time. You cannot issue the same command “nserver -c” because nserver is an executable file in Windows but not iSeries. So if someone knows how to do this on the iSeries, using a Program document that would help resolve my request. Thx.

Subject: RE: Schedule command to shutdown a service on Domino for iSeries (AS/400)

Hi Jeremy,

Sorry but I didn’t figured out.

You should use $server instead of nserver.

$server is going to be functional on any OS.

Besides, in your CL you can wait a minute or two, then end server using option ABNORMAL.

But again, I prefer to check why this task is not responding.

HTH

Daniel

Subject: RE: Schedule command to shutdown a service on Domino for iSeries (AS/400)

Ok my program doc has this in the command line field:$server -c “Tell Router Update Config”

The message I get is “Unable to locate program” I understand the need to check the task, and I know about the ABNORMAL option but if we can try to get the program doc to work I’ll worry about the other stuff later. Thx.

Subject: RE: Schedule command to shutdown a service on Domino for iSeries (AS/400)

OK,

I will ave to look on the server document. The only problem is that I will be back to the office next week.

I have no access to this server from home…

can you maybe double check if in the field “Program Name” you have only $server, and in the field “Command Line” you have "-c “Load catalog”?

Daniel

Subject: RE: Schedule command to shutdown a service on Domino for iSeries (AS/400)

that was it. I didn’t separate the program and the command line options. I put $server in the program name field and -c “tell mytask quit”. I tried it again with nserver as the program name and it failed, so I’m glad to know about $server as an alternative. Also there is a another response about not using option *immed when shutting down Domino from the CL which I think is happening. I have our iSeries admin checking into it but in the meantime I can use the program document. Thx for all the help.

Subject: Schedule command to shutdown a service on Domino for iSeries (AS/400)

We use the command below and it works great. You can run it from a CL or the job schedule. Make sure not to change it to *immed because it will end the server hard. This command issues quit to the console as if you typed it.

ENDDOMSVR SERVER(servername)

You can also do a SBMDOMCMD and send any command you would type at the console.

Subject: RE: Schedule command to shutdown a service on Domino for iSeries (AS/400)

Here is a CL program that might resolve your problem with tasks hanging on shutdown. Mine happens to be SMTP. Have fun!*********************************************************************

SEQNBR *…+… 1 …+… 2 …+… 3 …+… 4 …+… 5 …+… 6 …+… 7 …+… 8 …+… 9 …+. DATE

100-  START:      PGM                                                                                 10/27/03

200-              SBMDOMCMD  CMD('TELL ROUTER QUIT') SERVER(DOMINO)                                   09/18/04

300-              DLYJOB     DLY(120)                                                                 09/18/04

400-              SBMDOMCMD  CMD('TELL SMTP QUIT') SERVER(DOMINO)                                     09/18/04

500-              DLYJOB     DLY(120)                                                                 09/18/04

600-              ENDDOMSVR  SERVER(DOMINO)                                                           11/04/03

700-              DLYJOB     DLY(120)                                                                 11/04/03

800-              MONMSG     MSGID(LNT0922) EXEC(ENDDOMSVR SERVER(domino) +                           11/04/03

900                            OPTION(*IMMED))                                                        11/04/03

1000- DLYJOB DLY(120) 10/27/03

1100- ENDDOMSVR SERVER(DOMAPPS) 10/27/03

1200- DLYJOB DLY(120) 11/04/03

1300- MONMSG MSGID(LNT0922) EXEC(ENDDOMSVR + 11/04/03

1400 SERVER(domapps) OPTION(*IMMED)) 11/04/03

1500- DLYJOB DLY(120) 10/27/03

1600- SAV DEV(‘/qsys.lib/tc.devd’) OBJ((‘/domino/*’)) + 02/05/04

1700 SAVACT(*YES) SAVACTOPT(*ALWCKPWRT) + 02/05/04

1800 OUTPUT(*none) ENDOPT(*UNLOAD) 02/05/04

1900- DLYJOB DLY(120) 10/27/03

2000- RMVLNK OBJLNK(‘/domino/dominomail/data/pid.nbf’) 01/16/04

2100- STRDOMSVR SERVER(DOMINO) 11/04/03

2200- DLYJOB DLY(120) 10/27/03

2300- RMVLNK OBJLNK(‘/domino/domapps/data/pid.nbf’) 01/16/04

2400- STRDOMSVR SERVER(DOMAPPS) 10/27/03

2500- END: ENDPGM 10/27/03

Subject: RE: Schedule command to shutdown a service on Domino for iSeries (AS/400)

I think our iSeries admin is using option *immed so I’ll have him check his program. Daniel was able to get me pointed in the right direction for the program document. Thx for the SBMDOMCMD commmand, I’ll try that out something. Thx for the help!