Discussion (16)1
Log in or sign up to continue

Your terminal prompt can be configured to display the instance. 

see TerminalPrompt  eg.  config>namespace>

[Startup]    TerminalPrompt="3,2"

and you name your config  "SMP<portnumber>"    which should be valid.
eventually only "<portnumber> " might do it as well.

On the page System Administration > Configuration > Additional Settings > Startup, in the TerminalPrompt row, select Edit.

Am I reading it wrong? Dont see port number anywhre

  • 2 - Namespace name. For example, %SYS>. The current namespace name is contained in the $NAMESPACE special variable. It can be an explicit namespace name or an implied namespace name.

  • 3 - Config name. The name of your system installation. For example, IRIS2>. This is the same for all of your terminal processes

Just add this to %ZLANGC00.mac:

/// Display Management Portal Port
ZMPORT
ZMP
  W ^%SYS("WebServer","Port")
  QUIT
JEFF>zmp
57772
JEFF>

Or This:

/// Display Management Portal URL
ZMURL
ZMU
  Set sc=##class(%RoutineMgr).GetWebServerPort(.Port,.Server,.URLPrefix,.URL)
  W URL_"csp/sys/UtilHome.csp"
  QUIT
JEFF>zmu
http://WIN7X64-VM02:57772/csp/sys/UtilHome.csp
JEFF>

Why waste valuable Prompt characters? laugh

Thanks to @Herman Slagman and @Robert Cemper for letting me blatantly steal their ideas wink