for j in comandos:
stdin, stdout, stderr = client.exec_command(format(j))
stdin.flush()
salida = stdout.read()
for trozo in salida.strip().split("SIPWISE-NGCP-MONITOR-MIB::"):
datos = re.findall(
"hbStatus(?:Proc|Host|Node)\.(\d+) = INTEGER: ((\w+)\(\d\))", trozo, re.M)
mystring = trozo.replace('\n', '').replace('\r', '')
for d in datos:
arreglo.append({
"comando": j,
"key": d[0],
"valor": d[2]