def serverinfo(url='http://localhost:8080/manager', timeout=180):
 data = _wget('serverinfo', {}, url, timeout=timeout)
 if (data['res'] is False):
  return {'error': data['msg']}
 ret = {}
 data['msg'].pop(0)
 for line in data['msg']:
  tmp = line.split(':')
  ret[tmp[0].strip()] = tmp[1].strip()
 return ret

def serverinfo ( url = 'http://localhost:8080/manager' , timeout = 180 ) : data = _wget ( 'serverinfo' , { } , url , timeout = timeout ) if ( data [ 'res' ] is False ) : return { 'error' : data [ 'msg' ] } ret = { } data [ 'msg' ] . pop ( 0 ) for line in data [ 'msg' ] : tmp = line . split ( ':' ) ret [ tmp [ 0 ] . strip ( ) ] = tmp [ 1 ] . strip ( ) return ret
return details about the server url : URL the url of the server manager webapp timeout : 180 timeout for http request cli examples: .