Written by

Question Phillip Wu · Apr 23, 2023

Interoperability "Productions" Stop and Start from command line

Is it possible to stop and start a production from the command line?

If so please tell me the command and hopefully a link to the documentation for such a function.

I understand that you can have only one production per namespace; namespace has to be enabled for production.

Thanks

Product version: IRIS 2022.2

Comments

Jeffrey Drumm · Apr 23, 2023

@Padmaja Konduru's solution works from the IRIS/Caché prompt when in the proper namespace.

If you need to be able to script this from the OS, there will be additional steps required, such as piping command input to iris session <instance> from the OS shell. You will likely need to include a username and password in the piped input, which is generally not a good idea. Enabling OS authentication may be an option, but that's a global setting and not (easily) configurable per-user.

0
Eduard Lebedyuk  Apr 24, 2023 to Jeffrey Drumm

Enabling OS authentication may be an option, but that's a global setting and not (easily) configurable per-user.

But is there a way to configure OS authentication for one user only?

0
Jeffrey Drumm  Apr 24, 2023 to Eduard Lebedyuk

I assumed there would be a way to accomplish this with a form of OS/Delegated authentication, but I may be wrong. It wouldn't be the first time wink

EDIT:​​​​​ Let me amend that. OS authentication works only for users whose OS accounts exist in IRIS, right? So don't create any IRIS users that have matching OS accounts ... With the exception of the account that needs OS authentication.

0
Scott Roth · Apr 25, 2023

it is possible to use a shell script to sign into a Terminal Session as _system or whatever to execute Ens.Director Start or Stop Production. We do something similar to start/stop objects using EnableConfigItem via shell script.

0
Eduard Lebedyuk  Apr 28, 2023 to Scott Roth

Yes, either enable OS authentication for passwordless login or pass user/password as first two lines of the script.

0