def ls(url='http://localhost:8080/manager', timeout=180):
 ret = {}
 data = _wget('list', '', url, timeout=timeout)
 if (data['res'] is False):
  return {}
 data['msg'].pop(0)
 for line in data['msg']:
  tmp = line.split(':')
  ret[tmp[0]] = {'mode': tmp[1], 'sessions': tmp[2], 'fullname': tmp[3], 'version': ''}
  sliced = tmp[3].split('##')
  if (len(sliced) > 1):
   ret[tmp[0]]['version'] = sliced[1]
 return ret

def ls ( url = 'http://localhost:8080/manager' , timeout = 180 ) : ret = { } data = _wget ( 'list' , '' , url , timeout = timeout ) if ( data [ 'res' ] is False ) : return { } data [ 'msg' ] . pop ( 0 ) for line in data [ 'msg' ] : tmp = line . split ( ':' ) ret [ tmp [ 0 ] ] = { 'mode' : tmp [ 1 ] , 'sessions' : tmp [ 2 ] , 'fullname' : tmp [ 3 ] , 'version' : '' } sliced = tmp [ 3 ] . split ( '##' ) if ( len ( sliced ) > 1 ) : ret [ tmp [ 0 ] ] [ 'version' ] = sliced [ 1 ] return ret
list devices in server density results will be filtered by any params passed to this function .