EnableDiable Integration Server HTTPHTTPS ports via shutdown script

Is there a way to enable/disable Integration Server’s HTTP/HTTPS ports
via a wM flow service which can be called from a IS shutdown Script ? or any other way to do the same ?
I have implemented Enable/Disable of MQ Listeners via a script in the past but couldnt find anything in wM Documentation for HTTP/HTTPS ports .


Use the extended setting watt.server.ns.hideWmRoot=false to display the WmRoot package. In this package, use wm.server.ports:listListeners to list all your ports and required vars. Use the service wm.server.net.listeners:enableListener to enable your listener, wm.server.net.listeners:disableListener to disable it. I guess you can find a smart way to call these from your script.