Enabling telnet
Can %Service_telnet be enabled programmatically? I have the need to enable this feature so that I can automate a script I have for Cache, but unless the telnet service is on, the session cant connect.
Comments
Check Security.Services class.
set p("Enabled")=1set sc = ##class(Security.Services).Modify("%Service_Telnet", .p)I should have clarified better: can it be done programmatically outside of CTerm? Like can it be enabled within the cache.cpf file, for example?
No, services are not defined in iris.cpf.
You need to call irissesson from bash/ps/cmd.
Had similar: zn "%SYS" set svc=##class(Security.Services).%OpenId("%service_telnet") set svc.Enabled=1 do svc.%Save()
Note: Class documentation says DO NOT update with SQL. But can see / check settings in %SYS, with for example: SELECT * from Security.Services
I should have clarified better: can it be done programmatically outside of CTerm? Like can it be enabled within the cache.cpf file, for example?
You could try enabling this service on system Startup, with the code snippet in a custom ZSTART routine.
Have a look at the resource: https://docs.intersystems.com/irisforhealth20231/csp/docbook/Doc.View.c…