Quick Diagnostics Scripts

If you find that you are getting peculiarities with OCR or SUT connectivity or the merely unexplained issue, try this code. I recommend that you run it when everything is running as expected and use that output as your benchmark data. It is also super helpful if you have to submit a ticket:

put connectioninfo()
put version().archive
put ocrversion()
put GetOption(“EnableEpgwRdp”)

1 Like

Thanks for this! I added it to a few scripts and the output is pretty clear. Are there any useful add-ons to that?

put GetOption() can be used more generically to grab other values that you may have set via defaults write. For example, I expect that as more customers move to implement Find by Description, these options will be more popular:

put GetOption(“ElementDescriptionProvider”)

put GetOption(“ElementDescriptionConfig_Anthropic_serviceURL”)
1 Like

Adding this to my longer single-script workflows makes sense, but in terms of performance, would it hurt having it in smaller scripts that are contained in a DAI model, for example? Or, for those snippets and small workflows ,should this be simply embedded within a failure function so that it only gets kicked off when a workflow-halting failure occurs? Thanks!

These are my debug “go-to” items. While they run very quickly, I would not regularly incorporate them into my production scripts unless I was seeing major issues that were hard to replicate.

1 Like