def index(rev, type, ip, x=''): ''' agent端程序安装主函数 ''' if not rev or not ip: return False if not type: type = 'batch' try: r = osaBatchLib.batchSendCmd(rev, ip, type) except Exception, e: save_log('ERROR', 'BATCH_INSTALLTION:' + str(e))
def index(rev, type, ip, x=""): """ agent端程序安装主函数 """ if not rev or not ip: return False if not type: type = "batch" try: r = osaBatchLib.batchSendCmd(rev, ip, type) except Exception, e: save_log("ERROR", "BATCH_INSTALLTION:" + str(e))
def index(rev,type,ip,x=''): ''' @ 配置文件备份模块 return 空 ''' if not rev or not ip: return False if not type: type = 'batch' try: r = osaBatchLib.batchSendCmd(rev,ip,type) except Exception as e: save_log('ERROR','BATCH_CONFIG_BACKUP:'+str(e)) #子线程退出 sys.exit()
def index(rev,type,ip,x=''): ''' @ 负载检查模块 return 空 ''' if not rev or not ip: return False if not type: type = 'batch' try: r = osaBatchLib.batchSendCmd(rev,ip,type) except Exception as e: save_log('ERROR','BATCH_LOADSTATE_CHECK:'+str(e)) #子线程退出 sys.exit()
def index(rev, type, ip, x=''): ''' @ 配置文件备份模块 return 空 ''' if not rev or not ip: return False if not type: type = 'batch' try: r = osaBatchLib.batchSendCmd(rev, ip, type) except Exception as e: save_log('ERROR', 'BATCH_CONFIG_BACKUP:' + str(e)) #子线程退出 sys.exit()
def index(rev, type, ip, x=''): ''' @ 命令或者脚本执行主函数 return 空 ''' if not rev or not ip: return False if not type: type = 'batch' try: r = osaBatchLib.batchSendCmd(rev, ip, type) except Exception as e: save_log('ERROR', 'BATCH_COMMAND:' + str(e)) #子线程退出 sys.exit()
def index(rev,type,ip,x=''): ''' @ 命令或者脚本执行主函数 return 空 ''' if not rev or not ip: return False if not type: type = 'batch' try: r = osaBatchLib.batchSendCmd(rev,ip,type) except Exception as e: save_log('ERROR','BATCH_COMMAND:'+str(e)) #子线程退出 sys.exit()
def index(rev, type, ip, x=''): ''' @ 负载检查模块 return 空 ''' if not rev or not ip: return False if not type: type = 'batch' try: r = osaBatchLib.batchSendCmd(rev, ip, type) except Exception as e: save_log('ERROR', 'BATCH_LOADSTATE_CHECK:' + str(e)) #子线程退出 sys.exit()