WO2009097768A1 - 一种配置迁移方法及装置 - Google Patents

一种配置迁移方法及装置 Download PDF

Info

Publication number
WO2009097768A1
WO2009097768A1 PCT/CN2009/070134 CN2009070134W WO2009097768A1 WO 2009097768 A1 WO2009097768 A1 WO 2009097768A1 CN 2009070134 W CN2009070134 W CN 2009070134W WO 2009097768 A1 WO2009097768 A1 WO 2009097768A1
Authority
WO
WIPO (PCT)
Prior art keywords
hardware
information
configuration
destination location
configuration information
Prior art date
Application number
PCT/CN2009/070134
Other languages
English (en)
French (fr)
Inventor
Shengtao Sun
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009097768A1 publication Critical patent/WO2009097768A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a configuration migration method and apparatus.
  • the communication device includes a set of related hardware units and software systems. Through the software system, the function enable/disable of software components and hardware units, various parameters, combination relationships, etc., enable the device to provide certain communication capabilities externally. , combined with the surrounding equipment, can form a communication network and provide communication services. In the initial state, the device has no settings and can only provide the most basic functions. For a device to provide communication functions normally, it is necessary for the configuration of the device, especially for router devices with a high network location. Usually, a communication device includes multiple boards that can flexibly move positions. The board has a communication interface. The communication interfaces of the two devices can be connected through a transmission cable to form a communication path.
  • the chassis In order to be able to integrate various types and numbers of interfaces into a single communication device, you can provide a certain number of slots in the basic frame of the device (hereafter referred to as the chassis), which can be inserted into boards with the same physical specifications. Different types and numbers of interfaces can be integrated on different boards or integrated into smaller units of cards, and cards can be inserted into fixed positions on the boards. By flexibly selecting different boards and/or interface cards and inserting the boards into the chassis, you can construct a device that meets the needs of a specific network communication location. After the device is applied to the network, the device may be reconfigured due to changes in network traffic and changes in the function of the device. For example, adding a new board and providing more interfaces. When a new board or interface is expanded, it may be considered for the convenience of post-maintenance. It may also be necessary to re-arrange the interface position and make reasonable use of the processing capability of the interface. The position of the interface card on the board is moved.
  • the system Assuming that the hardware unit 1 (HU1) moves from the X position to the Y position, when the hardware unit 1 is removed from the X position, the system maintains the configuration 1 (CFG ( X ) 1 ) of the X position and becomes inactive; When the hardware unit 1 is inserted into the Y position, the system re-executes the previously saved configuration of the ⁇ position (CFG ( ⁇ )) on the hardware unit 1, and the configuration of the ⁇ position may not correspond to the hardware unit 1, ie, the configuration It may be wrong; if there is no configuration of the location before, the hardware unit 1 remains in the empty configuration state, and the user needs to manually reconfigure the content of the configuration 1 of the X location to the new location of the hardware unit 1 on the device.
  • the embodiment of the present invention provides a configuration migration method and device.
  • the technical solution provided by the embodiment of the present invention may not need to manually restore the corresponding configuration for the hardware during the hardware location migration process.
  • the present invention provides a configuration migration method, including:
  • the hardware migration indication includes original location information of the hardware to be migrated and destination location information to be migrated;
  • the destination location corresponding to the destination location information; if it is detected that the destination location has hardware insertion, configuration information of a destination location of the hardware configuration inserted into the destination location, the destination location
  • the configuration information is the same as the configuration information of the hardware in the original location, and the original location corresponds to the original location information.
  • the present invention also provides a configuration migration method, including:
  • the hardware migration indication includes original location information of the hardware to be migrated; monitoring whether there is hardware insertion;
  • the hardware insertion is detected, it is determined whether the identification information of the inserted hardware is the same as the identification information of the hardware to be migrated;
  • the configuration information of the destination location is the same as the configuration information of the hardware in the original location, and the original location corresponds to the original location information.
  • the invention also provides a computer program product comprising computer program code, when the computer program code is executed by a computer, the computer program code can cause the computer to perform any of configuration migration methods A step.
  • the present invention also provides a computer readable storage medium, the computer storing computer program code, when the computer program code is executed by a computer, the computer program code can cause the computer to perform any of configuration migration methods A step.
  • the present invention also provides a configuration migration apparatus, including:
  • an indication receiving unit configured to receive a hardware migration indication, where the hardware migration indication includes original location information of the hardware to be migrated and destination location information to be migrated;
  • a monitoring unit configured to: after the indication receiving unit receives the hardware migration indication, monitor whether the destination location has hardware insertion, where the destination location corresponds to the destination location information;
  • a configuration unit configured to: when the monitoring unit detects that the destination location has hardware insertion, configure configuration information of a destination location for the hardware inserted into the destination location, configuration information of the destination location, and configuration information of the hardware in the original location Similarly, the original location corresponds to the original location information.
  • an indication receiving unit configured to receive a hardware migration indication, where the hardware migration indication includes original location information of the hardware to be migrated;
  • a monitoring unit configured to monitor whether there is hardware insertion after the indication receiving unit receives the hardware migration indication
  • an identifier determining unit configured to determine, when the monitoring unit detects that there is hardware insertion, whether the identifier information of the inserted hardware is the same as the identifier information of the hardware to be migrated;
  • a configuration unit configured to: when the identifier determining unit determines that the identifier information of the inserted hardware is the same as the identifier information of the hardware to be migrated, according to the association information of the identifier information of the hardware to be migrated and the configuration information of the original location And configuring configuration information of the destination location for the inserted hardware, the configuration information of the destination location is the same as the configuration information of the hardware in the original location, and the original location corresponds to the original location information.
  • the embodiment of the present invention is receiving After the hardware migration indication, it is possible to monitor whether there is hardware insertion, so that when the hardware insertion is detected, the inserted hardware restores the configuration information of the same destination location as the hardware configuration information in the original location, thereby ensuring hardware. Restoring the corresponding configuration information will not cause system logic confusion. At the same time, after the hardware is inserted into the destination, there is no need to manually restore the hardware configuration, thereby saving the workload and avoiding possible errors in manual recovery.
  • FIG. 1 is a flowchart of Embodiment 1 of a configuration migration method according to an embodiment of the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a configuration migration method according to an embodiment of the present invention
  • Embodiment 3 is a flowchart of Embodiment 3 of a configuration migration method according to an embodiment of the present invention
  • Embodiment 4 is a structural diagram of Embodiment 1 of a configuration migration apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of Embodiment 2 of a configuration migration apparatus according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a first embodiment of a configuration migration method according to an embodiment of the present invention.
  • the method includes: Step 101: Receive a hardware migration indication.
  • the hardware migration indication includes original location information of the hardware to be migrated and destination location information to be migrated.
  • the received hardware migration indication may be input by the user, for example, information input by the user from the command line interface, information input from the network management tool, or even an instruction input from the control panel may be used as a hardware migration indication;
  • Step 102 Monitor whether the destination location has hardware insertion; wherein the destination location corresponds to the destination location information; in the device, each location has unique corresponding location information, and the location information and the location are in one-to-one correspondence, thereby knowing the destination location You can know the destination location information, and you can know the destination location by knowing the destination location information.
  • the destination location of the hardware migration to be migrated can be known, so that the destination location can be monitored to determine whether there is hardware insertion;
  • Step 103 If hardware insertion is detected in the destination location, the configuration information of the destination location is configured for the hardware inserted into the destination location; the configuration information of the destination location is the same as the configuration information of the original location. Wherein, the original location corresponds to the original location information. When it is detected that there is hardware insertion, the configuration information of the same destination location as the configuration information of the original location can be configured to the hardware inserted into the destination location.
  • the configuration information of the hardware configuration destination location for inserting the destination location may include: converting or modifying the configuration information of the original location to the configuration information of the destination location, and configuring the configuration information of the destination location obtained by the conversion or modification to the insertion destination location.
  • the configuration information of the original location can be deleted, and the configuration of the non-corresponding configuration can be avoided when a new hardware is inserted in the original location.
  • the configuration information of the original location is directly modified to the configuration information of the destination location, and the configuration information of the original location can be deleted at the same time.
  • the configuration information of the original location can be directly converted into the configuration information of the destination location; when the configuration information is related to the location, only the information of the original location in the configuration information of the original location needs to be modified as the destination.
  • the location information can get the configuration information of the destination location.
  • the configuration information of the existing destination location may be deleted before the configuration information of the original location is converted or modified to the configuration information of the destination location, or the purpose of the conversion or modification may be directly used.
  • the location configuration information overrides the configuration information of the existing destination location.
  • the embodiment can monitor the destination location of the hardware migration, so that when the hardware insertion of the destination location is detected, the hardware recovery for the insertion destination and the configuration of the hardware in the original location are performed.
  • the configuration information of the same destination location can ensure that the corresponding configuration information is restored for the hardware, and the system logic is not confusing.
  • the hardware configuration is not required to be restored, thereby saving Workload, and avoids possible errors when manually recovering.
  • the first embodiment of the configuration migration method provided by the embodiment of the present invention may further include: determining whether the destination location is idle; and monitoring whether the destination location has hardware insertion only when the destination location is idle. Therefore, the hardware migration can be correctly executed, because the hardware migration indication may be manually input, and there may be an error, so that the destination location can be detected as idle, and it is checked whether the hardware migration indication is incorrect; If the location is not idle, it indicates that it is an incorrect hardware migration indication, and then the user is reminded, for example, it can be displayed in a conspicuous form on a graphical interface, or in a manner that is easy for the user to perceive, such as a sound.
  • the configuration migration method provided by the embodiment of the present invention may further include: recording identification information of the hardware to be migrated, and the identification information of the hardware is unique in the system, corresponding to the hardware. Further, before configuring the configuration information of the destination location for the hardware of the insertion destination, further comprising: determining whether the identification information of the hardware inserted into the destination location is the same as the identification information of the recorded hardware to be migrated, and if the same, the hardware configuration of the insertion destination location Configuration information for the destination location. If they are different, the inserted hardware is not the hardware in the original location. In this case, the configuration information of the inserted hardware to restore the original location may cause an error, which may cause the system logic to be confused. At this time, the user may also be reminded.
  • FIG. 2 is a flowchart of a second embodiment of a configuration migration method according to an embodiment of the present invention, including: Step 201: Receive a hardware migration indication; and the hardware migration indication includes original location information of the hardware to be migrated;
  • Step 202 Associate the identification information of the hardware to be migrated with the configuration information of the original location, where the in-situ location corresponds to the original location information;
  • the identification information of the hardware is unique in the system, the identification information of the hardware to be migrated and the configuration information of the original location can be associated, so that the configuration information of the original location can correspond to the hardware.
  • Step 203 Monitor whether there is hardware insertion
  • Step 204 When it is detected that there is hardware insertion, determine whether the identifier information of the inserted hardware is the same as the identifier information of the hardware to be migrated;
  • Step 205 When the identification information of the inserted hardware is the same as the identification information of the hardware to be migrated, according to the association information of the identification information of the hardware to be migrated and the configuration information of the original location, the configuration information of the destination location of the inserted hardware is configured, and the destination location.
  • the configuration information is the same as the configuration information of the original location.
  • the configured configuration information of the identification may be directly configured to the inserted hardware. If the identification information of the inserted hardware does not use the associated configuration information, it indicates that the inserted hardware is a new hardware, and needs to perform preset processing, for example, the user configures the new hardware, or the user specifies which location to use. Configuration information and the like, the embodiment of the present invention does not limit the processing when the inserted hardware is new hardware.
  • the configuration information of the destination location of the inserted hardware is specifically determined according to the association information of the hardware to be migrated and the configuration information of the original location.
  • the configuration information of the location; the configuration information of the original location is converted into the configuration information of the destination location; the configuration information of the destination location is configured to the inserted hardware; After inserting the configuration information of the hardware configuration destination location of the destination location, the configuration information of the original location can be deleted, and the configuration of the non-corresponding configuration is avoided when a new hardware is inserted in the original location.
  • the embodiment can monitor whether there is hardware insertion, so that when the hardware insertion is detected, the inserted hardware recovers the same destination location as the hardware configuration information in the original location.
  • the configuration information can ensure that the corresponding configuration information is restored for the hardware, and the system logic is not confusing.
  • the hardware configuration is not required to be restored, thereby saving workload and avoiding Possible errors when manually recovering.
  • the hardware unit (HU) needs to be migrated from the X position to the Y position, and the hardware migration indication is received.
  • the configuration information (CFG ( X ) ) of the corresponding hardware unit at the X position will not be
  • the function that can make the configuration information of the X position inactive is called the inactive recovery state, and accordingly, the state in which the configuration information of the X position is active is called the active state;
  • the configuration information of the X position can be converted into the configuration information of the Y position (CFG ( Y ) ). Since the hardware does not insert the Y position at this time, the state of the configuration information of the Y position may be inactive.
  • the system restores the configuration information of the Y position, and configures the configuration information of the Y position to the hardware unit inserted into the Y position, so that the configuration originally possessed by the hardware unit takes effect at the new position Y;
  • the third embodiment of the configuration migration method provided by the embodiment of the present invention describes the process in detail. As shown in FIG. 3, the method includes:
  • Step 301 Receive a hardware migration indication, where the hardware migration indication includes information that the hardware unit of the X location needs to migrate to the Y location;
  • the hardware unit that knows the X position needs to be migrated, so that the X position and the Y position can be simultaneously entered into the migration state, and the relative position of the position that does not need to be migrated is the normal state. Since the hardware unit at the X position is not pulled out, the configuration information of the X position of the hardware unit can continue to be active in order for the hardware unit to continue to function.
  • Step 302 detecting whether the Y position is currently idle; if yes, proceeding to step 303, if no, proceeding to step 308;
  • Step 303 When the hardware unit is pulled out from the X position, record the identification information of the hardware unit; the identification information may be a hardware identifier (HU.ID), or the like;
  • the configuration information of the X position can be further The state is converted to an inactive state to be restored;
  • Step 304 Convert configuration information of the X location to configuration information of the Y location;
  • the configuration information of the X position can be cleared at the same time.
  • the configuration information of the X position can be cleared after a certain time after the subsequent time. For example, when the hardware migration instruction is cancelled and the hardware unit needs to be reinserted in the X position, the configuration information of the original X position can be used for configuration recovery. ;
  • Step 305 A hardware unit insertion is detected in the Y position
  • Step 306 determining whether the identification information of the inserted hardware unit is the same as the identification information of the recorded hardware unit, if yes, proceed to step 307; if no, proceed to step 308;
  • Step 307 Configure the hardware unit inserted in the Y position by using the configuration information of the Y position;
  • the hardware unit migration process of X to Y ends, and the state of the X position and the Y position can be converted into the normal state; and since the hardware unit has been restored using the configuration information of the Y position which is the same as the configuration information of the X position, All functions of the hardware unit at the X position are restored at the Y position;
  • Step 308 Notifying the user in a manner that is easy for the user to perceive; ending the process.
  • the embodiment can monitor the destination location of the hardware migration, so that when the hardware insertion of the destination location is detected, the hardware recovery for the insertion destination and the configuration of the hardware in the original location are performed.
  • the configuration information of the same destination location can ensure that the corresponding configuration information is restored for the hardware, and the system logic is not confusing.
  • the hardware configuration is not required to be restored, thereby saving work. Quantity, and avoids possible errors when manually recovering.
  • an indication of canceling the migration may be received.
  • the migration state of the X position and the Y position may be canceled and converted to the normal state; if, the configuration information of the X position is converted to the Y position.
  • the configuration information of the Y location you need to delete the configuration information of the Y location. Further, if the configuration information of the Y location has been deleted, you need to convert the configuration information of the Y location to the configuration information of the X location before deleting the configuration information of the Y location. The configuration information of the Y position is deleted.
  • the foregoing configuration migration method provided by the embodiment of the present invention is only an implementation manner of the present invention, and is not limited to the implementation of the present invention.
  • the identification information does not have to be limited to when the hardware unit is pulled out from the X position, as long as the identification information of the hardware unit is recorded before the hardware insertion in the Y position, the implementation of the present invention is not affected;
  • FIG. 4 is a diagram showing the structure of the first embodiment of the configuration migration device, including:
  • the indication receiving unit 401 is configured to receive a hardware migration indication, where the hardware migration indication includes original location information of the hardware to be migrated and destination location information to be migrated;
  • the monitoring unit 402 is configured to monitor whether the destination location has hardware insertion after the indication receiving unit 401 receives the hardware migration indication; the destination location corresponds to the destination location information;
  • the configuration unit 403 is configured to: when the monitoring unit 402 detects that the destination location has hardware insertion, configure configuration information of the destination location for the hardware of the insertion destination, and the configuration information of the destination location is the same as the configuration information of the original location; the original location and the original location The information corresponds.
  • the configuration unit 403 may specifically include:
  • the converting unit 4031 is configured to convert the configuration information of the original location into the configuration information of the destination location when the monitoring unit 402 detects that the destination location has hardware insertion;
  • the configuration information configuration unit 4032 is configured to configure the configuration information of the destination location to the hardware of the insertion destination after the conversion unit 4031 converts the configuration information of the original location into the configuration information of the destination location.
  • the configuration migration apparatus embodiment 1 may further include a deleting unit 404, configured to delete the configuration information of the original location after the configuration unit 403 configures the configuration information of the destination location for the hardware of the insertion destination location, to avoid the new hardware in the original location. When plugged in, it is configured with incorrect configuration information.
  • the embodiment can monitor the destination location of the hardware migration, so that when the hardware insertion of the destination location is detected, the hardware recovery for the insertion destination and the configuration of the hardware in the original location are performed.
  • the configuration information of the same destination location can ensure that the corresponding configuration information is restored for the hardware, and the system logic is not confusing.
  • the hardware configuration is not required to be restored, thereby saving Workload, and avoids possible errors when manually recovering.
  • the first embodiment of the configuration migration apparatus may further include: an idle determination unit 405, configured to determine the destination location after the indication receiving unit 401 receives the hardware migration indication Whether it is idle; the monitoring unit 402 is configured to monitor whether the destination location has hardware insertion only when the idle determination unit determines that the destination location is idle. This ensures that the hardware migration can be performed correctly.
  • the first embodiment of the configuration migration apparatus may further include: a recording unit 406, configured to: after the indication receiving unit 401 receives the hardware migration indication, record the identification information of the hardware to be migrated; the identifier determining unit 407, When the monitoring unit 402 detects that the destination location has hardware insertion, it is determined whether the identification information of the hardware of the insertion destination is the same as the identification information of the hardware to be migrated recorded by the recording unit 406; at this time, the configuration unit 403 only judges by the identification determination unit. When the identification information of the hardware inserted into the destination location is the same as the identification information of the hardware to be migrated recorded by the recording unit, the configuration information of the destination location is configured for the hardware of the insertion destination. This ensures that the configuration information for the hardware configured for the insertion destination is correct.
  • FIG. 5 is a structure of a second embodiment of a configuration migration apparatus according to an embodiment of the present invention, including: an indication receiving unit 501, configured to receive a hardware migration indication, where the hardware migration indication includes original location information of the hardware to be migrated;
  • the association unit 502 is configured to: after the indication receiving unit 501 receives the hardware migration indication, associate the identification information of the hardware to be migrated with the configuration information of the original location; the original location corresponds to the original location information;
  • the monitoring unit 503 is configured to monitor whether there is hardware insertion after the indication receiving unit 501 receives the hardware migration indication;
  • the identifier determining unit 504 is configured to determine, when the monitoring unit 503 detects that there is hardware insertion, whether the identifier information of the inserted hardware is the same as the identifier information of the hardware to be migrated;
  • the configuration unit 505 is configured to: when the identifier determining unit 504 determines that the identifier information of the inserted hardware is the same as the identifier information of the hardware to be migrated, according to the association information of the identifier information of the hardware to be migrated and the configuration information of the original location, the inserted hardware configuration is The configuration information of the destination location, the configuration information of the destination location is the same as the configuration information of the original location.
  • the configuration unit 505 may specifically include: a configuration information determining unit 5051, configured to: when the identifier determining unit 504 determines that the identifier information of the inserted hardware is the same as the identifier information of the hardware to be migrated, according to the identifier information of the hardware to be migrated and the original location
  • the configuration information of the configuration information determines the configuration information of the original location
  • the conversion unit 5052 is configured to: after the configuration information determining unit 5051 determines the configuration information of the original location, convert or modify the configuration information of the original location into the configuration information of the destination location
  • the configuration unit 5053 is configured to convert or modify the configuration information of the original location to the destination location at the converting unit 5052.
  • the second embodiment of the configuration migration apparatus may further include: a deleting unit 506, configured to delete the configuration information of the original location after the configuration unit configures the configuration information of the destination location for the hardware of the insertion destination. Avoid incorrect configuration information when configuring new hardware insertions in the original location.
  • the embodiment can monitor whether there is hardware insertion, so that when the hardware insertion is detected, the inserted hardware recovers the same destination location as the hardware configuration information in the original location.
  • the configuration information can ensure that the corresponding configuration information is restored for the hardware, and the system logic is not confusing.
  • the hardware configuration is not required to be restored, thereby saving workload and avoiding Possible errors when manually recovering.
  • the hardware migration indication includes original location information of the hardware to be migrated and destination location information to be migrated;
  • the destination location Detecting whether there is hardware insertion in the destination location, the destination location corresponding to the destination location information; if it is detected that the destination location has hardware insertion, configuration information of a destination location of the hardware configuration inserted in the destination location, the destination location
  • the configuration information is the same as the configuration information of the original location, and the original location corresponds to the original location information.
  • the hardware migration indication includes the original location information of the hardware to be migrated; and the association information of the hardware to be migrated and the configuration information of the original location, where the original location corresponds to the original location information;
  • the hardware insertion is detected, it is determined whether the identification information of the inserted hardware is the same as the identification information of the hardware to be migrated;
  • the configuration information of the destination location of the inserted hardware is configured according to the association information of the identifier information of the hardware to be migrated and the configuration information of the original location, and the configuration information of the destination location and the original location
  • the configuration information is the same.
  • the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the configuration migration method and apparatus provided by the embodiments of the present invention are described in detail above. The description of the above embodiments is only for helping to understand the method and the idea of the present invention. Meanwhile, for those skilled in the art, according to the present disclosure, The present invention is not limited by the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Stored Programmes (AREA)

Description

一种配置迁移方法及装置
本申请要求于 2008 年 1 月 22 日提交中国专利局、 申请号为 200810000802.7、 发明名称为 "一种配置迁移方法及装置" 的中国专利申请的 优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域, 具体涉及一种配置迁移方法及装置。
背景技术
通信设备包含一组相关的硬件单元和软件系统,通过软件系统,对软件组 件和硬件单元的功能使能 /禁止、 各种参数、 组合关系等的设置, 就可以使得 设备对外提供一定的通信能力, 和周边的设备组合起来, 就可以形成一个通信 网络, 提供通信服务。 初始状态下, 设备是没有任何设置的, 只能提供最为基 本的功能。 要让一台设备正常提供通信功能, 对于设备的配置是必需的, 尤其 是对于网络位置比较高的路由器设备。通常一台通信设备会包含多个可以灵活 移动位置的单板, 单板上有通信接口, 两台设备的通信接口可以通过传输线缆 进行连接, 以便形成一个通信通路。
为了灵活的将各种类型和数量的接口集成到一台通信设备上,可以在设备 基础框架部分(以下称为机框)提供一定数量的插槽, 可以插入物理规格相同 的单板。 而不同类型和数量的接口可以集成到不同的单板上, 或者集成到更小 单位的卡上, 而卡可以插入单板的固定位置。 通过灵活的选择不同的单板和 / 或接口卡, 并把单板插入到机框, 就可以构造出一台满足特定网络通信位置需 要的设备。 设备应用到网络之后, 可能会因为网络流量的变化、设备节点功能 的变化等, 出现了对设备进行重新配置的需求, 比如增加新的单板, 提供更多 的接口数量等。 当扩充新的单板、接口的时候, 有可能出于后期维护方便的考 虑, 也有可能出于重新安排接口位置、 合理利用接口的处理能力的考虑, 会需 要对原先已经有的单板或者单板上的接口卡的位置进行移动。
对于上述需要移动硬件单元的位置, 但是需要保持其配置(设置)和逻辑 上的功能的情况, 目前的实现方法如下所述:
假设硬件单元 1 ( HU1 )从 X位置移动到 Y位置, 硬件单元 1从 X位置 移走时, 系统将 X位置的配置 1 ( CFG ( X ) 1 )进行保持, 变为不活跃状态; 当硬件单元 1插入 Y位置后, 系统将先前保存的 Υ位置的配置 (CFG ( Υ ) ) 在硬件单元 1上重新执行, 而此时 Υ位置的配置可能与硬件单元 1并不对应, 即配置可能是错误的; 如果先前不存在 Υ位置的配置, 则硬件单元 1保持为 空配置状态, 此时需要用户手工将 X位置的配置 1的内容重新在设备上配置 到硬件单元 1的新位置 Υ, 形成新的 Υ位置的配置 1。 同时, 当 X位置再次 插入硬件单元 2 ( HU2 )的时候, 系统会尝试将保存的 X位置的配置 1进行恢 复, 同样, 此时的 X位置的配置 1可能也与再次插入的硬件单元 2不对应, 因此可能存在逻辑错误,因为逻辑上用户已经把硬件单元 1及其配置迁移到 Υ 位置了, 原先对应硬件单元 1的配置 X位置的配置 1应该丟弃, 重新恢复会 造成逻辑混乱。
在实现本发明的过程中, 发明人发现: 在硬件位置迁移过程中, 系统自动 恢复的配置可能与硬件并不对应,会造成系统逻辑混乱; 如果硬件迁移的目的 位置没有配置信息, 还需要人工进行配置, 增加了工作量。
发明内容
本发明实施例提供了一种配置迁移方法及装置,使用本发明实施例提供的 技术方案, 在硬件位置迁移过程中, 可以不需要人工为硬件恢复对应的配置。
本发明提供一种配置迁移方法, 包括:
接收硬件迁移指示,所述硬件迁移指示包括待迁移硬件的原位置信息和待 迁移的目的位置信息;
监测目的位置是否有硬件插入, 所述目的位置与所述目的位置信息对应; 如果监测到所述目的位置有硬件插入,为插入所述目的位置的硬件配置目 的位置的配置信息,所述目的位置的配置信息与所述硬件在原位置的配置信息 相同, 所述原位置与所述原位置信息对应。
本发明还提供一种配置迁移方法, 包括:
接收硬件迁移指示, 所述硬件迁移指示包括待迁移硬件的原位置信息; 监测是否有硬件插入;
如果监测到有硬件插入,判断插入的硬件的标识信息是否与所述待迁移硬 件的标识信息相同;
如果相同,根据所述待迁移硬件的标识信息与所述原位置的配置信息的关 联信息, 为所述插入的硬件配置目的位置的配置信息, 所述目的位置的配置信 息与所述硬件在原位置的配置信息相同, 所述原位置与所述原位置信息对应。
本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序 代码, 当所述计算机程序代码被一个计算机执行的时候, 所述计算机程序代码 可以使得所述计算机执行配置迁移方法中的任意一项步骤。
本发明还提供一种计算机可读存储介质, 所述计算机存储计算机程序代 码, 当所述计算机程序代码被一个计算机执行的时候, 所述计算机程序代码可 以使得所述计算机执行配置迁移方法中的任意一项步骤。
本发明还提供一种配置迁移装置, 包括:
指示接收单元, 用于接收硬件迁移指示, 所述硬件迁移指示包括待迁移硬 件的原位置信息和待迁移的目的位置信息;
监测单元, 用于在所述指示接收单元接收到硬件迁移指示后,监测目的位 置是否有硬件插入, 所述目的位置与所述目的位置信息对应;
配置单元, 用于在所述监测单元监测到目的位置有硬件插入时, 为插入所 述目的位置的硬件配置目的位置的配置信息,所述目的位置的配置信息与所述 硬件在原位置的配置信息相同, 所述原位置与所述原位置信息对应。
本发明还提供一种配置迁移装置, 包括:
指示接收单元, 用于接收硬件迁移指示, 所述硬件迁移指示包括待迁移硬 件的原位置信息;
监测单元, 用于在所述指示接收单元接收到硬件迁移指示后,监测是否有 硬件插入;
标识判断单元, 用于在所述监测单元监测到有硬件插入时, 判断插入的硬 件的标识信息是否与所述待迁移硬件的标识信息相同;
配置单元,用于在所述标识判断单元判断插入的硬件的标识信息与所述待 迁移硬件的标识信息相同时,根据所述待迁移硬件的标识信息与所述原位置的 配置信息的关联信息, 为所述插入的硬件配置目的位置的配置信息, 所述目的 位置的配置信息与所述硬件在原位置的配置信息相同,所述原位置与所述原位 置信息对应。
从本发明实施例提供的以上技术方案可以看出,由于本发明实施例在接收 到硬件迁移指示后, 可以对是否有硬件插入进行监测,从而在监测到有硬件插 入时,为插入的硬件恢复与该硬件在原位置的配置信息相同的目的位置的配置 信息, 从而可以保证为硬件恢复对应的配置信息, 不会造成系统逻辑混乱; 同 时, 在硬件插入目的位置后, 并不需要人工对硬件的配置进行恢复, 从而节省 了工作量, 并且避免了人工恢复时可能的出错。
附图说明
图 1为本发明实施例中配置迁移方法实施例一的流程图;
图 2为本发明实施例中配置迁移方法实施例二的流程图;
图 3为本发明实施例中配置迁移方法实施例三的流程图;
图 4为本发明实施例中配置迁移装置实施例一的结构图;
图 5为本发明实施例中配置迁移装置实施例二的结构图。
具体实施方式
为使本发明的目的、 技术方案、 及优点更加清楚明白, 以下参照附图并举 实施例, 对本发明进一步详细说明。
图 1描述了本发明实施例提供的配置迁移方法实施例一的流程, 包括: 步骤 101、 接收硬件迁移指示; 硬件迁移指示包括待迁移硬件的原位置信 息和待迁移的目的位置信息;
接收的硬件迁移指示可以是用户输入的,例如用户从命令行界面输入的信 息,从网管工具输入的信息,甚至可以是从控制面板上输入的指示等都可以作 为硬件迁移指示;
步骤 102、 监测目的位置是否有硬件插入; 其中, 目的位置与目的位置信 息对应; 在设备中, 每个位置都有唯一对应的位置信息, 位置信息与位置是一 一对应的, 因而知道目的位置就可以知道目的位置信息, 知道目的位置信息也 可以知道目的位置。
在接收到硬件迁移指示后, 可以获知待迁移硬件迁移的目的位置, 因而可 以对目的位置进行监测, 判断是否有硬件插入;
步骤 103、 如果监测到目的位置有硬件插入, 为插入目的位置的硬件配置 目的位置的配置信息; 目的位置的配置信息与原位置的配置信息相同。 其中, 原位置与原位置信息对应。 在监测到有硬件插入时,则可以将与原位置的配置信息相同的目的位置的 配置信息配置给插入目的位置的硬件。 其中, 为插入目的位置的硬件配置目的 位置的配置信息具体可以包括:将原位置的配置信息转换或修改为目的位置的 配置信息,将转换或修改得到的目的位置的配置信息配置给插入目的位置的硬 件; 此时,在为插入目的位置的硬件配置目的位置的配置信息后可以删除原位 置的配置信息, 避免在原位置有新的硬件插入时恢复不对应的配置。 其中, 将 直接将原位置的配置信息修改为目的位置的配置信息,可以同时删除原位置的 配置信息。
其中,在配置信息与位置无关时,原位置的配置信息可以直接转换为目的 位置的配置信息; 在配置信息与位置有关时, 只需要将原位置的配置信息中的 原位置的信息修改为目的位置的信息即可得到目的位置的配置信息。在已有目 的位置的配置信息存在时,可以在将原位置的配置信息转换或修改为目的位置 的配置信息前将已有的目的位置的配置信息删除,也可以直接使用转换或修改 得到的目的位置的配置信息覆盖已有的目的位置的配置信息。
从上可知, 本实施例在接收到硬件迁移指示后, 可以对硬件迁移的目的位 置进行监测,从而在监测到目的位置有硬件插入时, 为插入目的位置的硬件恢 复与该硬件在原位置的配置信息相同的目的位置的配置信息,从而可以保证为 硬件恢复对应的配置信息, 不会造成系统逻辑混乱; 同时, 在硬件插入目的位 置后, 并不需要人工对硬件的配置进行恢复, 从而节省了工作量, 并且避免了 人工恢复时可能的出错。
进一步,在接收硬件迁移指示后本发明实施例提供的配置迁移方法实施例 一可以进一步包括: 判断目的位置是否空闲; 只有在目的位置空闲时, 才监测 目的位置是否有硬件插入。从而可以保证硬件迁移能够正确的执行, 因为硬件 迁移指示可能是由人工输入的,会有出错的可能,从而可以对目的位置是否空 闲进行检测, 检查出是否为不正确的硬件迁移指示; 如果目的位置不空闲, 则 表明是不正确的硬件迁移指示, 进而对用户进行提醒, 例如可以在图形界面上 以醒目的形式显示, 或者是声音等其他容易为用户感知的方式对用户进行提 醒。
进一步,在接收所述硬件迁移指示后本发明实施例提供的配置迁移方法实 施例一还可以包括: 记录待迁移硬件的标识信息,硬件的标识信息在系统中是 唯一的, 与硬件——对应。 进而在为插入目的位置的硬件配置目的位置的配置 信息前进一步包括:判断插入目的位置的硬件的标识信息是否与记录的待迁移 硬件的标识信息相同,如果相同, 才为插入目的位置的硬件配置目的位置的配 置信息。 如果不相同, 则说明插入的硬件并不是原位置的硬件, 此时为插入的 硬件恢复原位置的配置信息可能会导致出错, 进而导致系统逻辑混乱, 此时也 可以对用户进行提醒。
图 2描述了本发明实施例提供的配置迁移方法实施例二的流程, 包括: 步骤 201、 接收硬件迁移指示; 硬件迁移指示包括待迁移硬件的原位置信 息;
步骤 202、 关联待迁移硬件的标识信息与原位置的配置信息; 其中, 原位 置与原位置信息对应;
由于硬件的标识信息在系统中是唯一的,因而可以关联待迁移硬件的标识 信息与原位置的配置信息, 从而使原位置的配置信息能够与硬件对应。
步骤 203、 监测是否有硬件插入;
步骤 204、 在监测到有硬件插入时, 判断插入的硬件的标识信息是否与待 迁移硬件的标识信息相同;
步骤 205、 在插入的硬件的标识信息与待迁移硬件的标识信息相同时, 根 据待迁移硬件的标识信息与原位置的配置信息的关联信息,为插入的硬件配置 目的位置的配置信息, 目的位置的配置信息与原位置的配置信息相同。
在监测到有硬件插入, 且插入的硬件的标识信息已经有关联的配置信息 时, 则可以直接将标识的配置信息配置给插入的硬件。如果插入的硬件的标识 信息没有用关联的配置信息, 则说明插入的硬件是一个新的硬件, 需要进行预 置的处理, 例如由用户对新的硬件进行配置, 或者由用户指定使用哪个位置的 配置信息等, 本发明实施例并不对插入的硬件是新的硬件时的处理进行限定。 其中,根据待迁移硬件的标识信息与原位置的配置信息的关联信息, 为插入的 硬件配置目的位置的配置信息具体为:根据待迁移硬件的标识信息与原位置的 配置信息的关联信息确定原位置的配置信息;将原位置的配置信息转换为目的 位置的配置信息; 将目的位置的配置信息配置给所述插入的硬件; 此时, 在为 插入目的位置的硬件配置目的位置的配置信息后可以删除原位置的配置信息, 避免在原位置有新的硬件插入时恢复了不对应的配置。
从上可知, 本实施例在接收到硬件迁移指示后, 可以对是否有硬件插入进 行监测,从而在监测到有硬件插入时, 为插入的硬件恢复与该硬件在原位置的 配置信息相同的目的位置的配置信息,从而可以保证为硬件恢复对应的配置信 息, 不会造成系统逻辑混乱; 同时, 在硬件插入目的位置后, 并不需要人工对 硬件的配置进行恢复,从而节省了工作量,并且避免了人工恢复时可能的出错。
假设需要将硬件单元(HU )从 X位置迁移到 Y位置, 接收到硬件迁移指 示, 当硬件单元从 X位置拔出时, X位置上对应硬件单元的配置信息 (CFG ( X ) )将不会起作用, 可以将 X位置的配置信息不起作用的状态称为不活跃 待恢复状态, 相应的, 可以将 X位置的配置信息起作用的状态称为活跃状态; 在明确了将硬件单元从 X位置迁移到 Y位置时, 可以将 X位置的配置信息转 换为 Y位置的配置信息(CFG ( Y ) ), 由于此时硬件并没有插入 Y位置, Y位 置的配置信息的状态也可以是不活跃待恢复状态。 当硬件单元在 Y位置插入 的时候, 系统进行 Y位置的配置信息的恢复, 将 Y位置的配置信息配置给插 入 Y位置的硬件单元, 使硬件单元原先具有的配置在新的位置 Y上生效; 本 发明实施例提供的配置迁移方法实施例三详细描述了该流程,如图 3所示, 包 括:
步骤 301 : 接收硬件迁移指示,硬件迁移指示包括 X位置的硬件单元需要 迁移至 Y位置的信息;
此时, 知道 X位置的硬件单元需要迁移, 因此可以使 X位置和 Y位置同 时进入迁移状态,相对的可以称不需要迁移的位置的状态为普通状态。 由于 X 位置的硬件单元并没有被拔出, 为了使硬件单元继续发挥作用,硬件单元的 X 位置的配置信息可以继续处于活跃状态。
步骤 302、 检测 Y位置当前是否空闲; 如果是, 进入步骤 303 , 如果否, 进入步骤 308;
步骤 303、 当硬件单元从 X位置被拔出时, 记录硬件单元的标识信息; 标识信息可以是硬件标识(HU.ID )等;
由于此时的硬件单元不能起作用, 因而可以进一步将 X位置的配置信息 的状态转换为不活跃待恢复状态;
步骤 304、 将 X位置的配置信息转换为 Y位置的配置信息;
可以同时将 X位置的配置信息清空。 当然也可以在后续的某一个时刻后 才将 X位置的配置信息清空, 例如在取消了硬件迁移指示, 需要在 X位置重 新插入硬件单元时, 可以使用原有的 X位置的配置信息进行配置恢复;
步骤 305、 监测到 Y位置有硬件单元插入;
步骤 306、 判断插入的硬件单元的标识信息是否与记录的硬件单元的标识 信息相同, 如果是, 进入步骤 307; 如果否, 进入步骤 308;
步骤 307、 使用 Y位置的配置信息对插入 Y位置的硬件单元进行配置; 结束流程;
此时 X到 Y的硬件单元迁移过程结束,可以将 X位置和 Y位置的状态转 换为普通状态; 同时由于硬件单元已经使用与 X位置的配置信息相同的 Y位 置的配置信息进行了恢复, 可以使硬件单元在 X位置的全部功能在 Y位置上 得到恢复;
步骤 308、 以容易为用户感知的方式通知用户; 结束流程。
从上可知, 本实施例在接收到硬件迁移指示后, 可以对硬件迁移的目的位 置进行监测,从而在监测到目的位置有硬件插入时, 为插入目的位置的硬件恢 复与该硬件在原位置的配置信息相同的目的位置的配置信息,可以保证为硬件 恢复对应的配置信息,不会造成系统逻辑混乱; 同时,在硬件插入目的位置后, 并不需要人工对硬件的配置进行恢复,从而节省了工作量, 并且避免了人工恢 复时可能的出错。
其中, 可能在接收了硬件迁移指示后会接收到取消迁移的指示, 此时可以 取消 X位置和 Y位置的迁移状态, 转换为普通状态; 如果, 已经将 X位置的 配置信息转换为了 Y位置的配置信息, 需要删除 Y位置的配置信息; 进一步, 如果已经删除了 Y位置的配置信息, 则需要在删除 Y位置的配置信息之前, 先将 Y位置的配置信息转换为 X位置的配置信息, 然后才将 Y位置的配置信 息删除。
可以理解的是,本发明实施例提供的上述配置迁移方法仅是实现本发明的 实现方式, 并不是限定本发明只能按照上述流程实现; 例如, 记录硬件单元的 标识信息并不一定要限定在硬件单元从 X位置拔出时, 只要在 Y位置有硬件 插入之前记录硬件单元的标识信息都不会影响本发明的实现; 同样, 只需要将
X位置的配置信息转换为 Y位置的配置信息的步骤, 在使用 Y位置的配置信 息对插入 Y位置的硬件单元进行配置之前执行都不会影响本发明的实现等。
如下再介绍本发明实施例提供的配置迁移装置,图 4描述了配置迁移装置 实施例一的结构, 包括:
指示接收单元 401 , 用于接收硬件迁移指示, 该硬件迁移指示包括待迁移 硬件的原位置信息和待迁移的目的位置信息;
监测单元 402, 用于在指示接收单元 401接收到硬件迁移指示后,监测目 的位置是否有硬件插入; 目的位置与目的位置信息对应;
配置单元 403 , 用于在监测单元 402监测到目的位置有硬件插入时, 为插 入目的位置的硬件配置目的位置的配置信息,目的位置的配置信息与原位置的 配置信息相同; 原位置与原位置信息对应。
其中, 配置单元 403具体可以包括:
转换单元 4031 , 用于在监测单元 402监测到目的位置有硬件插入时, 将 原位置的配置信息转换为目的位置的配置信息;
配置信息配置单元 4032, 用于在转换单元 4031将原位置的配置信息转换 为目的位置的配置信息后, 将目的位置的配置信息配置给插入目的位置的硬 件。 此时, 配置迁移装置实施例一还可以包括删除单元 404 , 用于在配置单元 403为插入目的位置的硬件配置目的位置的配置信息后, 删除原位置的配置信 息, 避免原位置有新的硬件插入时, 使用不正确的配置信息进行配置。
从上可知, 本实施例在接收到硬件迁移指示后, 可以对硬件迁移的目的位 置进行监测,从而在监测到目的位置有硬件插入时, 为插入目的位置的硬件恢 复与该硬件在原位置的配置信息相同的目的位置的配置信息,从而可以保证为 硬件恢复对应的配置信息, 不会造成系统逻辑混乱; 同时, 在硬件插入目的位 置后, 并不需要人工对硬件的配置进行恢复, 从而节省了工作量, 并且避免了 人工恢复时可能的出错。
进一步, 本发明实施例提供的配置迁移装置实施例一还可以包括: 空闲判 断单元 405 , 用于在指示接收单元 401接收到硬件迁移指示后, 判断目的位置 是否空闲; 监测单元 402用于只在空闲判断单元判断目的位置空闲时, 才监测 目的位置是否有硬件插入。 从而保证硬件迁移能够正确的执行。
进一步, 本发明实施例提供的配置迁移装置实施例一还可以包括: 记录单 元 406 , 用于在指示接收单元 401接收到硬件迁移指示后, 记录待迁移硬件的 标识信息; 标识判断单元 407 , 用于在监测单元 402监测到目的位置有硬件插 入时,判断插入目的位置的硬件的标识信息是否与记录单元 406记录的待迁移 硬件的标识信息相同; 此时, 配置单元 403只在标识判断单元判断插入目的位 置的硬件的标识信息与记录单元记录的待迁移硬件的标识信息相同时,才为插 入目的位置的硬件配置目的位置的配置信息。从而可以确保配置给插入目的位 置的硬件的配置信息是正确。
图 5描述了本发明实施例提供的配置迁移装置实施例二的结构, 包括: 指示接收单元 501 , 用于接收硬件迁移指示, 硬件迁移指示包括待迁移硬 件的原位置信息;
关联单元 502 , 用于在指示接收单元 501接收到硬件迁移指示后, 关联待 迁移硬件的标识信息与原位置的配置信息; 原位置与原位置信息对应;
监测单元 503 , 用于在指示接收单元 501接收到硬件迁移指示后, 监测是 否有硬件插入;
标识判断单元 504 , 用于在监测单元 503监测到有硬件插入时, 判断插入 的硬件的标识信息是否与待迁移硬件的标识信息相同;
配置单元 505 , 用于在标识判断单元 504判断插入的硬件的标识信息与待 迁移硬件的标识信息相同时,根据待迁移硬件的标识信息与原位置的配置信息 的关联信息, 为插入的硬件配置目的位置的配置信息, 目的位置的配置信息与 原位置的配置信息相同。
其中, 配置单元 505具体可以包括: 配置信息确定单元 5051 , 用于在标 识判断单元 504判断插入的硬件的标识信息与待迁移硬件的标识信息相同时, 根据待迁移硬件的标识信息与原位置的配置信息的关联信息确定原位置的配 置信息; 转换单元 5052 , 用于在配置信息确定单元 5051确定原位置的配置信 息后,将原位置的配置信息转换或修改为目的位置的配置信息; 配置信息配置 单元 5053 , 用于在转换单元 5052将原位置的配置信息转换或修改为目的位置 的配置信息后, 将目的位置的配置信息配置给插入的硬件。 此时, 本发明实施 例提供的配置迁移装置实施例二还可以包括: 删除单元 506 , 用于在配置单元 为插入目的位置的硬件配置目的位置的配置信息后, 删除原位置的配置信息。 避免原位置有新的硬件插入时, 使用不正确的配置信息进行配置。
从上可知, 本实施例在接收到硬件迁移指示后, 可以对是否有硬件插入进 行监测,从而在监测到有硬件插入时, 为插入的硬件恢复与该硬件在原位置的 配置信息相同的目的位置的配置信息,从而可以保证为硬件恢复对应的配置信 息, 不会造成系统逻辑混乱; 同时, 在硬件插入目的位置后, 并不需要人工对 硬件的配置进行恢复,从而节省了工作量,并且避免了人工恢复时可能的出错。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可 读存储介质中, 该程序在执行时, 包括如下步骤:
接收硬件迁移指示,所述硬件迁移指示包括待迁移硬件的原位置信息和待 迁移的目的位置信息;
监测目的位置是否有硬件插入, 所述目的位置与所述目的位置信息对应; 如果监测到所述目的位置有硬件插入,为插入所述目的位置的硬件配置目 的位置的配置信息, 所述目的位置的配置信息与所述原位置的配置信息相同, 所述原位置与所述原位置信息对应。
或包括如下步骤:
接收硬件迁移指示, 所述硬件迁移指示包括待迁移硬件的原位置信息; 关联所述待迁移硬件的标识信息与原位置的配置信息,所述原位置与所述 原位置信息对应;
监测是否有硬件插入;
如果监测到有硬件插入,判断插入的硬件的标识信息是否与所述待迁移硬 件的标识信息相同;
如果相同,根据所述待迁移硬件的标识信息与所述原位置的配置信息的关 联信息, 为所述插入的硬件配置目的位置的配置信息, 所述目的位置的配置信 息与所述原位置的配置信息相同。
上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 以上对本发明实施例所提供的一种配置迁移方法及装置进行了详细介绍, 以上实施例的说明只是用于帮助理解本发明的方法及其思想; 同时,对于本领 域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有 改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种配置迁移方法, 其特征在于, 包括:
接收硬件迁移指示,所述硬件迁移指示包括待迁移硬件的原位置信息和待 迁移的目的位置信息;
监测目的位置是否有硬件插入, 所述目的位置与所述目的位置信息对应; 如果监测到所述目的位置有硬件插入,为插入所述目的位置的硬件配置目 的位置的配置信息,所述目的位置的配置信息与所述硬件在原位置的配置信息 相同, 所述原位置与所述原位置信息对应。
2、 如权利要求 1所述的配置迁移方法, 其特征在于, 接收所述硬件迁移 指示后进一步包括:
判断所述目的位置是否空闲;
如果所述目的位置空闲, 进入监测所述目的位置是否有硬件插入的步骤。
3、 如权利要求 1所述的配置迁移方法, 其特征在于, 接收所述硬件迁移 指示后进一步包括:
记录所述待迁移硬件的标识信息;
为插入所述目的位置的硬件配置目的位置的配置信息前进一步包括: 判断插入所述目的位置的硬件的标识信息是否与记录的所述待迁移硬件 的标识信息相同;
如果相同,进入为插入所述目的位置的硬件配置目的位置的配置信息的步 骤。
4、 如权利要求 1至 3中任意一项所述的配置迁移方法, 其特征在于, 所 述为插入所述目的位置的硬件配置目的位置的配置信息具体为:
将所述原位置的配置信息转换为所述目的位置的配置信息,或将所述原位 置的配置信息修改为所述目的位置的配置信息;
将所述目的位置的配置信息配置给插入所述目的位置的硬件。
5、 如权利要求 1所述的配置迁移方法, 其特征在于, 为插入所述目的位 置的硬件配置目的位置的配置信息后进一步包括:
删除所述原位置的配置信息。
6、 一种配置迁移方法, 其特征在于, 包括: 接收硬件迁移指示, 所述硬件迁移指示包括待迁移硬件的原位置信息; 监测是否有硬件插入;
如果监测到有硬件插入,判断插入的硬件的标识信息是否与所述待迁移硬 件的标识信息相同;
如果相同,根据所述待迁移硬件的标识信息与所述原位置的配置信息的关 联信息, 为所述插入的硬件配置目的位置的配置信息, 所述目的位置的配置信 息与所述硬件在原位置的配置信息相同, 所述原位置与所述原位置信息对应。
7、 如权利要求 6所述的配置迁移方法, 其特征在于, 所述根据所述待迁 移硬件的标识信息与原位置的配置信息的关联信息,为所述插入的硬件配置目 的位置的配置信息具体为:
根据所述待迁移硬件的标识信息与所述原位置的配置信息的关联信息确 定所述原位置的配置信息;
将所述原位置的配置信息转换为所述目的位置的配置信息;
将所述目的位置的配置信息配置给所述插入的硬件。
8、 如权利要求 7所述的配置迁移方法, 其特征在于, 为所述插入的硬件 配置目的位置的配置信息后进一步包括:
删除所述硬件在所述原位置的配置信息。
9、 如权利要求 5至 7任意一项所述的配置迁移方法, 其特征在于, 接收 硬件迁移指示后进一步包括:
关联所述待迁移硬件的标识信息与所述待迁移硬件在所述原位置的配置 信息。
10、 一种计算机程序产品, 其特征在于, 所述计算机程序产品包括计算机 程序代码, 当所述计算机程序代码被一个计算机执行的时候, 所述计算机程序 代码可以使得所述计算机执行权利要求 1至 8项中任意一项的步骤。
11、 一种计算机可读存储介质, 其特征在于, 所述计算机可读存储介质存 储计算机程序代码, 当所述计算机程序代码被一个计算机执行的时候, 所述计 算机程序代码可以使得所述计算机执行权利要求 1至 8项中任意一项的步骤。
12、 一种配置迁移装置, 其特征在于, 包括:
指示接收单元, 用于接收硬件迁移指示, 所述硬件迁移指示包括待迁移硬 件的原位置信息和待迁移的目的位置信息;
监测单元, 用于在所述指示接收单元接收到硬件迁移指示后,监测目的位 置是否有硬件插入, 所述目的位置与所述目的位置信息对应;
配置单元, 用于在所述监测单元监测到目的位置有硬件插入时, 为插入所 述目的位置的硬件配置目的位置的配置信息,所述目的位置的配置信息与所述 硬件在原位置的配置信息相同, 所述原位置与所述原位置信息对应。
13、 如权利要求 12所述的配置迁移装置, 其特征在于, 还包括: 空闲判断单元, 用于在所述指示接收单元接收到硬件迁移指示后, 判断所 述目的位置是否空闲;
所述监测单元用于在所述空闲判断单元判断目的位置空闲时,监测所述目 的位置是否有硬件插入。
14、 如权利要求 12所述的配置迁移装置, 其特征在于, 还包括: 记录单元, 用于在所述指示接收单元接收到硬件迁移指示后,记录所述待 迁移硬件的标识信息;
标识判断单元, 用于在所述监测单元监测到目的位置有硬件插入时, 判断 插入所述目的位置的硬件的标识信息是否与所述记录单元记录的所述待迁移 硬件的标识信息相同;
所述配置单元,用于在所述标识判断单元判断插入目的位置的硬件的标识 信息与所述记录单元记录的待迁移硬件的标识信息相同时,为插入所述目的位 置的硬件配置目的位置的配置信息。
15、 如权利要求 12所述的配置迁移装置, 其特征在于, 所述配置单元具 体包括:
转换单元, 用于在所述监测单元监测到目的位置有硬件插入时, 将所述原 位置的配置信息转换为所述目的位置的配置信息, 或
将所述原位置的配置信息修改为所述目的位置的配置信息;
配置信息配置单元,用于将所述目的位置的配置信息配置给插入所述目的 位置的硬件。
16、 如权利要求 12所述的配置迁移装置, 其特征在于, 还包括: 删除单元,用于在所述配置单元为插入所述目的位置的硬件配置目的位置 的配置信息后, 删除所述硬件在所述原位置的配置信息。
17、 一种配置迁移装置, 其特征在于, 包括:
指示接收单元, 用于接收硬件迁移指示, 所述硬件迁移指示包括待迁移硬 件的原位置信息;
监测单元, 用于在所述指示接收单元接收到硬件迁移指示后,监测是否有 硬件插入;
标识判断单元, 用于在所述监测单元监测到有硬件插入时, 判断插入的硬 件的标识信息是否与所述待迁移硬件的标识信息相同;
配置单元,用于在所述标识判断单元判断插入的硬件的标识信息与所述待 迁移硬件的标识信息相同时,根据所述待迁移硬件的标识信息与所述原位置的 配置信息的关联信息, 为所述插入的硬件配置目的位置的配置信息, 所述目的 位置的配置信息与所述硬件在原位置的配置信息相同,所述原位置与所述原位 置信息对应。
18、 如权利要求 17所述的配置迁移装置, 其特征在于, 所述配置单元包 括:
配置信息确定单元,用于在所述标识判断单元判断插入的硬件的标识信息 与所述待迁移硬件的标识信息相同时,根据所述待迁移硬件的标识信息与所述 原位置的配置信息的关联信息确定所述原位置的配置信息;
转换单元, 用于在所述配置信息确定单元确定所述原位置的配置信息后, 将所述原位置的配置信息转换为所述目的位置的配置信息;
配置信息配置单元,用于在所述转换单元将原位置的配置信息转换为所述 目的位置的配置信息后, 将所述目的位置的配置信息配置给所述插入的硬件。
19、 如权利要求 18所述的配置迁移装置, 其特征在于, 还包括: 删除单元,用于在所述配置单元为插入所述目的位置的硬件配置目的位置 的配置信息后, 删除所述原位置的配置信息。
20、 如权利要求 17至 19任意一项所述的配置迁移装置, 其特征在于, 还 包括:
关联单元, 用于在所述指示接收单元接收到硬件迁移指示后, 关联所述待 迁移硬件的标识信息与所述待迁移硬件在所述原位置的配置信息。
PCT/CN2009/070134 2008-01-22 2009-01-14 一种配置迁移方法及装置 WO2009097768A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810000802.7 2008-01-22
CN2008100008027A CN101222358B (zh) 2008-01-22 2008-01-22 一种配置迁移方法及装置

Publications (1)

Publication Number Publication Date
WO2009097768A1 true WO2009097768A1 (zh) 2009-08-13

Family

ID=39631949

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070134 WO2009097768A1 (zh) 2008-01-22 2009-01-14 一种配置迁移方法及装置

Country Status (2)

Country Link
CN (1) CN101222358B (zh)
WO (1) WO2009097768A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222358B (zh) * 2008-01-22 2010-06-09 华为技术有限公司 一种配置迁移方法及装置
CN102369713B (zh) * 2011-08-29 2014-04-02 华为技术有限公司 系统配置项的自动迁移方法和设备
CN106789309A (zh) * 2016-12-30 2017-05-31 武汉长光科技有限公司 一种基于olt设备的业务配置文件迁移方法
CN107133184B (zh) * 2017-06-06 2020-02-18 湖南中易利华信息技术有限公司 可配置状态机的实现方法、可配置状态机及终端设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030054648A (ko) * 2001-12-26 2003-07-02 삼성전기주식회사 슬롯형 레지덴셜 게이트웨이
CN1759375A (zh) * 2003-03-28 2006-04-12 Ut斯达康(中国)有限公司 单板自动配置的方法
CN101079734A (zh) * 2007-06-22 2007-11-28 中兴通讯股份有限公司 一种机架式设备热插拔配置恢复的方法
CN101222358A (zh) * 2008-01-22 2008-07-16 华为技术有限公司 一种配置迁移方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1109416C (zh) * 2000-04-25 2003-05-21 华为技术有限公司 交换机的主备倒换方法及其实现装置
CN100395962C (zh) * 2004-07-13 2008-06-18 华为技术有限公司 通信系统中设备的倒换方法及其系统
CN1744512A (zh) * 2004-08-30 2006-03-08 华为技术有限公司 网络资源管理方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030054648A (ko) * 2001-12-26 2003-07-02 삼성전기주식회사 슬롯형 레지덴셜 게이트웨이
CN1759375A (zh) * 2003-03-28 2006-04-12 Ut斯达康(中国)有限公司 单板自动配置的方法
CN101079734A (zh) * 2007-06-22 2007-11-28 中兴通讯股份有限公司 一种机架式设备热插拔配置恢复的方法
CN101222358A (zh) * 2008-01-22 2008-07-16 华为技术有限公司 一种配置迁移方法及装置

Also Published As

Publication number Publication date
CN101222358A (zh) 2008-07-16
CN101222358B (zh) 2010-06-09

Similar Documents

Publication Publication Date Title
EP3110068B1 (en) Device management method
US20130254759A1 (en) Installing an operating system in a host system
AU2021266299B2 (en) Methods, systems, and media for controlling append-only file rewrites
CN102238093A (zh) 防止业务中断的方法和装置
CN108431781B (zh) 设备驱动器检测的错误的自诊断和自动诊断数据收集
WO2017054626A1 (zh) 一种虚拟机故障修复方法和装置
CN110377456A (zh) 一种虚拟化平台容灾的管理方法及装置
CN104917630A (zh) 对虚拟网络进行恢复的方法和系统
CN104468521A (zh) 在线迁移方法、装置和系统
CN104010022A (zh) 管理服务器节点的管理装置和方法
CN109597653A (zh) Bios与bmc命令交互的方法、bios及bmc
WO2009097768A1 (zh) 一种配置迁移方法及装置
WO2015098589A1 (ja) クラスタシステム、サーバ装置、クラスタシステムの管理方法、及びコンピュータ読み取り可能な記録媒体
EP2642388B1 (en) Standby system device, control method, and program thereof
CN111917588A (zh) 边缘设备管理方法、装置、边缘网关设备和存储介质
US20060026471A1 (en) Loop status monitoring apparatus
CN104750537A (zh) 一种执行测试用例的方法和装置
CN117439867A (zh) 一种集群升级故障处理方法、装置、设备及存储介质
CN107153569B (zh) 虚拟机读写失败的处理方法及装置
TW201324171A (zh) SAS Expander設備的PHY切換方法及系統
CN112596371A (zh) 控制卡切换方法、装置、电子设备及存储介质
CN109885420B (zh) 一种PCIe链路故障的分析方法、BMC及存储介质
WO2009089710A1 (fr) Procédé et appareil de configuration de port
JP5674730B2 (ja) データカードとホストとの間の通信異常、及びデータカードの異常の回復のための方法
WO2018113353A1 (zh) 一种软件升级方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09707789

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09707789

Country of ref document: EP

Kind code of ref document: A1