def param_show(param=None):
 ret = _run_varnishadm('param.show', [param])
 if ret['retcode']:
  return False
 else:
  result = {}
  for line in ret['stdout'].split('\n'):
   m = re.search('^(\\w+)\\s+(.*)$', line)
   result[m.group(1)] = m.group(2)
   if param:
    break
  return result

def param_show ( param = None ) : ret = _run_varnishadm ( 'param.show' , [ param ] ) if ret [ 'retcode' ] : return False else : result = { } for line in ret [ 'stdout' ] . split ( '\n' ) : m = re . search ( '^(\\w+)\\s+(.*)$' , line ) result [ m . group ( 1 ) ] = m . group ( 2 ) if param : break return result
show params of varnish cache cli example: .