How to add webterminal when you have no terminal access
I though this is a pretty cool way of installing webterminal in an environment where I had Management Portal / Visual code access, but I had no terminal access. zpm was already present. otherwise you could add it in the same class.
- Create the following class file
- Compile. This will take a while, and then you will see the output from zpm!
- You can now open the webterminal by opening http://your-host/terminal/
Class Theo.Util.Webterminal Extends %RegisteredObject
{
/// Description
ClassMethod install() As %Status [ CodeMode = objectgenerator ]
{
zpm "install webterminal"
}
}
Comments
Nice "hack" in using ObjectScript Code Generator! ObjectScript is a powerful tool!
I am getting a 401 error when trying to reach the page after install. I am running IRIS 2022.1.2 (Build 574U) on my laptop.
This did not work for me either. I used ##class(HS.UI.Navigation.RestHandler).BuildRootUrl()
to get the host url. Then tried to launch the web terminal as listed in step 3. I got this error
"the requested URL/terminal was not found on this server"
@Theo Stolker
Is there a step that may have been missed in these instructions?
the final slash after terminal is important !
http://localhost:52773/terminal/
you can verify the installation in SMP System > Security Management > Web Applications
Hi. Note (which should be obvious), the typo in that there are only two 't's in http, so:
http://localhost:52773/terminal/
thx. fixed
Alternate approach:
in SMP SQL run this:
CREATEPROCEDURE ZPM.terminal() LANGUAGE OBJECTSCRIPT
{
zpm "install webterminal"
quit 1
}and next SELECT ZPM.terminal()