def METHOD_NAME(self):
    if not self.mgmtPort:
        with open(self.CMDLINE, 'r') as fd:
            cmdline = fd.read()
            for p in cmdline.split():
                if 'port' in p:
                    self.mgmtPort = p.split("=")[1]
                    break
    if not self.mgmtIp:
        raise Exception('cannot find port in %s' % Server.CMDLINE)
    return self.mgmtPort