Looking for some help on how I actually set the properties to enable tracing for %Net.SSH.Session ?

The doc is here:

The values look bitwise in their defaultness and I cant seem to figure out how to enable it in my object (or if I am going about this wrong altogether).  I am troubleshooting an elusive ssh error: unable to exchange encryption keys in a catch at the moment.

Would appreciate a clue if anybody has experience with it... thank you.


  • 0
  • 0
  • 116
  • 2
  • 1



Just saw this in the documentation: 

method SetTraceMask(pTraceMask As %Integer, pTraceFile As %String = "") as %Status

sorry for the troubles and jumping the gun on asking for help!


well, maybe spoke too soon as I see nothing coming from enabling the business services to TRACE and setting:

Set tSC = ..%sshSession.SetTraceMask(64,"/tmp/sftp-trace.log")
Set tSC = ..%sshSession.SetTraceMask(256,"/tmp/sftp-keys.log")

still not seeing any tracing at this point.

Your second call may be overwritting the value in the first.  I would suggest setting all values you want set in a single call, with the output going to a single file.  For example:

s status=connection.SetTraceMask(511,"/tmp/ssh.log")

Also, double check that you're running this before the connection is made.   I usually run it immediately after creating the new %Net.SSH.Session object.