Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Status Under Consideration
Workspace Domino
Created by Guest
Created on Dec 7, 2022

Execute commands in text file sequentially

I like to automate installation and configuration processes with tools e.g. Ansible, batch files, ... . Therefore I tried rolling out a template with a text file that contained the necessary steps.

I defined in a program document : nserver -c "< c:\temp\mailtemplate.txt" with the following mailtemplate.txt file:


set conf Server_Restricted=1
drop all
tell router quit
Load convert -u mail\user1.nsf * mail12.ntf
Load convert -u mail\user2.nsf * mail12.ntf
Load dbmt -ct 0 -ut 1 mail\user1.nsf
Load dbmt -ct 0 -ut 1 mail\user2.nsf
load router
set conf Server_Restricted=0


... but unfortunately the server didn't executed the commands in a sequential order and didn't wait until a command was executed.


So I would like to have another parameter for executing the command text file sequentially. e.g. nserver -c -s "< c:\temp\mailtemplate.txt"


Martin Vogel


PS: Maybe the server can better controll the execution of commands than via program documents --> Execute Program Documents sequentally

  • Attach files
  • Guest
    Reply
    |
    Dec 12, 2022
    if you really want to do this thru the command line (instead of doing it within Domino), why dont you do that just a simple batch/cmd file from outside of Domino?

    @Thomas: Thanks for the tip. I'll try if this can be controlled in a batch/cmd file.

  • Admin
    Thomas Hampel
    Reply
    |
    Dec 9, 2022

    Currently no plans to provide this feature, however leaving it in the queue for people to vote on this idea.

  • Admin
    Thomas Hampel
    Reply
    |
    Dec 9, 2022

    if you really want to do this thru the command line (instead of doing it within Domino), why dont you do that just a simple batch/cmd file from outside of Domino?

  • Admin
    Thomas Hampel
    Reply
    |
    Dec 9, 2022

    oops, yes. you're shutting down the router. Still this is strange

  • Guest
    Reply
    |
    Dec 9, 2022

    @Thomas: You are right. This is an example for a CI/CD way, but in my example the router is only shutdown not the server ;-)

    I love the DevOps way and looking forward to realize some processes the same way in Domino,too. BTW: in Ansible I controlled an entire migration of an Domino server with all necessary steps (e.g. shutdown of Domino server, disabled windows service, reboot windows server, db maintenance, start domino installation, ....).

    In my opinion this should be the new way to administer an Domino enviornment.


    MV

  • Admin
    Thomas Hampel
    Reply
    |
    Dec 9, 2022
    I guess the above is just an example, because you dont need to shut down your server just for doing a mail template upgrade
  • Guest
    Reply
    |
    Dec 8, 2022
    Those commands are processed sequentially.

    You could be right.

    All Domino tasks would have to be rewritten to support synchronous command processing.

    I don't know how the Domino server process handles commands in a text file. all-in? When Domino knows about all started processes, the sequential processing of a text file could work.

    You can recognize the few commands that work synchronously by trying to type them on a console that has live turned off.

    I would like to automate recurring admin tasks with text files without sitting in front of a server console. ;-)


    Martin Vogel

  • Guest
    Reply
    |
    Dec 8, 2022

    Those commands are processed sequentially.

    The problem is that they just pass to other existing processes running in parallel.

    All Domino tasks would have to be rewritten to support synchronous command processing.

    You can recognize the few commands that work synchronously by trying to type them on a console that has live turned off.