Esempio n. 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))
Esempio n. 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))
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()