Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Printing out System Security Property Values in the Cache Terminal

Question
James Hipp · Jul 29, 2019

Printing out System Security Property Values in the Cache Terminal

Hello,

I am struggling to print out the actual property values of the Security.System class.

https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls

 

I was hoping to be able to print the Authentication Enabled properties of a system from the command line using the Get or GetProperties class method. Currently, however, I am only able to get a return 1 or Invalid Oref error.

 

I would expect one of these to work, but I think I am missing something. Any tips?

%SYS>w ##class(Security.System).Get("AutheEnabled")

1

%SYS>w ##class(Security.System).GetProperties("AutheEnabled")

0 {?2<INVALID OREF>zGetProperties+3^Security.System.1<%SYS3)$^zGetProperties+3^Security.System.1 +X^@ +1

 

I can do an Export from this same class and see the value in the XML file, but I would like to return that specific value from one line of code if possible.

 

Thanks,

- James

#ObjectScript #System Administration #Terminal #Caché

Source URL:https://community.intersystems.com/post/printing-out-system-security-property-values-cache-terminal