WO2012119423A1 - 系统配置项的自动迁移方法和设备 - Google Patents
系统配置项的自动迁移方法和设备 Download PDFInfo
- Publication number
- WO2012119423A1 WO2012119423A1 PCT/CN2011/079046 CN2011079046W WO2012119423A1 WO 2012119423 A1 WO2012119423 A1 WO 2012119423A1 CN 2011079046 W CN2011079046 W CN 2011079046W WO 2012119423 A1 WO2012119423 A1 WO 2012119423A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- configuration item
- system configuration
- identifier
- target
- key parameter
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F16/273—Asynchronous replication or reconciliation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/084—Configuration by using pre-existing information, e.g. using templates or copying from other elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
Definitions
- the embodiments of the present invention relate to computer technologies, and in particular, to an automatic migration method and device for system configuration items. Background technique
- an agent is installed on both the target server and the source server, wherein the agent is used to mine the direct system service required for the application to run, and the direct system service is delivered to the data model database through the Agent interface.
- the direct system service on the source server is obtained through the Agent set on the source server, and the direct system server is transmitted to the data model database through the Agent interface, and the data model database is pre-established according to the database.
- the dependencies between the system services and the received direct system services on the source server, the indirect system services are obtained, and the indirect system services are delivered to the Agent on the source server, and the agent on the source server is based on the direct system services and Indirect system service, obtaining the configuration of the direct and indirect system service, and setting the configuration of the direct system service, the indirect system service, and the direct and indirect system service to the target server, thereby implementing the system environment on which the application depends, from the source server to Migration of the target server.
- the embodiments of the present invention provide a method and a device for automatically migrating a system configuration item, which are used to solve the defect that the workload of the migration in the prior art is large and the risk of migration is high.
- An embodiment of the present invention provides an automatic migration method of a system configuration item, including:
- the target system is migrated and configured according to the telnet/ssh protocol channel established with the target system and according to the target system configuration item and the key parameter value.
- An embodiment of the present invention provides an automatic migration device for a system configuration item, including:
- a first channel establishing module configured to establish a telnet/ssh protocol channel with the source system
- An acquisition module configured to collect a source system corresponding to the identifier of the system configuration item on the source system by using a telnet/ssh protocol channel established by the first channel establishment module and a predefined shell script corresponding to the source system a configuration item; the identifier of the system configuration item is a predefined identifier of a system configuration item corresponding to the source system;
- the system configuration item obtaining module that is required to be migrated is configured to compare the source system configuration item collected by the collection module with a preset default system configuration item corresponding to the source system, and obtain a corresponding to the source system. a non-default system configuration item; and the non-default system configuration item is used as a system configuration item to be migrated;
- Target configuration item and key parameter value acquisition module used to query pre-system, system configuration item, and off The mapping relationship between the key parameter values, and the target system configuration item and the key parameter value corresponding to the system configuration item to be migrated;
- a second channel establishing module configured to establish a telnet/ssh protocol channel with the target system
- a migration configuration processing module configured to establish, by using the second channel, a telnet/ssh protocol channel, and perform migration configuration on the target system according to the target system configuration item and a key parameter value.
- the method and device for automatically migrating a system configuration item in the embodiment of the present invention by using a telnet/ssh protocol channel established with the source system and a predetermined shell script corresponding to the source system, collecting the identifier corresponding to the system configuration item on the source system.
- the source system configuration item compares the collected source system configuration item with a preset default system configuration item corresponding to the source system, obtains a non-default system configuration item corresponding to the source system, and obtains the non-default system.
- the configuration item is used as the system configuration item to be migrated, and then the mapping relationship between the pre-system, the system configuration item, and the key parameter values is obtained, and the target system configuration item and the key parameter value corresponding to the system configuration item to be migrated are obtained, and finally the target system is passed.
- the telnet/ssh protocol channel is established, and the target system is migrated and configured according to the target system configuration item and key parameter values, thereby automatically acquiring the source system configuration item, and completing the automatic migration configuration through the telnet/ssh protocol channel, thereby effectively Solved the workload of migration in the prior art, and moved High-risk defects.
- FIG. 1 is a flowchart of an embodiment of a method for automatically migrating a system configuration item according to the present invention
- FIG. 2 is a flowchart of another embodiment of a method for automatically migrating a system configuration item according to the present invention
- a schematic structural diagram of an embodiment of an automatic migration device
- FIG. 4 is a schematic structural diagram of another embodiment of an automatic migration device of a system configuration item of the present invention.
- FIG. 1 is a flowchart of an embodiment of an automatic migration method of a system configuration item according to the present invention.
- an execution entity of the embodiment is an automatic migration device of a system configuration item, and the method includes:
- Step 101 Through a remote login (Telecommunications Network; telnet)/secure shell (Secure Shell; ssh) protocol channel established with the source system, and a predefined shell script corresponding to the source system, on the source system
- the source system configuration item corresponding to the identifier of the system configuration item, where the identifier of the system configuration item is a predefined identifier of the system configuration item corresponding to the source system.
- the source system may be specifically an operating system or a database.
- the automatic migration device of the system configuration item pre-defines the identifier of the system configuration item corresponding to the source system, and establishes a connection with the source system through the telnet/ssh protocol, thereby enabling the telnet/ssh protocol channel and the shell.
- the script collects source system configuration items corresponding to the identifier of the system configuration item on the source system.
- the source system configuration item may be specifically related to an account group, a core parameter, a file system configuration and rights, a system sub-service, a security policy, or a base package. It should be noted that the source system configuration item is not limited to the ones described above.
- the number of source system configuration items collected may be one or more, related to the identifier of a predefined system configuration item.
- Step 102 Compare the collected source system configuration item with a preset default system configuration item corresponding to the source system, obtain a non-default system configuration item corresponding to the source system, and use the non-default system configuration item as the required migration. System configuration item.
- the default system configuration item and the non-default system configuration item may be related account groups, core parameters, file system configurations and permissions, system sub-services, security policies, or basic software packages. It should be noted that the default system configuration item and the non-default system configuration item are not limited to the types described above.
- the default system configuration item may be a system configuration item corresponding to the source system initialization; the non-default system configuration item may be a system configuration item obtained by modifying the default system configuration item.
- Step 103 Query a mapping relationship between the pre-system, the system configuration item, and the key parameter value, and obtain a target system configuration item and a key parameter value corresponding to the system configuration item to be migrated.
- the target system configuration item may be a related account group, a core parameter, a file system configuration and rights, a system sub-service, a security policy, or a basic software package. It should be noted that the target system configuration item is not limited to the ones described above. In addition, for example, when the target system is a Red Hat Enterprise Linux (RHEL) platform and the system configuration item to be migrated is a related account group, the system configuration item to be migrated corresponds to The key parameter values on the target system can be specifically as follows: The data line with the id number greater than or equal to 500 in the /etc/passwd file on the RHEL platform.
- RHEL Red Hat Enterprise Linux
- Step 104 Establish a telnet/ssh protocol channel with the target system, and configure the target system according to the target system configuration item and key parameter values.
- the relationship between the source system and the target system may be a homogeneous relationship or a heterogeneous relationship.
- the source system configuration item corresponding to the identifier of the system configuration item on the source system is collected by using a telnet/ssh protocol channel established with the source system and a predefined shell script corresponding to the source system, and the collection is performed.
- the source system configuration item is compared with the default system configuration item corresponding to the source system, and the non-default system configuration item corresponding to the source system is obtained, and the non-default system configuration item is used as the system configuration to be migrated.
- query the mapping relationship between the pre-system, system configuration items, and key parameter values obtain the target system configuration items and key parameter values corresponding to the system configuration items that need to be migrated, and finally pass the telnet/ssh protocol channel established with the target system.
- the target system is configured to be migrated according to the target system configuration item and the key parameter values, so that the source configuration item is automatically obtained, and the automatic migration configuration is completed through the telnet/ssh protocol channel, thereby effectively solving the migration work in the prior art.
- FIG. 2 is a flow chart of another embodiment of an automatic migration method of a system configuration item according to the present invention, as shown in FIG. 2
- the execution entity of the embodiment is an automatic migration device of the system configuration item
- the method includes: Step 201: through a telnet/ssh protocol channel established with the source system, and a predefined shell script corresponding to the source system,
- the source system configuration item corresponding to the identifier of the system configuration item is collected on the source system, and the identifier of the system configuration item is a predefined identifier of the system configuration item corresponding to the source system.
- the source system may be specifically an operating system or a database.
- the automatic migration device of the system configuration item receives the root account and the password input by the user through the user interface, and performs the authority authentication on the root account and the password.
- the telnet/ssh protocol and the source may be adopted.
- the system establishes a connection, so that the source system configuration item corresponding to the identifier of the system configuration item on the source system can be collected through the telnet/ssh protocol channel and a predefined shell script corresponding to the source system.
- the identifier of the system configuration item is a predefined identifier of a system configuration item corresponding to the source system.
- the source system configuration item can be a related account group, a core parameter, a file system configuration and rights, a system sub-service, a security policy, or a base package. It should be noted that the source system configuration item is not limited to the ones described above. In addition, the number of source system configuration items collected may be one or more, related to the identifier of a predefined system configuration item.
- Step 202 Compare the collected source system configuration item with a preset default system configuration item corresponding to the source system, obtain a non-default system configuration item corresponding to the source system, and use the non-default system configuration item as the required migration. System configuration item.
- the collected source system configuration items are: related account groups, core parameters, and system sub-services. Comparing with the default system configuration item of the related account group, the default system configuration of the core parameter, and the default system configuration item of the system sub-service, that is, comparing the source system configuration item of the related account group, the source system configuration item of the core parameter, and The source system configuration item of the system sub-service is modified relative to the default system configuration item of the related account group, the default system configuration of the core parameter, and the default system configuration item of the system sub-service, if the source system configuration of the related account group If the item is modified relative to the default system configuration item of the related account group, the modified part is used as the non-default system configuration item, and the non-default system configuration item of the related account group is used as the system configuration item to be migrated.
- Step 203 Receive an indication message of a first modified system configuration item input by a user, where the first modification system is The indication message of the system configuration item includes an identifier of the first modification system configuration item.
- Step 204 Add or delete a system configuration item corresponding to the identifier of the first modified system configuration item, and obtain a modified system configuration to be migrated, according to the indication message of the first modified system configuration item, on the system configuration item to be migrated. item.
- Step 205 Query the mapping relationship between the pre-system, the system configuration item, and the key parameter value, and obtain the target system configuration item and the key parameter value corresponding to the target system and the modified system configuration item to be migrated.
- the target system target configuration item may be a related account group, a core parameter, a file system configuration and rights, a system sub-service, a security policy, or a basic software package. It should be noted that the target system configuration item is not limited to the ones described above.
- Step 206 Receive an indication message of a second modified system configuration item that is input by the user, where the indication message of the second modified system configuration item includes an identifier of the second modified system configuration item.
- Step 207 According to the indication message of the second modified system configuration item, add or delete a system configuration item corresponding to the identifier of the second modified system configuration item on the target system configuration item, and obtain the modified target system configuration item.
- Step 208 Predefine the identifier and shell script of the system configuration item corresponding to the target system.
- Step 209 Generate a configuration script according to the identifier of the system configuration item corresponding to the target system and the shell script, and modify the target system configuration item and the key parameter value.
- Step 210 Perform a migration configuration on the target system according to the telnet/ssh protocol channel established with the target system and according to the configuration script.
- the automatic migration device of the system configuration item receives the root account and the password input by the user through the user interface, and performs the authority authentication on the root account and the password. After the authority authentication is passed, the telnet/ssh protocol and the target can be adopted. The system establishes a connection, so that the target system can be migrated and configured according to the telnet/ssh protocol channel established with the target system.
- Step 211 Generate a migration report, where the migration report includes a configuration result corresponding to the identifier of the target system configuration item and the identifier of the target system configuration item.
- the identifier of the target system configuration item may include an identifier of the configured system configuration item and an identifier of the system configuration item that fails to be configured.
- Step 212 According to the migration report, query a mapping relationship between the system, the system configuration item, and the key parameter point, obtain a key parameter value corresponding to the identifier of the target system configuration item, and obtain a configuration result corresponding to the identifier of the target system configuration item. , update the key parameter values.
- the system configuration item corresponding to the identifier of the system configuration item that fails to be configured can be manually configured for migration.
- query the mapping relationship between the system, the system configuration item, and the key parameter point and obtain the target system configuration item and the key parameter value corresponding to the identifier of the system configuration item that failed the configuration, and according to The identifier and shell script of the system configuration item corresponding to the target system, generate a configuration script for the target system configuration item and key parameter values, and finally configure the target system by using the telnet/ssh protocol channel established with the target system. .
- the source system is AIX6.1 64-bit and the target system is RHEL5.4 64-bit.
- the automatic migration device of the configuration item passes the telnet protocol and AIX6.1. Establish a connection, establish a connection with RHEL5.4 through the ssh protocol, and then enter the root account and password through the user interface to authenticate the authority. After the authentication is passed, collect the source corresponding to the identifier of the system configuration item on AIX6.1 through the telnet protocol channel.
- System configuration item The identifier of the system configuration item is the identifier of the predefined system configuration item corresponding to AIX6.1.
- the collected source system configuration items are: account group, core parameters, pv/lv configuration of datavg and rootvg volume group, file system and directory permissions such as jfs, ftp/dns/ntp/network system subservice, account number / Process / Firewall Security Policy and OS Foundation Package.
- the collected source system configuration item is compared with the preset default system configuration item corresponding to the AIX 6.1, and the non-default configuration item corresponding to the source system is obtained, for example: the source system of the account group is set.
- the configuration item is used as the system configuration item of the account group to be migrated.
- the automatic configuration device of the system configuration item provides the configuration item to be migrated to the user, and the user may input a first modified system configuration item indication message, where the first modified system configuration item indication message includes the identifier of the first modified system configuration item. Then, the automatic configuration device of the system configuration item adds or deletes the system configuration item corresponding to the identifier of the first modified system configuration item on the system configuration item to be migrated according to the instruction message of the first modified system configuration item, and obtains the modified System configuration items that need to be migrated.
- the indication message of the first modified system configuration item is an indication message for deleting the system configuration item
- the system configuration item corresponding to the identifier of the first modified system configuration item is sshd in /etc/passwd
- the account group is The sshd deletion in the non-default system configuration item (for example: tuxedo, oracle, sshd in /etc/passwd)
- the system configuration item to be migrated for the modified account group is tuxedo in /etc/passwd , oracle.
- the automatic migration device of the system configuration item queries the mapping relationship between the pre-established system, system configuration items, and key parameter values, that is, the mapping relationship between the pre-system, system configuration items, and key parameter values, and obtains the requirements with RHEL5.4 and the modification.
- the target system configuration item and key parameter values corresponding to the migrated system configuration item, and the target system configuration item and key parameter values are generated in RHEL5.4 according to the predefined RHEL5.4 system configuration item identifier and shell script.
- the configuration script executed is configured to migrate RHEL5.4 through the ssh protocol channel and the configuration script.
- the source system configuration item corresponding to the identifier of the system configuration item on the source system is collected through the telnet/ssh protocol channel established with the source system, and the collected source system configuration item is preset with The default system configuration item corresponding to the source system is compared, the non-default system configuration item corresponding to the source system is obtained, and the non-default system configuration item is used as a system configuration item to be migrated, and then the pre-system, system configuration item, and key are queried.
- the mapping relationship between the parameter values, the target system configuration item and the key parameter value corresponding to the system configuration item to be migrated, and finally the telnet/ssh protocol channel established with the target system, and the target system configuration item and the key parameter value are used to target the target
- the system performs the migration configuration, so that the source system configuration items are automatically obtained online, and the automatic migration configuration is completed through the telnet/ssh protocol channel, thereby effectively solving the problem that the migration workload in the prior art is large and the risk of migration is high.
- the system configuration items and target system configuration items that need to be migrated can be monitored and modified by the user, that is, a security mechanism that can be considered as control is established, thereby ensuring the quality of the migration.
- a migration report can be generated, which not only allows the user to clearly guide the migration of those system configuration items and the system configuration items that have failed to be configured, but also according to the target system configuration items.
- the corresponding configuration result is identified, and the key parameter values corresponding to the identifier of the target system configuration item are modified, thereby optimizing the migration quality of the subsequent same system.
- the source system may be a physical machine or a virtual machine
- the target system may be a virtual machine or a physical machine
- the implementation principle thereof is implemented by the method embodiment shown in FIG. 2 .
- the principle is similar, and will not be described here. This can support the physical and physical machines, virtual machines and physical machines, or the migration configuration between virtual machines and virtual machines, thus meeting the migration requirements of application scenarios.
- FIG. 3 is a schematic structural diagram of an embodiment of an automatic migration device of a system configuration item according to the present invention.
- the device in this embodiment includes: a first channel establishment module 11, an acquisition module 12, and a configuration item to be migrated.
- the identifier of the system configuration item corresponding to the source system is defined by the system configuration item acquired by the collection module 12 and the default system corresponding to the source system.
- the system configuration item to be migrated; the target configuration item and the key parameter value are used to query the mapping relationship between the pre-system, the system configuration item, and the key parameter value, and obtain the target system configuration item corresponding to the system configuration item to be migrated.
- the key parameter value; the second channel establishing module 15 is used for establishing a telnet/ssh protocol channel with the target system; the migration configuration processing module 16 is configured to establish a telnet/ssh protocol channel by the second channel establishing module 15, and according to the target system Configuration items and key parameter values are moved to the target system Move the configuration.
- the automatic migration device of the system configuration item of this embodiment can perform the technical solution of the method embodiment shown in FIG. 1 , and the implementation principles thereof are similar, and details are not described herein again.
- the source system configuration item corresponding to the identifier of the system configuration item on the source system is collected by using a telnet/ssh protocol channel established with the source system and a predefined shell script corresponding to the source system, and the collection is performed.
- the source system configuration item is compared with the default system configuration item corresponding to the source system, and the non-default system configuration item corresponding to the source system is obtained, and the non-default system configuration item is used as the system configuration to be migrated.
- query the mapping relationship between the pre-system, system configuration items, and key parameter values obtain the target system configuration items and key parameter values corresponding to the system configuration items that need to be migrated, and finally pass the telnet/ssh protocol channel established with the target system.
- the target system is configured to be migrated according to the target system configuration item and the key parameter values, so that the source configuration item is automatically obtained, and the automatic migration configuration is completed through the telnet/ssh protocol channel, thereby effectively solving the migration work in the prior art.
- FIG. 4 is a schematic structural diagram of another embodiment of an automatic migration device of a system configuration item according to the present invention.
- the device in this embodiment further includes: a receiving module 17 And a processing module 18, wherein the receiving module 17 is configured to receive an indication message of the first modified system configuration item that is input by the user, where the indication message of the first modified system configuration item includes an identifier of the first modified system configuration item; Adding or deleting the system configuration item corresponding to the identifier of the first modified system configuration item, and obtaining the modified system configuration item to be migrated, according to the indication message of the first modified system configuration item,
- the target system configuration item and the key parameter value obtaining module 14 are specifically configured to query the mapping relationship between the pre-system, the system configuration item, and the key parameter values, and obtain the target system configuration item and the key parameter value corresponding to the modified system configuration item to be migrated. .
- the receiving module 17 is further configured to receive an indication message of the second modified system configuration item that is input by the user, where the indication message of the second modified system configuration item includes the identifier of the second modified system configuration item; 2. Modify the indication item of the system configuration item, add or delete the system configuration item corresponding to the identifier of the second modified system configuration item on the target system configuration item, and obtain the modified item.
- the system configuration item is configured to: Deploy the telnet/ssh protocol channel established with the target system, and perform migration configuration on the target system according to the modified target system configuration item and key parameter values.
- the device further includes: a definition module 19, configured to pre-define an identifier and a shell script of the system configuration item corresponding to the target system;
- the migration configuration processing module 16 includes a configuration script generation unit 161 and a migration configuration unit 162, wherein the configuration script generation unit 161 is configured to set the target system configuration item and the key parameter value according to the identifier of the system configuration item corresponding to the target system and the shell script.
- a configuration script is generated; the migration configuration unit 162 is configured to perform migration configuration on the target system according to a telnet/ssh protocol channel established with the target system according to the configuration script.
- the device further includes: a migration report generation module 20 and an update module 21, wherein the migration report generation module 20 is configured to generate a migration report, where the migration report includes an identifier of the target system configuration item and an identifier corresponding to the target system configuration item.
- the configuration result is that the update module 21 is configured to obtain a key parameter value corresponding to the identifier of the target system configuration item according to the migration report, the query system, the system configuration item, and the key parameter value relationship, and according to the identifier of the target system configuration item. Corresponding configuration results, the key parameter values are updated.
- the automatic migration device of the system configuration item of this embodiment can perform the technical solution of the method embodiment shown in FIG. 2, and the implementation principles thereof are similar, and details are not described herein again.
- the source system configuration item corresponding to the identifier of the system configuration item on the source system is collected through the telnet/ssh protocol channel established with the source system, and the collected source system configuration item is preset with The default system configuration item corresponding to the source system is compared, the non-default system configuration item corresponding to the source system is obtained, and the non-default system configuration item is used as a system configuration item to be migrated, and then the pre-system, system configuration item, and key are queried.
- the mapping relationship between the parameter values, the target system configuration item and the key parameter value corresponding to the system configuration item to be migrated, and finally the telnet/ssh protocol channel established with the target system, and the target system configuration item and the key parameter value are used to target the target
- the system performs the migration configuration, so that the source system configuration items are automatically obtained online, and the automatic migration is completed through the telnet/ssh protocol channel.
- the configuration further effectively solves the defect that the workload of the migration in the prior art is large and the risk of migration is high.
- the system configuration items and target system configuration items that need to be migrated can be monitored and modified by the user, that is, a security mechanism that can be considered as control is established, thereby ensuring the quality of the migration.
- a migration report can be generated, which not only allows the user to clearly guide the migration of those system configuration items and the system configuration items that have failed to be configured, but also according to the target system configuration items.
- the corresponding configuration result is identified, and the key parameter values corresponding to the identifier of the target system configuration item are modified, thereby optimizing the migration quality of the subsequent same system.
- the device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located in one place. , or it can be distributed to at least two network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
- Computer And Data Communications (AREA)
Description
系统配置项的自动迁移方法和设备
技术领域
本发明实施例涉及计算机技术, 尤其涉及一种系统配置项的自动迁移方 法和设备。 背景技术
目前, 由于高端容错计算机的市场应用中, 既要保证客户应用系统的平滑 迁移,也要减小客户迁移风险和工作量, 以达到降低客户的总体拥有成本(Total Cost of Ownership; 简称: TCO ) 的目的, 因此, 迁移技术的自动化就成了高端 容错计算机产品化技术准备的关键点, 也是成就客户价值的体现。
现有技术中在目标服务器和源服务器上均安装一个代理(Agent ) , 其中, 该 Agent用于挖掘应用运行所需的直接系统服务,并通过 Agent接口将这些直接 系统服务传递给数据模型数据库。 当应用在源服务器的运行过程中, 通过其上 设置的 Agent, 获取该源服务器上的直接系统服务, 并将该直接系统服务器通过 Agent接口传递给数据模型数据库, 由数据模型数据库根据预先建立的系统服务 之间的依赖关系以及接收到的该源服务器上的直接系统服务, 获取间接系统服 务, 并将该间接系统服务传递给源服务器上的 Agent, 源服务器上的 Agent根据 该直接系统服务和间接系统服务, 获取该直接和间接系统服务的配置, 并将该 直接系统服务、 间接系统服务以及直接和间接系统服务的配置设置到目标服务 器中, 从而实现应用所依赖的系统环境从源服务器到目标服务器的迁移。
在实现本发明过程中, 发明人发现现有技术中至少存在如下问题: 该源服 务器和目标服务器都需要安装 Agent,并需要编写和维护各个应用的测试用例来 收集直接系统服务和间接系统服务, 以及根据该直接系统服务和间接系统服务, 获取直接和间接系统服务的配置, 从而增加了迁移中的工作量, 并增加了迁移 的风险。
发明内容
本发明实施例提供一种系统配置项的自动迁移方法和设备, 用以解决现有 技术中迁移的工作量大, 且迁移的风险高的缺陷。
本发明实施例提供一种系统配置项的自动迁移方法, 包括:
通过与源系统建立的 telnet/ssh协议通道以及预先定的与所述源系统对应的 shell脚本, 采集所述源系统上与系统配置项的标识对应的源系统配置项; 所述 系统配置项的标识为预先定义的与所述源系统对应的系统配置项的标识;
将采集到的所述源系统配置项和预先设置的与所述源系统对应的默认系统 配置项对比, 获取与所述源系统对应的非默认系统配置项; 并将所述非默认系 统配置项作为需要迁移的系统配置项;
查询预系统、 系统配置项以及关键参数值的映射关系, 获取与所述需要迁 移的系统配置项对应的目标系统配置项和关键参数值;
通过与目标系统建立的 telnet/ssh协议通道,并根据所述目标系统配置项和关 键参数值对所述目标系统进行迁移配置。
本发明实施例提供一种系统配置项的自动迁移设备, 包括:
第一通道建立模块, 用于与源系统建立的 telnet/ssh协议通道;
采集模块, 用于通过所述第一通道建立模块建立的 telnet/ssh协议通道以及 预先定义的与所述源系统对应的 shell脚本, 采集所述源系统上与系统配置项的 标识对应的源系统配置项; 所述系统配置项的标识为预先定义的与所述源系统 对应的系统配置项的标识;
需要迁移的系统配置项获取模块, 用于将所述采集模块采集到的所述源系 统配置项和预先设置的与所述源系统对应的默认系统配置项对比, 获取与所述 源系统对应的非默认系统配置项; 并将所述非默认系统配置项作为需要迁移的 系统配置项;
目标配置项和关键参数值获取模块, 用于查询预系统、 系统配置项以及关
键参数值的映射关系, 获取与所述需要迁移的系统配置项对应的目标系统配置 项和关键参数值;
第二通道建立模块, 用于与目标系统建立的 telnet/ssh协议通道;
迁移配置处理模块,用于通过所述第二通道建立模块建立的 telnet/ssh协议通 道, 并根据所述目标系统配置项和关键参数值对所述目标系统进行迁移配置。
本发明实施例的系统配置项的自动迁移方法和设备, 通过与源系统建立的 telnet/ssh协议通道以及预先定的与源系统对应的 shell脚本, 采集源系统上与系 统配置项的标识对应的源系统配置项, 并将采集到的该源系统配置项与预先设 置的与该源系统对应的默认系统配置项对比, 获取与该源系统对应的非默认系 统配置项, 并将该非默认系统配置项作为需要迁移的系统配置项, 然后查询预 系统、 系统配置项以及关键参数值的映射关系, 获取与需要迁移的系统配置项 对应的目标系统配置项和关键参数值, 最后通过与目标系统建立的 telnet/ssh协 议通道, 并根据目标系统配置项和关键参数值对目标系统进行迁移配置, 从而 实现了自动获取源系统配置项, 并通过 telnet/ssh协议通道完成自动迁移配置, 进而有效地解决了现有技术中迁移的工作量大, 且迁移的风险高的缺陷。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出 创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明系统配置项的自动迁移方法的一个实施例的流程图; 图 2为本发明系统配置项的自动迁移方法的另一个实施例的流程图; 图 3为本发明系统配置项的自动迁移设备的一个实施例的结构示意图; 图 4为本发明系统配置项的自动迁移设备的另一个实施例的结构示意图。
具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中 的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
图 1 为本发明系统配置项的自动迁移方法的一个实施例的流程图, 如图 1 所示, 本实施例的执行主体为系统配置项的自动迁移设备, 该方法包括:
步骤 101、 通过与源系统建立的远程登录( Telecommunications Network; 简 称: telnet ) /安全外壳(Secure Shell; 简称: ssh )协议通道以及预先定义的与该 源系统对应的 shell脚本, 采集源系统上与系统配置项的标识对应的源系统配置 项, 该系统配置项的标识为预先定义的与源系统对应的系统配置项的标识。
其中, 该源系统可以具体为操作系统或者数据库等。
在本实施例中, 系统配置项的自动迁移设备预先定义与该源系统对应的系 统配置项的标识, 并通过 telnet/ssh 协议与源系统建立连接, 从而可以通过 telnet/ssh协议通道和该 shell脚本, 采集源系统上与该系统配置项的标识对应的 源系统配置项。 该源系统配置项可以具体为相关账号群组、 核心参数、 文件系 统配置及权限、 系统子服务、 安全策略或者基础软件包。 需要说明的是, 该源 系统配置项并不限于上述所述的几种。 另外, 采集到的源系统配置项的数量可 以是一个或者是多个, 与预先定义的系统配置项的标识有关。
步骤 102、将采集到的源系统配置项和预先设置的与源系统对应的默认系统 配置项对比, 获取与源系统对应的非默认系统配置项, 并将该非默认系统配置 项作为需要迁移的系统配置项。
在本实施例中, 默认系统配置项和非默认系统配置项可以为相关账号群组、 核心参数、 文件系统配置及权限、 系统子服务、 安全策略或者基础软件包。 需 要说明的是, 该默认系统配置项和非默认系统配置项并不限于上述所述的几种。
另外 , 该默认系统配置项可以为源系统初始化时对应的系统配置项; 非默认系 统配置项可以为对默认系统配置项进行修改后获取的系统配置项。
步骤 103、 查询预系统、 系统配置项以及关键参数值的映射关系, 获取与该 需要迁移的系统配置项对应的目标系统配置项和关键参数值。
在本实施例中, 该目标系统配置项可以为相关账号群组、 核心参数、 文件 系统配置及权限、 系统子服务、 安全策略或者基础软件包。 需要说明的是, 该 目标系统配置项并不限于上述所述的几种。 另外, 举例来说, 当目标系统为 Red Hat公司的 Linux ( Red Hat Enterprise Linux; 简称: RHEL )平台、 需要迁移的 系统配置项为相关账号群组时, 则该需要迁移的系统配置项对应的目标系统上 的关键参数值可以具体为: RHEL平台上的 /etc/passwd文件里 id号大于等于 500 的数据行。
步骤 104、 通过与目标系统建立 telnet/ssh协议通道, 并根据目标系统配置 项和关键参数值对目标系统进行迁移配置。
在本实施例中, 该源系统和目标系统的关系可以是同构关系, 也可是异构 关系。
在本实施例中, 通过与源系统建立的 telnet/ssh协议通道以及预先定义的与 该源系统对应的 shell脚本, 采集源系统上与系统配置项的标识对应的源系统配 置项, 并将采集到的该源系统配置项与预先设置的与该源系统对应的默认系统 配置项对比, 获取与该源系统对应的非默认系统配置项, 并将该非默认系统配 置项作为需要迁移的系统配置项, 然后查询预系统、 系统配置项以及关键参数 值的映射关系, 获取与需要迁移的系统配置项对应的目标系统配置项和关键参 数值, 最后通过与目标系统建立的 telnet/ssh协议通道, 并根据目标系统配置项 和关键参数值对目标系统进行迁移配置, 从而实现了自动获取源配置项, 并通 过 telnet/ssh协议通道完成自动迁移配置, 进而有效地解决了现有技术中迁移的 工作量大, 且迁移的风险高的缺陷。
图 2为本发明系统配置项的自动迁移方法的另一个实施例的流程图,如图 2
所示, 本实施例的执行主体为系统配置项的自动迁移设备, 则该方法包括: 步骤 201、 通过与源系统建立的 telnet/ssh协议通道以及预先定义的与该源 系统对应的 shell脚本,采集源系统上与系统配置项的标识对应的源系统配置项 , 该系统配置项的标识为预先定义的与源系统对应的系统配置项的标识。
其中, 该源系统可以具体为操作系统或者数据库等。
在本实施例中, 系统配置项的自动迁移设备通过用户界面接收用户输入的 root账号以及密码, 并对该 root账号和密码进行权限认证, 在权限认证通过后, 可以通过 telnet/ssh协议与源系统建立连接, 从而可以通过 telnet/ssh协议通道以 及预先定义的与该源系统对应的 shell脚本, 采集源系统上与系统配置项的标识 对应的源系统配置项。 其中, 该系统配置项的标识为预先定义的与该源系统对 应的系统配置项的标识。 该源系统配置项可以为相关账号群组、 核心参数、 文 件系统配置及权限、 系统子服务、 安全策略或者基础软件包。 需要说明的是, 该源系统配置项并不限于上述所述的几种。 另外, 采集到的源系统配置项的数 量可以是一个或者是多个, 与预先定义的系统配置项的标识有关。
步骤 202、将采集到的源系统配置项和预先设置的与源系统对应的默认系统 配置项对比, 获取与源系统对应的非默认系统配置项, 并将该非默认系统配置 项作为需要迁移的系统配置项。
举例来说, 采集到的源系统配置项分别有: 相关账号群组、 核心参数和系 统子服务。 则与相关账号群组的默认系统配置项、 核心参数的默认系统配置和 系统子服务的默认系统配置项对比, 即比较该相关账号群组的源系统配置项、 核心参数的源系统配置项和系统子服务的源系统配置项, 相对于相关账号群组 的默认系统配置项、 核心参数的默认系统配置和系统子服务的默认系统配置项 是否进行了修改, 若相关账号群组的源系统配置项相对于相关账号群组的默认 系统配置项进行了修改, 则将修改的部分作为非默认系统配置项, 并将该相关 账号群组的非默认系统配置项作为需要迁移的系统配置项。
步骤 203、接收用户输入的第一修改系统配置项的指示消息, 该第一修改系
统配置项的指示消息包括第一修改系统配置项的标识。
步骤 204、根据第一修改系统配置项的指示消息, 在需要迁移的系统配置项 上, 增加或者删除与第一修改系统配置项的标识对应的系统配置项, 获取修改 后的需要迁移的系统配置项。
步骤 205、 查询预系统、 系统配置项以及关键参数值的映射关系, 获取与目 标系统和该修改后的需要迁移的系统配置项对应的目标系统配置项和关键参数 值。
在本实施例中, 该目标系统标配置项可以为相关账号群组、 核心参数、 文 件系统配置及权限、 系统子服务、 安全策略或者基础软件包。 需要说明的是, 该目标系统配置项并不限于上述所述的几种。
步骤 206、接收用户输入的第二修改系统配置项的指示消息, 该第二修改系 统配置项的指示消息包括第二修改系统配置项的标识。
步骤 207、 根据第二修改系统配置项的指示消息, 在目标系统配置项上, 增 加或者删除与所述第二修改系统配置项的标识对应的系统配置项, 获取修改后 的目标系统配置项。
步骤 208、 预先定义目标系统对应的系统配置项的标识和 shell脚本。
步骤 209、 根据目标系统对应的系统配置项的标识和 shell脚本, 将修改后 的目标系统配置项和关键参数值生成配置脚本。
步骤 210、 通过与目标系统建立的 telnet/ssh协议通道, 并根据配置脚本对 目标系统进行迁移配置。
在本实施例中, 系统配置项的自动迁移设备通过用户界面接收用户输入的 root账号以及密码, 并对该 root账号和密码进行权限认证, 在权限认证通过后, 可以通过 telnet/ssh协议与目标系统建立连接, 从而可以通过与目标系统建立的 telnet/ssh协议通道, 并根据配置脚本对目标系统进行迁移配置。
步骤 211、 生成迁移报告, 该迁移报告包括目标系统配置项的标识和目标系 统配置项的标识对应的配置结果。
在本实施例中, 该目标系统配置项的标识可以包括配置成功的系统配置项 的标识和配置失败的系统配置项的标识。
步骤 212、 根据该迁移报告, 查询系统、 系统配置项以及关键参数点的映射 关系, 获取与该目标系统配置项的标识对应的关键参数值, 并根据该目标系统 配置项的标识对应的配置结果, 对该关键参数值进行更新。
另外, 对于配置失败的系统配置项的标识, 在目标系统上, 对配置失败的 系统配置项的标识对应的系统配置项可以采用手动方式进行迁移配置。 或者, 对于配置失败的系统配置项的标识, 查询系统、 系统配置项以及关键参数 点的映射关系, 获取与该配置失败的系统配置项的标识对应的目标系统配置项 和关键参数值, 并根据目标系统对应的系统配置项的标识和 shell脚本, 将该目 标系统配置项和关键参数值生成配置脚本,最后通过与目标系统建立的 telnet/ssh 协议通道, 并根据配置脚本对目标系统进行迁移配置。
举例来说, 以源系统为 AIX6.1 64位, 目标系统为 RHEL5.4 64位为例, 详 细介绍本实施例的技术方案, 具体的, 配置项的自动迁移设备通过 telnet协议与 AIX6.1建立连接, 通过 ssh协议与 RHEL5.4建立连接, 然后通过用户界面输入 root账号和密码进行权限认证,在认证通过后 ,通过 telnet协议通道,采集 AIX6.1 上与系统配置项的标识对应的源系统配置项, 该系统配置项的标识为预先定义 的与 AIX6.1对应的系统配置项的标识。 具体的, 采集到的源系统配置项有: 账 号群组, 核心参数, datavg和 rootvg卷组的 pv/lv配置, jfs等文件系统以及目录 权限、 ftp/dns/ntp/network系统子服务, 账号 /进程 /防火墙安全策略和 OS基础软 件包。 将采集到的上述源系统配置项与预先设置的与该 AIX6.1对应的默认系统 配置项对比, 获取与该源系统对应的非默认配置项, 例如: 账号群组的源系统 酉己置项为 /etc/passwd里的 root、 daemon、 bin、 sys、 adm、 uucp、 guest、 nobodyt、 uxedo、 oracle, sshd; 而账号群组的默认系统配置项为 /etc/passwd里的 root、 daemon、 bin、 sys、 adm、 uucp、 guest、 nobody, 贝1 J寻 /etc/passwd里 ό tuxedo、 oracle, sshd作为账号群组的非默认系统配置项, 再将该账号群组的非默认系统
配置项作为账号群组的需要迁移的系统配置项。
系统配置项的自动迁移设备将该需要迁移的配置项提供给用户, 用户可以 输入第一修改系统配置项指示消息, 该第一修改系统配置项指示消息中包括第 一修改系统配置项的标识, 则系统配置项的自动迁移设备根据第一修改系统配 置项的指示消息, 在需要迁移的系统配置项上, 增加或者删除与第一修改系统 配置项的标识对应的系统配置项, 获取修改后的需要迁移的系统配置项。 例如: 该第一修改系统配置项的指示消息为删除系统配置项的指示消息, 且该第一修 改系统配置项的标识对应的系统配置项为 /etc/passwd里的 sshd, 则将账号群组 的非默认系统配置项 (例如: /etc/passwd里的 tuxedo、 oracle、 sshd ) 中的 sshd 删除, 则获取的修改后的账号群组的需要迁移的系统配置项为 /etc/passwd里的 tuxedo、 oracle。
系统配置项的自动迁移设备查询预先建立的系统、 系统配置项以及关键参 数值的映射关系, 即预系统、 系统配置项以及关键参数值的映射关系, 获取与 RHEL5.4 和该修改后的需要迁移的系统配置项对应的目标系统配置项和关键参 数值, 并根据预先定义的 RHEL5.4的系统配置项的标识和 shell脚本, 将目标系 统配置项和关键参数值生成在 RHEL5.4可顺序执行的配置脚本, 通过 ssh协议 通道和该配置脚本, 对 RHEL5.4进行迁移配置。
在本实施例中 , 通过与源系统建立的 telnet/ssh协议通道, 采集源系统上与 系统配置项的标识对应的源系统配置项, 并将采集到的该源系统配置项与预先 设置的与该源系统对应的默认系统配置项对比, 获取与该源系统对应的非默认 系统配置项, 并将该非默认系统配置项作为需要迁移的系统配置项, 然后查询 预系统、 系统配置项以及关键参数值的映射关系, 获取与需要迁移的系统配置 项对应的目标系统配置项和关键参数值, 最后通过与目标系统建立的 telnet/ssh 协议通道, 并根据目标系统配置项和关键参数值对目标系统进行迁移配置, 从 而实现了在线自动获取源系统配置项, 并通过 telnet/ssh协议通道完成自动迁移 配置, 进而有效地解决了现有技术中迁移的工作量大, 且迁移的风险高的缺陷。
另外, 该需要迁移的系统配置项以及目标系统配置项可以被用户监控和修改, 即建立了可以认为控制的安全机制, 从而确保了迁移的质量。 同时, 在目标系 统上完成迁移配置后, 可以生成一个迁移报告, 不仅可以让用户清楚地指导已 完成了那些系统配置项的迁移以及配置失败的系统配置项, 还可以根据该目标 系统配置项的标识对应的配置结果, 对该目标系统配置项的标识对应的关键参 数值进行修改, 从而优化了后续相同系统的迁移质量。
另外, 进一步的, 在本发明的又一个实施例中, 该源系统可以为物理机或 者虚拟机, 该目标系统可以为虚拟机或者物理机, 其实现原理与图 2所示方法 实施例的实现原理相类似, 此处不再赘述, 从而可以支持物理机与物理机、 虚 拟机与物理机, 或者虚拟机与虚拟机之间的迁移配置, 进而满足应用场景的迁 移需求。
图 3 为本发明系统配置项的自动迁移设备的一个实施例的结构示意图, 如 图 3所示, 本实施例的设备包括: 第一通道建立模块 11、 采集模块 12、 需要迁 移的配置项获取模块 13、 目标配置项和关键参数值获取模块 14、 第二通道建立 模块 15和迁移配置处理模块 16, 其中, 第一通道建立模块 11用于与源系统建 立的 telnet/ssh协议通道; 采集模块 12用于通过第一通道建立模块 11 建立的 telnet/ssh协议通道以及预先定义的与该源系统对应的 shell脚本, 采集源系统上 与系统配置项的标识对应的源系统配置项; 系统配置项的标识为预先定义的与 源系统对应的系统配置项的标识; 需要迁移的系统配置项获取模块 13用于将采 集模块 12采集到的源系统配置项和预先设置的与源系统对应的默认系统配置项 对比, 获取与源系统对应的非默认系统配置项; 并将非默认系统配置项作为需 要迁移的系统配置项; 目标配置项和关键参数值获耳 莫块 14用于查询预系统、 系统配置项以及关键参数值的映射关系, 获取与需要迁移的系统配置项对应的 目标系统配置项和关键参数值; 第二通道建立模块 15 用于与目标系统建立的 telnet/ssh协议通道; 迁移配置处理模块 16用于通过第二通道建立模块 15建立 的 telnet/ssh协议通道, 并根据目标系统配置项和关键参数值对目标系统进行迁
移配置。
本实施例的系统配置项的自动迁移设备可以执行图 1 所示方法实施例的技 术方案, 其实现原理相类似, 此处不再赘述。
在本实施例中, 通过与源系统建立的 telnet/ssh协议通道以及预先定义的与 该源系统对应的 shell脚本, 采集源系统上与系统配置项的标识对应的源系统配 置项, 并将采集到的该源系统配置项与预先设置的与该源系统对应的默认系统 配置项对比, 获取与该源系统对应的非默认系统配置项, 并将该非默认系统配 置项作为需要迁移的系统配置项, 然后查询预系统、 系统配置项以及关键参数 值的映射关系, 获取与需要迁移的系统配置项对应的目标系统配置项和关键参 数值, 最后通过与目标系统建立的 telnet/ssh协议通道, 并根据目标系统配置项 和关键参数值对目标系统进行迁移配置, 从而实现了自动获取源配置项, 并通 过 telnet/ssh协议通道完成自动迁移配置, 进而有效地解决了现有技术中迁移的 工作量大, 且迁移的风险高的缺陷。
图 4 为本发明系统配置项的自动迁移设备的另一个实施例的结构示意图, 在上述图 3所示实施例的基础上, 如图 4所示, 本实施例的设备还包括: 接收 模块 17和处理模块 18, 其中, 接收模块 17用于接收用户输入的第一修改系统 配置项的指示消息, 第一修改系统配置项的指示消息包括第一修改系统配置项 的标识; 处理模块 18用于根据第一修改系统配置项的指示消息, 在需要迁移的 系统配置项上, 增加或者删除与第一修改系统配置项的标识对应的系统配置项, 获取修改后的需要迁移的系统配置项; 则目标系统配置项和关键参数值获取模 块 14具体用于查询预系统、 系统配置项以及关键参数值的映射关系, 获取与修 改后的需要迁移的系统配置项对应的目标系统配置项和关键参数值。
进一步的, 接收模块 17还用于接收用户输入的第二修改系统配置项的指示 消息, 第二修改系统配置项的指示消息包括第二修改系统配置项的标识; 处理 模块 18还用于根据第二修改系统配置项的指示消息, 在目标系统配置项上, 增 加或者删除与第二修改系统配置项的标识对应的系统配置项, 获取修改后的目
标系统配置项; 则迁移配置处理模块 16 具体用于通过与目标系统建立的 telnet/ssh协议通道, 并根据修改后的目标系统配置项和关键参数值对目标系统 进行迁移配置。
更进一步的, 该设备还包括: 定义模块 19, 用于预先定义目标系统对应的 系统配置项的标识和 shell脚本;
则迁移配置处理模块 16包括配置脚本生成单元 161和迁移配置单元 162, 其中,配置脚本生成单元 161用于根据目标系统对应的系统配置项的标识和 shell 脚本, 将目标系统配置项和关键参数值生成配置脚本; 迁移配置单元 162用于 通过与目标系统建立的 telnet/ssh协议通道, 并根据配置脚本对目标系统进行迁 移配置。
更进一步的, 该设备还包括: 迁移报告生成模块 20和更新模块 21 , 其中, 迁移报告生成模块 20用于生成迁移报告, 该迁移报告包括目标系统配置项的标 识和目标系统配置项的标识对应的配置结果;更新模块 21用于根据该迁移报告, 查询系统、 系统配置项以及关键参数值关系, 获取与该目标系统配置项的标识 对应的关键参数值, 并根据该目标系统配置项的标识对应的配置结果, 对关键 参数值进行更新。
本实施例的系统配置项的自动迁移设备可以执行图 2所示方法实施例的技 术方案, 其实现原理相类似, 此处不再赘述。
在本实施例中 , 通过与源系统建立的 telnet/ssh协议通道, 采集源系统上与 系统配置项的标识对应的源系统配置项, 并将采集到的该源系统配置项与预先 设置的与该源系统对应的默认系统配置项对比, 获取与该源系统对应的非默认 系统配置项, 并将该非默认系统配置项作为需要迁移的系统配置项, 然后查询 预系统、 系统配置项以及关键参数值的映射关系, 获取与需要迁移的系统配置 项对应的目标系统配置项和关键参数值, 最后通过与目标系统建立的 telnet/ssh 协议通道, 并根据目标系统配置项和关键参数值对目标系统进行迁移配置, 从 而实现了在线自动获取源系统配置项, 并通过 telnet/ssh协议通道完成自动迁移
配置, 进而有效地解决了现有技术中迁移的工作量大, 且迁移的风险高的缺陷。 另外, 该需要迁移的系统配置项以及目标系统配置项可以被用户监控和修改, 即建立了可以认为控制的安全机制, 从而确保了迁移的质量。 同时, 在目标系 统上完成迁移配置后, 可以生成一个迁移报告, 不仅可以让用户清楚地指导已 完成了那些系统配置项的迁移以及配置失败的系统配置项, 还可以根据该目标 系统配置项的标识对应的配置结果, 对该目标系统配置项的标识对应的关键参 数值进行修改, 从而优化了后续相同系统的迁移质量。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可 以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存 储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储 介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。
以上所描述的装置实施例仅仅是示意性的, 其中作为分离部件说明的单元 可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以 不是物理单元, 即可以位于一个地方, 或者也可以分布到至少两个网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目 的。 本领域普通技术人员在不付出创造性的劳动的情况下, 即可以理解并实施。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限 制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员 应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其 中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的 本质脱离本发明各实施例技术方案的精神和范围。
Claims
1、 一种系统配置项的自动迁移方法, 其特征在于, 包括:
通过与源系统建立的远程登录 /安全外壳协议通道以及预先定义的与所述 源系统对应的外壳 shell脚本,采集所述源系统上与系统配置项的标识对应的源 系统配置项; 所述系统配置项的标识为预先定义的与所述源系统对应的系统配 置项的标识;
将采集到的所述源系统配置项和预先设置的与所述源系统对应的默认系统 配置项对比, 获取与所述源系统对应的非默认系统配置项, 并将所述非默认系 统配置项作为需要迁移的系统配置项;
查询预系统、 系统配置项以及关键参数值的映射关系, 获取与所述需要迁 移的系统配置项对应的目标系统配置项和关键参数值;
通过与目标系统建立的远程登录 /安全外壳协议通道, 并根据所述目标系统 配置项和关键参数值对所述目标系统进行迁移配置。
2、根据权利要求 1所述的系统配置项的自动迁移方法, 其特征在于, 还包 括:
接收用户输入的第一修改系统配置项的指示消息, 所述第一修改系统配置 项的指示消息包括第一修改系统配置项的标识;
根据所述第一修改系统配置项的指示消息, 在所述需要迁移的系统配置项 上, 增加或者删除与所述第一修改系统配置项的标识对应的系统配置项, 获取 修改后的需要迁移的系统配置项;
则所述查询预系统、 系统配置项以及关键参数值的映射关系, 获取与所述 需要迁移的系统配置项对应的目标系统配置项和关键参数值, 包括:
查询预系统、 系统配置项以及关键参数值的映射关系, 获取与所述修改后 的需要迁移的系统配置项对应的目标系统配置项和关键参数值。
3、根据权利要求 2所述的系统配置项的自动迁移方法, 其特征在于, 还包 括: 接收用户输入的第二修改系统配置项的指示消息, 所述第二修改系统配置 项的指示消息包括第二修改系统配置项的标识;
根据所述第二修改系统配置项的指示消息, 在所述目标系统配置项上, 增 加或者删除与所述第二修改系统配置项的标识对应的系统配置项, 获取修改后 的目标系统配置项;
则所述通过与目标系统建立的远程登录 /安全外壳协议通道, 并根据所述目 标系统配置项和关键参数值对所述目标系统进行迁移配置, 包括:
通过与目标系统建立的远程登录 /安全外壳协议通道, 并根据所述修改后的 目标系统配置项和关键参数值对所述目标系统进行迁移配置。
4、根据权利要求 1所述的系统配置项的自动迁移方法, 其特征在于, 还包 括:
预先定义所述目标系统对应的系统配置项的标识和 shell脚本;
则所述通过与目标系统建立的远程登录 /安全外壳协议通道, 并根据所述目 标系统配置项和关键参数值对所述目标系统进行迁移配置, 包括:
根据所述目标系统对应的系统配置项的标识和 shell脚本,将所述目标系统 配置项和关键参数值生成配置脚本;
通过与目标系统建立的远程登录 /安全外壳协议通道, 并根据所述配置脚本 对所述目标系统进行迁移配置。
5、根据权利要求 1至 4任一项所述的系统配置项的自动迁移方法, 其特征 在于, 还包括:
生成迁移报告, 所述迁移报告包括目标系统配置项的标识和目标系统配置 项的标识对应配置结果;
根据所述迁移报告, 查询所述系统、 系统配置项以及关键参数值的映射关 系, 获取与所述目标系统配置项的标识对应的关键参数值, 并根据所述目标系 统配置项的标识对应的配置结果, 对所述关键参数值进行更新。
6、 一种系统配置项的自动迁移设备, 包括: 第一通道建立模块, 用于与源系统建立的远程登录 /安全外壳协议通道; 采集模块, 用于通过所述第一通道建立模块建立的远程登录 /安全外壳协议 通道以及预先定义的与所述源系统对应的外壳 shell脚本,采集所述源系统上与 系统配置项的标识对应的源配置项; 所述系统配置项的标识为预先定义的与所 述源系统对应的系统配置项的标识;
需要迁移的系统配置项获取模块, 用于将所述采集模块采集到的所述源系 统配置项和预先设置的与所述源系统对应的默认系统配置项对比, 获取与所述 源系统对应的非默认系统配置项, 并将所述非默认系统配置项作为需要迁移的 系统配置项;
目标系统配置项和关键参数值获取模块, 用于查询预系统、 系统配置项以 及关键参数值的映射关系, 获取与所述需要迁移的系统配置项对应的目标系统 配置项和关键参数值;
第二通道建立模块, 用于与目标系统建立的远程登录 /安全外壳协议通道; 迁移配置处理模块, 用于通过所述第二通道建立模块建立的远程登录 /安全 外壳协议通道, 并根据所述目标系统配置项和关键参数值对所述目标系统进行 迁移配置。
7、根据权利要求 6所述的系统配置项的自动迁移设备, 其特征在于, 还包 括:
接收模块, 用于接收用户输入的第一修改系统配置项的指示消息, 所述第 一修改系统配置项的指示消息包括第一修改系统配置项的标识;
处理模块, 用于根据所述第一修改系统配置项的指示消息, 在所述需要迁 移的系统配置项上, 增加或者删除与所述第一修改系统配置项的标识对应的系 统配置项, 获取修改后的需要迁移的系统配置项;
则所述需要迁移的配置项获耳 莫块具体用于查询预系统、 系统配置项以及 关键参数值的映射关系, 获取与所述修改后的需要迁移的系统配置项对应的目 标系统配置项和关键参数值。
8、根据权利要求 7所述的系统配置项的自动迁移设备, 其特征在于, 所述 接收模块还用于接收用户输入的第二修改系统配置项的指示消息, 所述第二修 改系统配置项的指示消息包括第二修改系统配置项的标识;
所述处理模块还用于根据所述第二修改系统配置项的指示消息, 在所述目 标系统配置项上, 增加或者删除与所述第二修改系统配置项的标识对应的系统 配置项, 获取修改后的目标系统配置项;
则所述迁移配置处理模块具体用于通过与目标系统建立的远程登录 /安全 外壳协议通道, 并根据所述修改后的目标系统配置项和关键参数值对所述目标 系统进行迁移配置。
9、根据权利要求 6所述的系统配置项的自动迁移设备, 其特征在于, 还包 括:
定义模块, 用于预先定义所述目标系统对应的系统配置项的标识和 shell 脚本;
则所述迁移配置处理模块包括:
配置脚本生成单元, 用于根据所述目标系统对应的系统配置项的标识和 shell脚本, 将所述目标系统配置项和关键参数值生成配置脚本;
迁移配置单元, 用于通过与目标系统建立的远程登录 /安全外壳协议通道, 并根据所述配置脚本对所述目标系统进行迁移配置。
10、 根据权利要求 6至 9任一项所述的配置项的自动迁移设备, 其特征在 于, 还包括:
迁移报告生成模块, 用于生成迁移报告, 所述迁移报告包括目标系统配置 项的标识和目标系统配置项的标识对应配置结果;
更新模块, 用于根据所述迁移报告, 查询所述系统、 系统配置项以及关键 参数值的映射关系, 获取与所述目标系统配置项的标识对应的关键参数值, 并 根据所述目标系统配置项的标识对应的配置结果,对所述关键参数值进行更新。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201180001473.8A CN102369713B (zh) | 2011-08-29 | 2011-08-29 | 系统配置项的自动迁移方法和设备 |
PCT/CN2011/079046 WO2012119423A1 (zh) | 2011-08-29 | 2011-08-29 | 系统配置项的自动迁移方法和设备 |
EP11860391.9A EP2675127B1 (en) | 2011-08-29 | 2011-08-29 | Method and device for automatically migrating system configuration item |
US13/565,387 US9171053B2 (en) | 2011-08-29 | 2012-08-02 | Method and device for automatic migration of system configuration item |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/079046 WO2012119423A1 (zh) | 2011-08-29 | 2011-08-29 | 系统配置项的自动迁移方法和设备 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/565,387 Continuation US9171053B2 (en) | 2011-08-29 | 2012-08-02 | Method and device for automatic migration of system configuration item |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012119423A1 true WO2012119423A1 (zh) | 2012-09-13 |
Family
ID=45761468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/079046 WO2012119423A1 (zh) | 2011-08-29 | 2011-08-29 | 系统配置项的自动迁移方法和设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US9171053B2 (zh) |
EP (1) | EP2675127B1 (zh) |
CN (1) | CN102369713B (zh) |
WO (1) | WO2012119423A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106789315A (zh) * | 2016-12-30 | 2017-05-31 | 广州杰赛科技股份有限公司 | 系统配置方法和装置 |
EP2936736B1 (en) * | 2012-12-19 | 2019-05-01 | ABB Schweiz AG | Configuration device and method for computer-implemented configuration of one or more network devices |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102710641B (zh) * | 2012-05-31 | 2014-09-10 | 北京神州绿盟信息安全科技股份有限公司 | 一种安全配置优化的方法及装置 |
CN103873534B (zh) * | 2012-12-18 | 2017-06-06 | 中国移动通信集团公司 | 一种应用集群迁移方法及装置 |
US9094299B1 (en) * | 2013-01-08 | 2015-07-28 | Juniper Networks, Inc. | Auto-generation of platform-independent interface and operational scripts for configuring network devices |
US9430483B1 (en) * | 2013-12-30 | 2016-08-30 | Emc Corporation | Automatic file system migration to a network attached storage system |
US20150293862A1 (en) * | 2014-04-10 | 2015-10-15 | Andes Technology Corporation | Hardware configuration apparatus |
US9430268B2 (en) * | 2014-05-02 | 2016-08-30 | Cavium, Inc. | Systems and methods for supporting migration of virtual machines accessing remote storage devices over network via NVMe controllers |
US9851986B2 (en) | 2015-08-04 | 2017-12-26 | International Business Machines Corporation | Application configuration in a virtual environment |
CN105591807B (zh) * | 2015-10-10 | 2019-05-07 | 新华三技术有限公司 | 一种接口配置迁移方法和设备 |
CN105354671A (zh) * | 2015-11-06 | 2016-02-24 | 中国南方电网有限责任公司 | 通用配置管理系统以及包含该系统的企业级信息系统 |
CN107451147B (zh) * | 2016-05-31 | 2020-07-31 | 北京京东尚科信息技术有限公司 | 一种kafka集群动态切换的方法和装置 |
CN106649600B (zh) * | 2016-11-25 | 2019-07-09 | 华为技术有限公司 | 一种迁移文件权限的方法、装置以及系统 |
CN106790000B (zh) * | 2016-12-12 | 2019-11-12 | 杭州迪普科技股份有限公司 | 一种安全策略的配置方法及装置 |
CN110191142A (zh) * | 2018-09-03 | 2019-08-30 | 西安奥卡云数据科技有限公司 | 一种可并发控制的计算机系统 |
CN109284283A (zh) * | 2018-11-07 | 2019-01-29 | 西安交通大学城市学院 | 影响大数据系统性能的关键参数查找方法 |
US11385909B2 (en) | 2020-01-06 | 2022-07-12 | International Business Machines Corporation | Cascading data configuration and data migration |
CN113438095B (zh) * | 2020-03-23 | 2022-12-02 | 华为技术有限公司 | 配置数据的管理方法、装置、设备及存储介质 |
CN112073262B (zh) * | 2020-08-26 | 2022-03-29 | 中国建设银行股份有限公司 | 一种云平台监控方法、装置、设备及系统 |
US11770455B2 (en) * | 2021-12-14 | 2023-09-26 | Cognizant Technology Solutions India Pvt. Ltd. | System and method for application migration between cloud platforms |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101080694A (zh) * | 2004-12-14 | 2007-11-28 | 国际商业机器公司 | 具有最少存储区域网络重新配置的操作系统迁移 |
CN101222358A (zh) * | 2008-01-22 | 2008-07-16 | 华为技术有限公司 | 一种配置迁移方法及装置 |
CN101859263A (zh) * | 2010-06-12 | 2010-10-13 | 中国人民解放军国防科学技术大学 | 一种支持在线迁移的虚拟机间快速通信方法 |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6536037B1 (en) * | 1999-05-27 | 2003-03-18 | Accenture Llp | Identification of redundancies and omissions among components of a web based architecture |
US6615166B1 (en) * | 1999-05-27 | 2003-09-02 | Accenture Llp | Prioritizing components of a network framework required for implementation of technology |
US6735691B1 (en) * | 2000-01-27 | 2004-05-11 | Microsoft Corporation | System and method for the automated migration of configuration information |
US20060123428A1 (en) * | 2003-05-15 | 2006-06-08 | Nantasket Software, Inc. | Network management system permitting remote management of systems by users with limited skills |
US8429630B2 (en) * | 2005-09-15 | 2013-04-23 | Ca, Inc. | Globally distributed utility computing cloud |
US8086710B2 (en) * | 2006-10-30 | 2011-12-27 | Quest Software, Inc. | Identity migration apparatus and method |
CN101281461B (zh) | 2007-04-04 | 2012-07-04 | 国际商业机器公司 | 用于迁移应用所依赖的系统环境的方法和装置 |
US7870238B2 (en) * | 2008-02-15 | 2011-01-11 | !J Incorporated | Vendor-independent network configuration tool |
US20110004629A1 (en) * | 2009-07-02 | 2011-01-06 | Computer Associates Think, Inc. | Method and System for Automating the Migration of User Settings from a First Domain to a Second Domain |
CN102082684B (zh) | 2009-12-01 | 2013-04-24 | 华为技术有限公司 | 业务配置转换方法、装置及系统 |
-
2011
- 2011-08-29 WO PCT/CN2011/079046 patent/WO2012119423A1/zh active Application Filing
- 2011-08-29 EP EP11860391.9A patent/EP2675127B1/en active Active
- 2011-08-29 CN CN201180001473.8A patent/CN102369713B/zh active Active
-
2012
- 2012-08-02 US US13/565,387 patent/US9171053B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101080694A (zh) * | 2004-12-14 | 2007-11-28 | 国际商业机器公司 | 具有最少存储区域网络重新配置的操作系统迁移 |
CN101222358A (zh) * | 2008-01-22 | 2008-07-16 | 华为技术有限公司 | 一种配置迁移方法及装置 |
CN101859263A (zh) * | 2010-06-12 | 2010-10-13 | 中国人民解放军国防科学技术大学 | 一种支持在线迁移的虚拟机间快速通信方法 |
Non-Patent Citations (1)
Title |
---|
See also references of EP2675127A4 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2936736B1 (en) * | 2012-12-19 | 2019-05-01 | ABB Schweiz AG | Configuration device and method for computer-implemented configuration of one or more network devices |
CN106789315A (zh) * | 2016-12-30 | 2017-05-31 | 广州杰赛科技股份有限公司 | 系统配置方法和装置 |
CN106789315B (zh) * | 2016-12-30 | 2020-02-14 | 广州杰赛科技股份有限公司 | 系统配置方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
EP2675127B1 (en) | 2015-07-15 |
EP2675127A1 (en) | 2013-12-18 |
US9171053B2 (en) | 2015-10-27 |
CN102369713B (zh) | 2014-04-02 |
US20130054521A1 (en) | 2013-02-28 |
EP2675127A4 (en) | 2014-02-26 |
CN102369713A (zh) | 2012-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012119423A1 (zh) | 系统配置项的自动迁移方法和设备 | |
JP5863432B2 (ja) | アイデンティティ・マネージャの分散型トポロジ・イネーブラに関する方法、コンピュータ・プログラム、およびシステム(アイデンティティ・マネージャの分散型トポロジ・イネーブラ) | |
US9501541B2 (en) | Separation of pod provisioning and service provisioning | |
US9847905B2 (en) | System and method for identity management providers in a cloud platform environment | |
US9311160B2 (en) | Elastic cloud networking | |
KR101970839B1 (ko) | 서비스의 2차 위치에서의 작업의 재생 기법 | |
US11121906B2 (en) | Data plane API in a distributed computing network | |
US11740936B2 (en) | Method and system for managing cloud resources | |
CN105912389B (zh) | 基于数据虚拟化实现混合云环境下的虚拟机迁移系统 | |
JP2015026390A (ja) | 関係データ管理のための制御サービス | |
US11863562B1 (en) | Authentication and authorization with remotely managed user directories | |
CN114270779A (zh) | 自动部署的信息技术(it)系统和具有增强的安全性的方法 | |
EP2681942A2 (en) | System and method to provide remote device management for mobile virtualized platforms | |
CA2882751A1 (en) | Integrated computing platform deployed in an existing computing environment | |
CN114666333A (zh) | 一种基于多租户理论面向云计算资源调度问题的控制方法 | |
US20230148158A1 (en) | Method and system for managing cloud resources | |
CN115604120B (zh) | 一种多云集群资源共享方法、装置、设备及存储介质 | |
CN110162312B (zh) | 一种基于IML的BeeGFS配置方法与装置 | |
JP5734421B2 (ja) | 管理情報生成方法、管理情報生成プログラムおよび管理情報生成装置 | |
CN114995941A (zh) | 一种任务调度方法、装置及可读存储介质 | |
TWI772721B (zh) | 運用區塊鏈管理網路設備之系統及方法 | |
JP6382705B2 (ja) | 仮想機器試験装置、仮想機器試験方法及び仮想機器試験プログラム | |
US8601108B1 (en) | Credential authentication and authorization in a server device | |
KR20100092870A (ko) | 인증 정보를 변경하기 위한 컴퓨터 시스템, 및 그 방법 및 컴퓨터 프로그램 | |
US20240154862A1 (en) | Pre-provisioning server hardware for deployment on an edge network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 201180001473.8 Country of ref document: CN |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11860391 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2011860391 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |