Written by

Question Steven Coker · Jul 12, 2023

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

Steven Coker  Jul 25, 2023 to Eduard Lebedyuk

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?

0
Eduard Lebedyuk  Jul 25, 2023 to Steven Coker

No, services are not defined in iris.cpf.

You need to call irissesson from bash/ps/cmd.

0
Alex Woodhead · Jul 17, 2023

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

0
Steven Coker  Jul 25, 2023 to Alex Woodhead

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?

0