No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

MIB Reference

AR100-S, AR110-S, AR120-S, AR150-S, AR160-S, AR200-S, AR1200-S, AR2200-S, and AR3200-S V200R009

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Using the MIB to Manage Configuration Files

Using the MIB to Manage Configuration Files

Background

The management information base (MIB) can be used to back up configuration files of a device. When the device becomes faulty, you can use the backup configuration files to restore the device configuration.

The following MIB objects are used for backing up configuration files and restoring the device configuration.

Object

OID

MIB File

hwCfgOperateEntry

1.3.6.1.4.1.2011.6.10.1.2.4.1

HUAWEI-CONFIG-MAN-MIB

hwSysReboot

1.3.6.1.4.1.2011.5.25.19.1.3.4

HUAWEI-SYS-MAN-MIB

Pre-configuration Tasks

Before using the MIB to manage configuration files, complete the following tasks:

  • Connecting the device to the NMS through Simple Network Management Protocol (SNMP)
  • Setting parameters for the MIB Browser and connecting it to the device
  • Compiling MIB files using the MIB Compiler and loading the MIB files
  • Configuring a file server to save the backup configuration files and ensuring that the device has reachable routes to the file server (FTP server is used as an example)

Procedure

  • Using the MIB to back up a configuration file

  1. Search for the MIB object hwCfgOperateEntry. You can search for an object in the MIB tree. However, it is difficult to find an object when a large number of MIB files are imported to the MIB Browser. In this case, press Ctrl+F, as shown in Figure 3-13.

    Figure 3-13  Searching for a MIB object
  2. Set parameters for the MIB object. hwCfgOperateEntry is a table object. Before setting parameters for the MIB object, you must perform multiple variable bindings. Perform the following operations:
    1. Create a table instance.
      Figure 3-14  Creating a table instance
    2. Specifies the table instance ID, for example, 1. When specifying an instance ID, ensure that the instance ID is not used by other instances.
      Figure 3-15  Specifying the table instance ID
    3. Delete unnecessary subnodes from the table and set values for the remaining subnodes. After the operations are complete, the interface shown in Figure 3-16 is displayed. Change the item marked by an arrow to Set.

      NOTE:

      To delete or set a subnode, right-click the subnode and choose an operation from the displayed shortcut menu.

      Figure 3-16  Setting the table instance

  3. After setting parameters for the MIB object, click Set and upload the configuration file vrpcfg.zip to the FTP server. Check whether the configuration file vrpcfg.zip exists in the working directory of the FTP server. If so, the backup succeeds; otherwise, repeat the preceding steps.
  • Using the MIB to restore a configuration file

  1. Download the configuration file to the device and specify it as the configuration file for next startup. You can complete this operation using hwCfgOperateEntry. To distinguish the backup configuration file from the original one, rename the backup configuration file vrpcfg1.zip.
    1. Perform multiple variable bindings. Create a table instance and specify the instance ID. The operations are similar to those in Using the MIB to back up a configuration file.
    2. Set parameters for the table instance. After the operations are complete, the interface shown in Figure 3-17 is displayed.
      Figure 3-17  Setting the table instance

    3. Click Set to download the backup configuration file to the device and specify it as the configuration file for next startup.
  2. Restart the device using the MIB object hwSysReboot.
    1. Search for the object hwSysReboot. You can search for the object in the MIB tree or press Ctrl+F.
    2. Enter the single node setting interface. hwSysReboot is a single node object. Right-click the object and choose Set from the displayed shortcut menu.
      Figure 3-18  Entering the single node setting interface
    3. Set the restart range.
      In the dialog box that is displayed, set the restart range to rebootWholeRoute(2), indicating that all the devices are restarted, as shown in Figure 3-19.
      Figure 3-19  Setting the restart range
      NOTE:

      Numbers 1, 2, and 3 in this figure indicate the sequence in which operations are performed.

    4. After the configurations are complete, click in the upper left corner of the dialog box.
  3. Verify the configuration. After the device restarts, query the index of the configuration file using hwSysCurCFGFileIndex and check the value of hwSysCFGFileName based on the index. Check whether the configuration file changes.
    1. Search hwSysCurCFGFileIndex and hwSysCFGFileName. You can search for the object in the MIB tree or press Ctrl+F.
    2. Right-click hwSysCurCFGFileIndex and choose Walk. Figure 3-20 shows the query result.

      The index is 9.
      Figure 3-20  Query result of the configuration file index
    3. Right-click hwSysCFGFileName and choose Walk. Figure 3-21 shows the query result. The index 9 corresponds to vrpcfg1.zip.

      Figure 3-21  Query result of the configuration file

Translation
Download
Updated: 2019-07-19

Document ID: EDOC1000174090

Views: 450254

Downloads: 46

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next