Exemplo 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))
Exemplo 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))
Exemplo 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()
Exemplo 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()
Exemplo 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()
Exemplo 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()
Exemplo 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()
Exemplo 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()