You can use the following to enable/disable ports:
WmRoot/wm.server.net.listeners:enableListener
WmRoot/wm.server.net.listeners:disableListener
Check WmRoot/wm.server.net.listeners:listListeners to see the input/output format that is required.
Obviously, you should be aware that these internal APIs are not supported, and can therefore change without notice.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services