informatica:weblogic:wlst:comandos
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:weblogic:wlst:comandos [2017/07/19 12:17] – jose | informatica:weblogic:wlst:comandos [2017/09/18 15:46] (current) – jose | ||
---|---|---|---|
Line 56: | Line 56: | ||
print manejados[i][4] | print manejados[i][4] | ||
</ | </ | ||
+ | |||
+ | ====== Listado de un ls ====== | ||
+ | v_lista=ls('/ | ||
+ | for v_linea in v_lista: | ||
+ | print v_linea | ||
+ | |||
+ | ===== Sacar una cadena ===== | ||
+ | import re es Regular Expression | ||
+ | import re | ||
+ | cadena=" | ||
+ | m = re.search(' | ||
+ | print m.group(1) | ||
+ | Otra forma | ||
+ | print(cadena).split(' | ||
+ | | ||
+ | print(str(get(' | ||
+ | | ||
+ | En el caso del Target: | ||
+ | get(' | ||
+ | array(weblogic.management.configuration.TargetMBean, | ||
+ | Lo sacamos: | ||
+ | print(str(get(' | ||
+ | osb_cluster | ||
+ | | ||
+ | | ||
+ | ===== Sacar listado targets ===== | ||
+ | < | ||
+ | cd('/ | ||
+ | v_lista=ls(returnMap=' | ||
+ | |||
+ | for v_linea in v_lista: | ||
+ | cd('/ | ||
+ | if get(' | ||
+ | v_targets=list() | ||
+ | for v_target in get(' | ||
+ | v_targets.append(str(v_target).split(' | ||
+ | v_total=v_linea+" | ||
+ | else: | ||
+ | v_total=v_linea+" | ||
+ | print(v_total) | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== RCU ===== | ||
+ | / | ||
+ | |||
+ | |||
+ | ===== Bucle ===== | ||
+ | < | ||
+ | v_estat=" | ||
+ | while v_estat != " | ||
+ | try: | ||
+ | nmConnect(username=' | ||
+ | v_estat = " | ||
+ | except: | ||
+ | print "No esta connectat" | ||
+ | time.sleep(10) | ||
+ | </ | ||
+ | |||
+ | ===== Borrar cluster Coherence ===== | ||
+ | Sin target: | ||
+ | cd('/' | ||
+ | delete(' | ||
informatica/weblogic/wlst/comandos.1500466625.txt.gz · Last modified: 2017/07/19 12:17 by jose