예제 #1
0
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))
예제 #2
0
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))
예제 #3
0
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()
예제 #4
0
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()
예제 #5
0
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()
예제 #6
0
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()
예제 #7
0
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()
예제 #8
0
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()