#!/usr/bin/python3 # -*- coding: utf-8 -* #The config for global variable import os,sys,importlib importlib.reload(sys) #------------------------------------------------------------------- #必配置项 #黑方配置项,需满足下列配置参数,或将下列参数改为实际黑方中的参数 DPM_BC_IP = '10.10.20.134' #黑方IP DPM_BC_NEWIP = '10.18.32.221' #第四轮黑方 DPM_BC_NEWIP2 = '10.18.32.215' #新黑方IP DPM_BC_IP2 = '10.10.14.90' #第二台黑方IP DPM_BC_Url = 'https://'+DPM_BC_IP #黑方服务器访问URL DPM_BC_NEWUrl = 'https://'+DPM_BC_NEWIP #第四轮黑方服务器访问URL DPM_BC_Url2 = 'https://'+DPM_BC_IP2 #第二台黑方服务器访问URL DPM_BC_NEWUrl2 = 'https://'+DPM_BC_NEWIP2 #新黑方服务器访问URL Sec_IP = '192.169.0.98' #IP2 WebPWD = 'test@2008' #管理员帐户通用密码包括aud_system,sec_system Dedup_Lib = 'dedup' #重删介质名称 Black_ServerName = 'Black_Server' #服务器名称修改-服务器名称 alarmbox_in = 'wd@unary.com.cn' #测试邮箱时接收信息的邮箱地址 diskpath1='/dev/sdc' #创建整列时选择未使用的磁盘路径1,需配置真实的 diskpath2='/dev/sdd' #创建整列时选择未使用的磁盘路径2,需配置真实的 diskpath3='/dev/sde' #创建整列时选择未使用的磁盘路径3,需配置真实的 diskpath4='/dev/sdf' #创建整列时选择未使用的磁盘路径4作为热备盘,需配置真实的 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #黑方参数默认项,如果黑方的下列默认参数修改了,相应的此处需修改 browser='firefox' Scripts_Path = os.path.split(os.path.realpath(__file__))[0] Scripts_Path = os.path.dirname(Scripts_Path) #Scripts_Path = Scripts_Path.decode('gbk') Sys_Admin = 'sys_admin' #系统管理员帐户 Aud_Admin = 'aud_admin' #审计管理员帐户 Sec_Admin = 'sec_admin' #安全管理员帐户 BCUser='unadba' #访问黑方服务器mysql数据库用户名 BCPwd='1223Bc@2008' #黑方服务器mysql数据库root用户密码 BCPort='3306' #访问黑方服务器mysql数据库端口号 BCDB='unary' #访问黑方服务器mysql数据库库名 SSHUser = 'root' #ssh登录黑方用户名 SSHPwd = '2008Bc1223!@#' #SSH登录黑方密码 SSHPort = '22' #SSH登录黑方端口号 Admin_SSHUser = 'admin' #ssh登录黑方用户名 Admin_SSHPwd = '2008Bc1223@#$' #SSH登录黑方密码 #适配平台编写DPM自动化用例 PT = 'pt' #普通介质名称 #备份传入参数 Full_Bk = u'完全' #完全备份 Divergence_Bk = u'差量' #差量备份 Compose_Bk_Full = u'合成备份_完全' #合成备份完全方式 Compose_Bk_Incre = u'合成备份_增量' #合成备份增量方式 Total_Bk_Scan = u'累积增量_扫描' #累计增量扫描方式 Total_Bk_Driver = u'累积增量_驱动' #累计增量驱动方式 Incre_Bk = u'增量' #增量 Y = 1 #操作 N = 0 #不操作 LS = 2 #流式备份无缓存项 S = '是' #属性校验文本"是" F = '否' #属性校验文本"否" Kingbase_Physical_Flow_NoCache = '2' #Kingbase_Physical没有缓存 Log_BK = u'日志' #日志备份 #文件备份与恢复部分 DPM_File_HostName = 'sqltest2' #文件备份代理主机名 DPM_PYPATH = 'c:\python27' #代理主机上的python安装路径,linux中使用绝对路径 DPM_COMMAND_PATH = 'C:\script' #代理主机上创建文件夹、文件的脚本所在路径,linux中使用绝对路径 DPM_Agent_HostIP_Win = '10.18.32.189' DPM_Agent_User_Win = 'Administrator' DPM_Agent_Pwd_Win = 'unary@2008' DPM_File_HostName_Lin = 'file_lin216' DPM_File_IP_Lin = '10.18.32.216' DPM_File_User_Lin = 'root' DPM_File_Password_Lin = '123456' DPM_File_AgentName = 'File' #S3备份与恢复部分 DPM_File_HostName = 'sqltest2' #文件备份代理主机名 DPM_PYPATH = 'c:\python27' #代理主机上的python安装路径,linux中使用绝对路径 DPM_COMMAND_PATH = 'C:\script' #代理主机上创建文件夹、文件的脚本所在路径,linux中使用绝对路径 DPM_Agent_HostIP_Win = '10.18.32.189' DPM_Agent_User_Win = 'Administrator' DPM_Agent_Pwd_Win = 'unary@2008' S3_HostName_Lin = 'S3' S3_IP_Lin = '10.18.32.91' S3_User_Lin = 'root' S3_Password_Lin = '111111' DPM_File_AgentName = 'File' #DPM_Agent_HostIP_Win = '10.18.32.117' #DPM_File_HostName = 'wincomm117' #DPM_Agent_Pwd_Win = '123456' #神通数据库备份恢复 ShenTong_HostName='ST_dpm' #神通代理主机名 ShenTong_UserName='sysdba' #神通数据库用户名 ShenTong_PWD='szoscar55' #神通数据库管理员密码 ShenTong_DBInstance='OSRDB' #神通数据库实例名 ShenTong_Port='2003' #神通数据库端口号 ShenTong_IP='127.0.0.1' ShenTong_HostIP='10.18.32.44' ShenTong_HostUser='root' ShenTong_HostPWD='111111' ShenTong_DBUser='root' ShenTong_DBPWD='szoscar55' ShenTong_IntallPath_L = '/opt/ShenTong/bin' ShenTong_IntallPath_W = 'C:\ShenTong\\bin' #神通兼容性win2008_64bit_shentong7 DPMST7_Win2008_HostIP='10.18.32.120' DPMST7_Win2008_User='administrator' DPMST7_Win2008_Pwd='123456' DPMST7_Win2008_IntallPath = 'C:\ShenTong\\bin' #Oracle_数据库备份恢复 OraLogic_HostIP_Lin = '10.18.32.113' OraLogic_Hostname_Lin = 'linoraclelogic' OraLogic_DBUser_Lin = 'system' OraLogic_DBlogin_Lin = 'sys' OraLogic_DBPwd_Lin = 'sys' OraLogic_DBInst_Lin = 'orcl' OraLogic_DBInstUp_Lin = str.upper(OraLogic_DBInst_Lin) Ora_Logic_DBInstance_Lin = OraLogic_HostIP_Lin+'/orcl' OraLogic_CachePath_Lin = '/tmp' Oracle_Logic_TableName1 = 'OraLogicTab1' #表1名称 Oracle_Logic_TableName2 = 'OraLogicTab2' #表2名称 OracleLogic_root_user = 'root' OracleLogic_pwd = '123456' #Oracle_12c逻辑数据库备份恢复 OraLogic_DBUser_Lin_12c = 'c##test' OraLogic_DBPwd_Lin_12c = '111111' OraLogic_HostIP_Lin_12c= '10.18.32.163' Ora_Logic_DBInstance_Lin_12c = OraLogic_HostIP_Lin_12c+'/orcl' OraLogic_Hostname_Lin_12c = 'oracle12c_logic' Oracle12CLogic_root_user = 'root' Oracle12CLogic_pwd = '111111' #H3C无代理备份恢复 H3C_Name = 'autotest_H3C' H3C_Agent_IP = '10.18.32.41' H3C_Agent_Name = 'root' H3C_Agent_PWD = '111111' H3C_BK_Cache_Path = '/opt' H3C_backup_name= 'test_cxw' sharePath = '/vms/vmbackuptmp' #H3C有代理备份恢复 H3C_Name_agent = 'autotest_H3C_agent' H3C_backup_name_agent= 'mimimal_cxw' #CNware备份恢复 CNware_backup_name= 'cnwarehuifu' CNware_Name = 'CNware' #Postgresql备份恢复 PostSql_DB_User= 'postgres' #Postgresql用户名 PostSql_DB = 'postgres' #数据库名称 PostSql_DB_Pwd_lin = '123456' #Postgresql数据库用户密码linux PostSql_Agent_Host_lin = 'postgresql' #postgresql数据库所在代理的主机名linux PostSql_DB_IP_lin = '10.18.32.193' #linux代理ip PostSql_DB_Port = '5432' #数据库连接端口 PostSql_InstallPath='/home/postgres/pgsql/bin' #数据库安装路径 PostSql_ArchivePath='/home/postgres/pgsql/archivedir' #数据库归档路径 PostSql_DataPath='/home/postgres/pgsql/data' #数据库data目录 PostSql_HostUser_lin='root' PostSql_HostPWD='unary@2008' #FusionSphere备份恢复 FS_Name = 'FusionSphere' DataStore = '14TB' #DM备份恢复 DM8_Agent_Name = 'DM8' #DM8代理名称 DM8_HostIP = '10.18.32.228' #DM8环境地址 DM8_LoginUser = 'root' #DM8系统登录用户 DM8_LoginPWD = '111111' #DM8系统登录密码 DM8_Pwd = '111111111' #DM8数据库登录密码 DM7_Agent_Name = 'DM' #DM7代理名称 DM7_HostIP = '10.18.32.222' #DM7环境地址 DM7_LoginUser = 'root' #DM7系统登录用户 DM7_LoginPWD = '123456' #DM7系统登录密码 DM7_Pwd = '123456789' #DM7数据库登录密码 DMbk_type1 = u'完全' #备份类型:完全、差量、增量 DMbk_type2 = u'增量' DMbk_type3 = u'差量' #DM8_Agent_Name = 'DM' #DM8代理名称 #DM8_HostIP = '10.18.32.222' #DM8环境地址 #DM8_LoginUser = 'root' #DM8系统登录用户 #DM8_LoginPWD = '123456' #DM8系统登录密码 #DM8_Pwd = '123456789' #DM8数据库登录密码 #db2备份恢复 DB2_HostName_lin = 'DB2' #DB2代理主机名_linux DB2_HostName_lin2 = 'localhost.localdomain' DB2_HostName_win = 'db2w125' #DB2代理主机名_windows DB2_HostIP_win = '10.10.11.121' #DB2数据库主机IP windows系统 DB2_HostIP_lin = '10.18.32.105' #DB2数据库主机IP linux系统 DB2_DB_User_lin = 'db2inst1' #DB2用户名linux DB2_DB_User_win = 'db2admin' #DB2用户名win DB2_DB_PWD = '111111' #DB2用户密码 DB2_PORT = '50000' #DB2端口号 Instance_lin = 'db2inst1' #实例名linux Instance_win = 'DB2' #实例名win DB2_database_name = 'TEST' #DB2数据库名 DB2_TableName='T1' #表名 DB2_InstallPath_Win = 'C:\Program Files\IBM\SQLLIB' #DB2安装路径_windows DB2_InstallPath_Lin = '/opt/ibm/db2/V9.7' #DB2安装路径_linux DB2_RecoveryCachePath_W = 'C:' DB2_env_lin = 'DATABASE=TEST;HOSTNAME=10.18.32.105;PORT=50000;PROTOCOL=TCPIP;UID=db2inst1;PWD=111111;' #DB2连接参数 DB2_env_win = 'DATABASE=TEST;HOSTNAME=10.18.32.125;PORT=50000;PROTOCOL=TCPIP;UID=db2admin;PWD=111111;' #DB2连接参数 DB2_User='root' DB2_PWD='111111' File_BackType1 = '1' #1: 完全备份 File_BackType2 = '2' #2:差量备份 File_BackType3 = '3' #3:增量备份 #DB2兼容性环境-win2003-db29.7_32bit DB2_HostName_win2003 ='Oracle10g' #win2003-db29.7_32bitDB2代理名称 DB2_HostIP_win2003 = '10.18.32.230' #DB2数据库主机IP windows系统 DB2_DB_User_win2003 = 'db2admin' #DB2用户名win DB2_DB_PWD_win2003 = '111111' #DB2用户密码 DB2_PORT_win2003 = '50000' #DB2端口号 Instance_win2003 = 'DB2' #实例名win DB2_InstallPath_win2003 = 'C:\Program Files\IBM\SQLLIB' #DB2安装路径_windows DB2_User_win2003='administrator' DB2_PWD_win2003='111111' DB2_env_win2003 = 'DATABASE=TEST;HOSTNAME=10.18.32.230;PORT=50000;PROTOCOL=TCPIP;UID=db2admin;PWD=111111;' #DB2连接参数 #MongoDB备份恢复 MongoDB_agent_name = 'mongodb' #MongoDB代理主机名 MongoDB_DB_User = 'test' #连接MongoDB数据库用户名 MongoDB_DB_PWD = '1234' #连接MongoDB数据库用户密码 MongoDB_port = '27017' #MongoDB端口 MongoDB_HostIP_lin = '10.18.32.106' #MongoDB代理主机ip MongoDB_dbname = 'test' MongoDB_dbcollname = 'autotest' Kingbase_HostUser_lin='root' Kingbase_HostPWD='123456' #Kingbase物理备份恢复 Kingbase_HostName_win = 'kingbase_122' #Kingbase代理主机名 Kingbase_HostName_lin = 'kingbasePhy' #Kingbase代理主机名--逻辑与物理普通方式备份 Kingbase_PhyLS_HostName = 'kingbaseLS' #Kingbase代理主机名--物理流式 Kingbase_HostUser_win = 'administrator' Kingbase_HostPWD = '123456' Kingbase_HostUser_lin = 'root' Kingbase_User = 'kingbase' #kingbase安装用户名 Kingbase_UserPWD = '123456' #kingbase安装密码 Kingbase_DB_User = 'SYSTEM' #连接Kingbase数据库用户名 Kingbase_DB_PWD = '123456' #连接Kingbase数据库用户密码 Kingbase_port = '54321' #Kingbase端口 Kingbase_HostIP_win = '10.18.32.147' #Kingbase代理主机ip Kingbase_HostIP_lin = '10.18.32.119' #Kingbase代理主机ip--逻辑与物理普通方式备份 Kingbase_PhyLS_HostIP = '10.18.32.102' #Kingbase代理主机ip--物理流式 Kingbase_DBInstance='TEST' #Kingbase数据库名 Kingbase_InstallPath_L = '/opt/Kingbase/ES/V7/bin' Kingbase_InstallUser_L = 'kingbase' Kingbase_InstallPath_W = 'C:\Kingbase\ES\V7' Kingbase_InstallUser_W = 'kingbase' Kingbase_UpdateDataPath_L = '/opt/Kingbase/ES/V7/data' Kingbase_ArchivePath_L = '/opt/Kingbase/ES/V7/archive_log' #Kingbase物理兼容性环境——win2003kingbaseV7——32bit Kingbase_HostName_win2003 = 'unary-e71ea0fa3' #Kingbase代理主机名 Kingbase_HostUser_win2003 = 'administrator' Kingbase_HostPWD_win2003 = '111111' #Kingbase_User = 'kingbase' #kingbase安装用户名 Kingbase_UserPWD_win2003 = '111111' #kingbase安装密码 #Kingbase_DB_User = 'SYSTEM' #连接Kingbase数据库用户名 Kingbase_DB_PWD_win2003 = '111111' #连接Kingbase数据库用户密码 #Kingbase_port = '54321' #Kingbase端口 Kingbase_HostIP_win2003 = '10.18.32.231' #Kingbase代理主机ip Kingbase_InstallPath_W2003 = r'C:\Kingbase\ES\V7' #kingbase安装路径 #Kingbase_InstallUser_W = 'kingbase' Kingbase_ArchPath_W2003 = r'C:\Kingbase\ES\V7\archive_log' Kingbase_DataPath_W2003 = r'C:\Kingbase\ES\V7\data' #Mysql物理备份与恢复 #DPM_Mysql_physical_HostName = 'mysqlphy_lin110' #DPM_Mysql_physical_DB_User = 'root' #DPM_Mysql_physical_DB_PWD = '123456' #DPM_Mysql_physical_DB_Port = '3306' #DPM_Mysql_physical_DB_IP_Remote = '10.18.32.110' #DPM_Mysql_physical_DB_IP_Local = '127.0.0.1' DPM_Mysql_physical_HostName = 'mysql' DPM_Mysql_physical_DB_User = 'root' DPM_Mysql_physical_DB_PWD = '111111' DPM_Mysql_physical_DB_Port = '3306' DPM_Mysql_physical_DB_IP_Remote = '10.10.29.29' DPM_Mysql_physical_DB_IP_Local = '127.0.0.1' DPM_Mysql_physical_DB = 'test' DPM_Mysql_physical_TableName1 = 'Mysql_Bak_Tab1' DPM_Mysql_physical_TableName2 = 'Mysql_Bak_Tab2' Mysql_physical_BinlogRe = '/usr/bin' DPM_MysqlDump = '/etc/my.cnf' DPM_MysqlBinLog = '/var/lib/mysql/mysql-bin.index' DPM_MysqlBin = '/usr/bin' DPM_MysqlBackup = '/opt/xtrabackup2.4.28/bin' DPM_MySQLservice = 'mysqld' #MySQL物理兼容性环境_centos8+MySQL8 DPM_MysqlPhy2_HostName = 'mysql8_logic' DPM_MysqlPhy2_DB_User = 'root' DPM_MysqlPhy2_DB_PWD = 'Unary@2008' DPM_MysqlPhy2_DB_Port = '3306' DPM_MysqlPhy2_DB_IP_Remote = '10.18.32.90' DPM_MysqlPhy2_UserPWD = '111111' DPM_MysqlPhy2_DB_IP_Local = '127.0.0.1' DPM_MysqlPhy2_DB = 'test' DPM_MysqlPhy2Backup = '/xtrabackup8.0.32/bin' DPM_Mysql2Dump = '/usr/bin' #Mysql逻辑mysqldump路径 DPM_Mysql2BinLog = '/usr/bin' #Mysql逻辑mysqlbinlog文件位置 DPM_Mysql2Log = '/var/lib/mysql' #Mysql逻辑二进制日志文件位置 DPM_Mysql2Config = '/etc' #Mysql逻辑MySQL配置文件位置 #oracle_ physics11g备份与恢复 Oracle_HostName_win = 'winoracle121' #oracle所在代理主机名 Oracle_HostName_lin = 'linoracle101' DBUser = 'system' #oracle数据库用户名 DBPwd = 'sys' #oracle数据库密码 DBHostIP_win = '10.10.11.121' #oracle数据库主机IP windows系统 DBHostIP_lin = '10.18.32.101' #oracle数据库主机IP linux系统 DBPort = '1521' #oracle数据库端口号 DBInstance_win = DBHostIP_win+':1521/orcl' DBInstance_lin = DBHostIP_lin+':1521/orcl' Oracle_Instance_lin = 'orcl' #oracle数据库实例名 linux系统 Oracle_TableName1 = 'Ora_Bak_Tab1' #表1名称 Oracle_TableName2 = 'Ora_Bak_Tab2' #表2名称 Oracle_TableName3 = 'Ora_Bak_Tab3' #表3名称 Oracle_TableName4 = 'Ora_Bak_Tab4' #表4名称 Oracle_TableName5 = 'Ora_Bak_Tab5' #表5名称 Oracle_TableName6 = 'Ora_Bak_Tab6' #表6名称 Oracle_Full_Bk = u'完全' #完全备份 Oracle_Add_Bk = u'增量' #增量备份 Oracle_Difference_Bk = u'差量' #差量备份 Oracle_GD_Bk = u'日志' #归档日志备份 Oraclephysics_user = 'oracle' Oraclephysics_pwd = '123456' Oraclephysics_root_user= 'root' #oracle_ physics12c备份与恢复 DBHostIP_lin_12c = '10.18.32.162' DBUser_12c = 'system' #oracle数据库用户名 DBPwd_12c = '111111' #oracle数据库密码 DBInstance_lin_12c = DBHostIP_lin_12c+':1521/orcl' Oracle_HostName_lin_12c = 'oracle12c_physics' Oracle_Instance_lin_12c = 'orcl' Oracle12Cphysics_root_user = 'root' Oracle12Cphysics_pwd = '111111' #oracle_rac备份与恢复 DBRACUser = 'system' #oracleRAC数据库用户名 DBRACPwd = '111111' #oracleRAC数据库密码 DBRACHostIP_lin = '10.10.31.180' #oracle数据库主机IP linux系统 DBRACInstance_lin = DBRACHostIP_lin+':1521/orcl' OracleRAC_TableName1 = 'Ora_Bak_Tab1' #表1名称 Cluster_Name = 'oracle_11g_RAC' #OracleRAC集群名称 OracleRAC1_Instance = 'orcl1' #oracleRAC数据库实例名 linux系统 OracleRAC_Instance= 'orcl' #oracleRAC数据库实例名 linux系统 OracleRACUser = 'sys' #oracleRAC数据库用户名 OracleRAC2_Instance = 'orcl2' #oracleRAC数据库实例名 linux系统 OracleRAC1_Name='racnode1-p' #oracleRAC节点1主机名 OracleRAC2_Name='racnode2-p' #oracleRAC节点2主机名 User_OracleRAC='oracle' OracleRAC_Pwd='111111' #SQLSERVER备份与恢复 #DPM_MSSql_HostName = 'winSQLServer188' DPM_MSSql_HostName = 'WIN-7RN67K70R8I' DPM_MSSql_DB_User = 'sa' DPM_MSSql_DB_PWD = 'unary@2008' DPM_MSSql_IP_Remote = '10.18.32.188' DPM_MSSql_IP_Local = '127.0.0.1' DPM_MSSql_DB = 'yy' DPM_MSSql_Instance = 'MSSQLSERVER' DPM_MSSql_Port = '1433' DPM_MSSql_TableName1 = 'DPM_MSSql_Bak_Tab1' #表1名称 DPM_MSSql_TableName2 = 'DPM_MSSql_Bak_Tab2' #表2名称 DPM_MSSql_TableName3 = 'DPM_MSSql_Bak_Tab3' #表3名称 DPM_MSSql_TableName4 = 'DPM_MSSql_Bak_Tab4' #表4名称 SQLServer_BackType1 = '1' #1: 完全备份 SQLServer_BackType2 = '2' #2:差量备份 SQLServer_BackType3 = '3' #3:事务日志备份 SQLserver_HostUser='administrator' SQLserver_HostPWD='unary@2008' #SQLServer兼容性环境Win2019SqlServer2019 DPM_MSSql2_HostName = 'WIN-V0OPH4B2A87' #Win2019SqlServer2019代理hostname DPM_MSSql2_DB_User = 'sa' #Win2019数据库用户 DPM_MSSql2_DB_PWD = 'unary@2008' #Win2019数据库密码 DPM_MSSql2_IP_Remote = '10.18.32.190' #Win2019代理IP DPM_MSSql2_IP_Local = '127.0.0.1' DPM_MSSql2_DB = 'yy' #Win2019备份数据库 DPM_MSSql2_Instance = 'MSSQLSERVER' DPM_MSSql2_Port = '1433' SQLserver2_HostUser='administrator' #Win2019代理登录用户 SQLserver2_HostPWD='unary@2008' #Win2019代理登录密码 #SQLServer兼容性环境32bit_win2003_sqlserver2005&oracle10g DPMwin32_MSSql_HostName = 'Oracle10g' #win2003_sqlserver2005代理hostname DPMwin32_MSSql2_DB_User = 'sa' #win2003_sqlserver2005数据库用户 DPMwin32_MSSql2_DB_PWD = 'unary@2008' #win2003_sqlserver2005数据库密码 DPMwin32_MSSql2_IP_Remote = '10.18.32.230' #win2003_sqlserver2005代理IP DPMwin32_MSSql2_IP_Local = '127.0.0.1' DPMwin32_MSSql2_DB = 'yy' #win2003_sqlserver2005备份数据库 DPMwin32_MSSql2_Instance = 'MSSQLSERVER' DPMwin32_MSSql2_Port = '1433' win32SQLserver2_HostUser='administrator' #win2003_sqlserver2005代理登录用户 win32SQLserver2_HostPWD='111111' #win2003_sqlserver2005代理登录密码 #Mysql备份与恢复 DPM_Mysql_HostName = 'mysql100' DPM_Mysql_DB_User = 'root' DPM_Mysql_DB_PWD = '123456' DPM_Mysql_DB_Port = '3306' DPM_Mysql_DB_IP_Remote = '10.18.32.100' DPM_Mysql_DB_IP_Local = '127.0.0.1' DPM_Mysql_DB = 'test' DPM_WMysql_HostName = 'winmysql120' DPM_WMysql_DB_User = 'root' DPM_WMysql_DB_PWD = '123456' DPM_WMysql_DB_Port = '3306' DPM_WMysql_DB_IP_Remote = '10.18.32.120' DPM_WMysql_DB_IP_Local = '127.0.0.1' DPM_WMysql_DB = 'test' DPM_Mysql_TableName1 = 'Mysql_Bak_Tab01' DPM_Mysql_TableName2 = 'Mysql_Bak_Tab2' MysqlDump = '/usr/bin' MysqlBinLog = '/usr/bin' MysqlLog = '/var/lib/mysql' MysqlConfig = '/etc' Mysql_Full_Bk = u'完全' #完全备份 Mysql_Add_Bk = u'增量' #增量备份 #MySQL逻辑-windows2008-mysql5.7.24 DPMMysql_Win2008_HostName = 'WIN-2ATQUVAF9U0' DPMMysql_Win2008_DB_IP_Remote = '10.18.32.56' DPMMysql_Win2008_User='administrator' DPMMysql_Win2008_PWD='unary@2008' DPMMysql_Win2008_DB_User = 'root' DPMMysql_Win2008_DB_PWD = '123456' DPMMysql_Win2008_DB_Port = '3306' DPMMysql_Win2008_Config = r'E:\mysql5.7.24' #my.ini配置文件路径 DPMMysql_Win2008_binlog = r'E:\mysql5.7.24\log' #二进制日志路径 DPMMysql_Win2008_bin = r'E:\mysql5.7.24\bin' #MySQLbinlog与MySQLDump位置路径 #MySQL逻辑兼容性环境-windows2016-mysql8.0.17——64bit DPMMysql_Win2016_HostName = 'WIN-IBSMDSFGJHC' DPMMysql_Win2016_DB_IP_Remote = '10.18.32.161' DPMMysql_Win2016_User='administrator' DPMMysql_Win2016_PWD='unary@2008' DPMMysql_Win2016_DB_User = 'root' DPMMysql_Win2016_DB_PWD = '123456' DPMMysql_Win2016_DB_Port = '3306' DPMMysql_Win2016_Config = r'C:\mysql8' #my.ini配置文件路径 DPMMysql_Win2016_binlog = r'C:\mysql8\data\log' #二进制日志路径 DPMMysql_Win2016_bin = r'C:\mysql8\bin' #MySQLbinlog与MySQLDump位置路径 #Informix备份与恢复 Informix_HostName_lin = 'informix677' #Informix代理主机名 Informix_DB_User = 'informix' #连接Informix数据库用户名 Informix_DB_PWD = 'informix' #连接Informix数据库用户密码 Informix_port = '24483' #Informix端口 Informix_Server = 'ol_informix1170' #Informix服务名 Informix_HostIP_lin = '10.18.32.103' #Informix代理主机ip Informix_InstallPath='/opt/IBM/informix' #Informix安装路径 Informix_LoginUser='root' #Informix系统用户名 Informix_LoginPWD='123456' #Informix系统密码 #Sybase备份与恢复 Sybase_Host_IP = "10.18.32.180" #Sybase_linux代理IP win_Sybase_Host_IP = "10.18.32.129" #Sybase_win代理IP win_Sybase_user = "Administrator" #Sybase_win代理用户名 Sybase_user = "sybase" #Sybase数据库用户名 Sybase_Pwd = "111111" #Sybase数据库密码 win_Sybase_Pwd = "123456" #Sybase_win代理登录密码 Sybase_engine_name = "LOCALHOST" #Sybase数据库服务名 Sybase_bk_user = "sa" #Sybase备份用户 sybase_agent = "sybase" #Sybase代理主机名 Sybase_HostUser='root' #Sybase_Linux代理root用户 Sybase_HostPWD='111111' #Sybase_Linux代理root用户密码 Sybase_installPath='/opt/sybase' #Sybase_Linux代理安装路径 #Gbase8t备份与恢复 #sys.setdefaultencoding('utf8') Gbase8t_HostIP = '10.18.32.46' #Gbase8t环境地址 Gbase8t_LoginUser = 'root' #系统登录用户 Gbase8t_LoginPWD = '111111' #系统登录密码 Gbase8t_Pwd = '111111' #数据库登录密码 Gbase8t_sid = 'ol_informix1210' #服务名 Gbase8t_port = '26791' #端口号 Gbase8t_infomix = 'informix' #系统用户名 Gbase8t_agent_name = 'gbase8t' #代理主机名 Gbase8t_installPath = '/opt/Gbase8t' #Gbase8t代理数据库安装路径 #Sangfor备份恢复 Sangfor_Name = 'Sangfor' SF_BK_Cache_Path = '/share' bk_name = 'minimal' #Gbase8s备份与恢复 #sys.setdefaultencoding('utf8') Gbase8s_HostIP = '10.18.32.47' #Gbase8t环境地址 Gbase8s_LoginUser = 'root' #系统登录用户 Gbase8s_LoginPWD = '111111' #系统登录密码 Gbase8s_User= 'sysdba' #数据库登录用户 Gbase8s_Pwd = 'GBase8sV8316' #数据库登录密码 Gbase8s_agent_name = 'gbase8s' #代理主机名 #VMware备份与恢复 ESXI_DPM_Name='VM_DPM' #备份ESXI名称 VMDPM_bkname = 'minimaldpm' #备份虚拟机名称 #HighGo备份与恢复 Highgo_Agent_Name = 'hgdb' #Highgo代理名称 Highgo_HostIP = '10.10.14.206' #Highgo环境地址 Highgo_LoginUser = 'highgo' #数据库安装用户与登录用户名 Highgo_LoginPWD = 'Unary@2008' #数据库登录密码 Highgo_VMUser = 'root' #系统登录用户 Highgo_VMPwd = 'unary@2008' #系统root与highgo用户登录密码 #UXDB备份恢复 UXDB_Agent_Name = 'uxdb' #UXDB代理名称 UXDB_HostIP = '10.10.14.136' #UXDB环境地址 UXDB_LoginUser = 'root' #系统登录用户 UXDB_LoginPWD = 'unary@2008' #系统登录密码 UXDB_User = 'uxdb' #数据库登录用户 UXDB_Pwd = '111111' #数据库登录密码 UXDB_InstallPath = '/home/uxdb/uxdbinstall/dbsql/bin' #UXDB数据库安装路径 UXDB_ShiliPath = '/home/uxdb/uxdbinstall/dbsql/bin/test01' #UXDB数据库实例路径 UXDB_Arch = '/home/uxdb/uxdbinstall/dbsql/archive' #UXDB数据库缓存路径 #S3备份恢复 S3HostIP_lin = '10.18.32.91' #s3主机IP linux系统 S3_root_user = 'root' #s3主机root用户 S3_root_pwd = '111111' #ss3主机root用户密码 Minio_S3= 'Minio_S3' #------------------------------------------------------------------ #ESXI相关操作 ESXi_IP='10.18.32.254' #自动化代理ESXI IP ESXi_user='root' #ESXI用户名 ESXi_PWD='12345678' #ESXI密码 ESXi_IP2='10.10.13.14' #瀚高代理ESXI IP ESXi_PWD2='unary@2023' #瀚高代理ESXI 密码 DPM_ESXI_IP='10.10.14.138' DPM_BC_NEWIP_ESXi_IP='10.10.13.15' DPM_BC_NEWIP_ESXi_user='root' DPM_BC_NEWIP_ESXi_PWD='unary@2023' Snapshot_Name= 'Config' Agent_EsxiPath_OracleCDM='[datastore(1)] auto_client_CDM_cent7_oracle11g/auto_client_CDM_cent7_oracle11g.vmx' #OracleCDM代理机器路径 Agent_EsxiPath_OraclePhysical='[datastore(1)] auto_client_cent7_Oracle11g_32.101/auto_client_cent7_Oracle11g_32.101.vmx' #OraclePhysical代理机器路径 Agent_EsxiPath_Oracle12CPhysical='[datastore(1)] Centos8_Oracle12c/Centos8_Oracle12c.vmx' #OraclePhysical代理机器路径 Agent_EsxiPath_OracleLogical='[datastore(1)] oracle_logic/oracle_logic.vmx' #OracleLogical代理机器路径 Agent_EsxiPath_Oracle12CLogical='[datastore(1)] Centos8_Oracle12c_逻辑/Centos8_Oracle12c_逻辑.vmx' #OracleLogical代理机器路径 #Agent_EsxiPath_MySQLPhysical='[datastore(1)] auto_client_cen7_mysqlphy_11.108/auto_client_cen7_mysqlphy_11.108.vmx' #MySQLPhysical代理机器路径 Agent_EsxiPath_MySQLPhysical='[data2] 自动化环境_centos7.4+mysql5.7.28_dn使用中勿动/自动化环境_centos7.4+mysql5.7.28_dn使用中勿动.vmx' #MySQLPhysical代理机器路径 Agent_EsxiPath_MySQLLogical='[datastore(1)] auto_client_red6_mysql_11.100/auto_client_red6_mysql_11.100.vmx' #MySQLLogical代理机器路径 Agent_EsxiPath_DB2='[datastore(1)] redhat6_db2 9.7/redhat6_db2 9.7.vmx' #DB2代理机器路径 Agent_EsxiPath_DM='[datastore2 (4)] auto_client_cent7_DM7_32.144/auto_client_cent7_DM7_32.144.vmx' #DM代理机器路径 Agent_EsxiPath_File='[datastore(1)] auto_client_cen7_file_32.110异机恢复/auto_client_cen7_file_32.110异机恢复.vmx' #File代理机器路径 Agent_EsxiPath_GBase8t='[datastore(1)] auto_client_red6.7_64bit_gbase8t/auto_client_red6.7_64bit_gbase8t.vmx' #GBase8t代理机器路径 Agent_EsxiPath_Informix='[datastore(1)] auto_client_red6_informix_11.103/自动化测试_redhat6.7 64bit clone_hzp -informix.vmx' #Informix代理机器路径 Agent_EsxiPath_KingbasePhysical='[datastore(1)] auto_client_red6_kingbase_11.102/auto_client_red6_kingbase_11.102.vmx' #KingbasePhysical代理机器路径 Agent_EsxiPath_Kingbase='[datastore(1)] auto_client_cent7_kingbase_physical_32.119/auto_client_cent7_kingbase_physical_32.119.vmx' Agent_EsxiPath_MongoDB='[datastore(1)] auto_client_red6_mongodb_11.106/auto_client_red6_mongodb_11.106.vmx' #MongoDB代理机器路径 Agent_EsxiPath_PostgreSQL='[datastore(1)] postgresql/postgresql.vmx' #PostgreSQL代理机器路径 Agent_EsxiPath_ShenTong='[datastore(1)] auto_client_centos7_shentong_10.18.32.44/auto_client_centos7_shentong_10.18.32.44.vmx' #ShenTong代理机器路径 Agent_EsxiPath_Sybase='[datastore(1)] auto_client_cent6_Sybase15.7_10.18.32.180/auto_client_cent6_Sybase15.7_10.18.32.180.vmx' #Sybase代理机器路径 Agent_EsxiPath_SQLServer='[datastore(1)] auto_client_win2008_64bit_sqlserver2008/auto_client_win2008_64bit_sqlserver2008.vmx' #SQLServer代理机器路径 Agent_EsxiPath_SQLServerCDM='[datastore(1)] auto_client_win2008_64bit_sqlserver2008_10.18.32.18820230403132605/auto_client_win2008_64bit_sqlserver2008_10.18.32.18820230403132605.vmx' #SQLServercdm代理机器路径 DPM_BC_NEWIP_EsxiPath='[data1 (4)] 6.8.6软件版_自动化测试/6.8.6软件版_自动化测试.vmx' #黑方软件版14.70机器路径 DPM_BC_IP_EsxiPath='[datastore(1)] 【冒烟测试】6.9欧拉版本黑方/【冒烟测试】6.9欧拉版本黑方.vmx' #6.9欧拉版本黑方32.220机器路径 Agent_EsxiPath_GBase8s='[datastore(1)] auto_client_cent7_65bit_gbase8s_10.18.32.47/auto_client_cent7_65bit_gbase8s_10.18.32.47.vmx' #GBase8s代理机器路径 Agent_EsxiPath_HighGo='[data1 (1)] 自动化环境勿动Centos7.6_Highgo6.0.4/自动化环境勿动Centos7.6_Highgo6.0.4.vmx' #HighGo代理机器路径 Agent_EsxiPath_UXDB='[data2 (2)] 自动化环境勿动centos7_mysql_ux数据库/自动化环境勿动centos7_mysql_ux数据库.vmx' #UXDB代理机器路径 Agent_EsxiPath_FileWin='[datastore(1)] auto_client_win2008_comm_32.117/auto_client_win2008_comm_32.117.vmx' #Windows文件代理路径 Agent_EsxiPath_MySQLPhysical2='[datastore(1)] CentOS8.0+MySQL8.0.32/CentOS8.0+MySQL8.0.32.vmx' #MySQLPhysical2代理机器路径_Centos8+MySQL8 Agent_EsxiPath_SQLServer2='[data1 (1)] Win2019_64bit_SQLServer2019/Win2019_64bit_SQLServer2019.vmx' #WIN2019-SQL2019代理机路径 Agent_EsxiPath_S3='[datastore(1)] Centos7.6_minio/Centos7.6_minio.vmx' #S3代理机路径 Agent_EsxiPath_OracleCLP='[datastore(1)] Reahat8.0_Oracle19c/Reahat8.0_Oracle19c.vmx' #OracleCLP代理机器路径 Agent_EsxiPath_MySQLLogicalWin2008='[datastore3 (3)] Windows_Server_2008_64/Windows_Server_2008_64.vmx' #MySQLLogical代理机器路径 EsxiName_OracleCDM='auto_client_CDM_cent7_oracle11g_32.11' #OracleCDM代理名称 EsxiName_OraclePhysical='auto_client_cent7_Oracle11g_32.101' #OraclePhysical代理名称 EsxiName_Oracle12CPhysical='Centos8_Oracle12c_物理_32.162' #OraclePhysical代理名称 EsxiName_OracleLogical='auto_client_red6_oracleLogic_32.113' #OracleLogical代理名称 EsxiName_Oracle12CLogical='Centos8_Oracle12c_逻辑_32.163' #OracleLogical代理名称 #EsxiName_MySQLPhysical='auto_client_cen7_mysqlphy_32.110' #MySQLPhysical代理名称 EsxiName_MySQLPhysical='自动化环境_centos7.4+mysql5.7.28_29.29dn使用中勿动' #MySQLPhysical代理名称 EsxiName_MySQLLogical='auto_client_red6_mysql_32.100' #MySQLLogical代理名称 EsxiName_DB2='auto_client_red6.7_db2_32.105' #DB2代理名称 EsxiName_DM='auto_client_cent7_DM7_32.222' # EsxiName_File='auto_client_cen7_file_32.216' #File代理名称 EsxiName_GBase8t='auto_client_red6.7_64bit_gbase8t_10.18.32.46' #GBase8t代理名称 EsxiName_Informix='auto_client_red6_informix_10.18.32.103' #Informix代理名称 EsxiName_KingbasePhysical='auto_client_red6_kingbase_32.102' #KingbasePhysical代理名称 EsxiName_Kingbase='auto_client_cent7_kingbase_physical_32.119' #Kingbase代理名称 EsxiName_MongoDB='auto_client_red6_mongodb_32.106' #MongoDB代理名称 EsxiName_PostgreSQL='auto_client_red6_postgresql_32.193' #PostgreSQL代理名称 EsxiName_ShenTong='auto_client_centos7_shentong_10.18.32.44' #ShenTong代理名称 EsxiName_Sybase='auto_client_cent6_Sybase15.7_10.18.32.180' #Sybase代理名称 EsxiName_SQLServer='auto_client_win2008_64bit_sqlserver2008_10.18.32.188' #SQLServer代理名称 EsxiName_SQLServerCDM='auto_client_win2008_64bit_sqlserver2008_10.18.32.189' #SQLServerCDM代理名称 EsxiName_DPM_BC_NEWIP='6.8.6软件版_自动化测试_14.70' #黑方软件版14.70机器名称 EsxiName_GBase8s='auto_client_cent7_64bit_gbase8s_10.18.32.47' #GBase8s代理名称 EsxiName_HighGo='自动化环境勿动Centos7.6_Highgo6.0.4_14.206' #HighGo代理名称 EsxiName_UXDB='自动化环境勿动centos7_ux数据库_14.136' #UXDB代理名称 EsxiName_FileWin='auto_client_win2008_comm_32.117' #Windows文件代理名称 EsxiName_MySQLPhysical2='CentOS8.0+MySQL8.0.32_32.89' #MySQLPhysical2代理名称_Centos8+MySQL8 EsxiName_SQLServer2='自动化环境勿动Win2019_SQLServer2019_13.251' #WIN2019-SQL2019代理机名称 EsxiName_S3='Centos7.6_minio_32.91' #OracleCDM代理名称 EsxiName_OracleCLP='Reahat8.0_Oracle19c_32.93' #OracleCLP代理名称 EsxiName_MySQLLogical_Win2008='Windows_Server2008_64bit_mysql5.7.24_32.56' Agent_PWD= '/opt/bksoft/ubackup/web/webapps/bc6/download/install/linux/agent_linux_x86_64.tar' #agent_linux_x86_64.tar路径 Agent_PWD_32bit= '/opt/bksoft/ubackup/web/webapps/bc6/download/install/linux/agent_linux_x86_32.tar' #agent_linux_x86_32.tar路径 Agent_PWD_Win='/opt/bksoft/ubackup/web/webapps/bc6/download/install/windows/agent_windows_x86_64.zip' #agent_windows_x86_64.zip路径 Agent_Name= 'agent_linux_x86_64.tar' #linux64bit代理名称 Agent_Name_32bit= 'agent_linux_x86_32.tar' #linux32bit代理名称 Agent_Win32bit='/opt/bksoft/ubackup/web/webapps/bc6/download/install/windows/agent_windows_x86_32.zip' #agent_windows_x86_32.zip路径 Component_OracleCDM='@File@Oracle_CDM@VolumeCopy@UFS' #静默安装OracleCDM Component_OraclePhysical='@File@oracle@UFS' #静默安装OraclePhysical Component_OracleLogical='@File@oracle_logic@UFS' #静默安装OracleLogical Component_MySQLPhysical='@File@MySQL_Physical@mysql@UFS' #静默安装MySQLPhysical Component_MySQLLogical='@File@mysql@UFS' #静默安装MySQLLogical Component_db2='@File@DB2@UFS' #静默安装db2 Component_DM='@File@dm@dm_logic@UFS' #静默安装DM、DMLogical Component_File='@File@VMware@VolumeCopy@MassFile@UFS' #静默安装File、定时VMware Component_GBase8t='@File@Gbase_8t@UFS' #静默安装GBase8t Component_Informix='@File@Informix@UFS' #静默安装Informix Component_KingbasePhysical='@File@kingbase_physical@UFS' #静默安装KingbasePhysical Component_Kingbase='@File@kingbase_physical@kingbase@UFS' #静默安装Kingbase、kingbase_physical Component_MongoDB='@File@MongoDB@UFS' #静默安装MongoDB Component_PostgreSQL='@File@PostgreSQL@UFS' #静默安装PostgreSQL Component_ShenTong='@File@ShenTong@UFS' #静默安装ShenTong Component_Sybase='@File@Sybase@UFS' #静默安装Sybase Component_SQLServer='@File@SQLServer@UFS' #静默安装SQLServer Component_SQLServerCDM='@File@VolumeCopy@SQLServer_CDM@UFS@File@MassFile' #静默安装SQLServerCDM、File Component_GBase8s='@File@Gbase8s@UFS' #静默安装Gbase8s Component_HighGo='@File@HighGo@UFS' #静默安装HighGo Component_UXDB='@File@UXDB@UFS' #静默安装UXDB Component_FileWin='@File@MassFile@UFS' #静默安装File_Windows代理 Component_S3='@S3' #静默安装S3 Component_MySQL2='@File@MySQL_Physical@mysql@UFS@mysqlcdm' #静默安装MySQLPhysical jre1_7='1.7' #安装的java的版本为1.7 jre1_8='1.8' #安装的java的版本为1.8 #黑方相关配置——初始化 UpdateTool_Path = 'C:\\UpdateTools\\UpdateTools.exe' #升级工具exe文件路径 Robot_Name = 'Administrator' Robot_Pwd = 'unary@2008' Robot_IP_1 = '10.10.41.91' Robot_IP_2 = '10.10.1.144' Robot_IP_3 = '10.10.1.166'