def get_vol_list(ip, user, passwd):
 cmd = 'showvv'
 showvv_list = run_ssh_thread(ip, user, passwd, cmd)
 vol_list = []
 line_num = 0
 for line in showvv_list:
  line_num += 1
  if ('-------------------------' in line):
   break
  if (('-----' in line) or ('rcpy.' in line) or ('.srdata' in line) or ('0 admin' in line)):
   continue
  if (line_num >= 4):
   vol_stats = line.split()
   vol_list.append(vol_stats[1])
 return vol_list

def get_vol_list ( ip , user , passwd ) : cmd = 'showvv' showvv_list = run_ssh_thread ( ip , user , passwd , cmd ) vol_list = [ ] line_num = 0 for line in showvv_list : line_num += 1 if ( '-------------------------' in line ) : break if ( ( '-----' in line ) or ( 'rcpy.' in line ) or ( '.srdata' in line ) or ( '0 admin' in line ) ) : continue if ( line_num >= 4 ) : vol_stats = line . split ( ) vol_list . append ( vol_stats [ 1 ] ) return vol_list
get a list of volumes to build metric definitions with .