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

S12700 V200R010C00

This document provides the function overview, relationships between tables, description of single objects, description of MIB tables, and description of alarm objects.
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).
Example for Managing Configuration Files Using the MIB

Example for Managing Configuration Files Using the MIB

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

NOTE:

This example uses the MIB browser as the NMS software to illustrate the operations. If you use other NMS software, refer to documentation of the specified software.

Pre-configuration Tasks

Before managing configuration files using the MIB, 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 (In this example, the FTP server is used as the file server.)

Procedure

Backing Up Configuration Files Using the MIB

  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.

  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. The detailed operations are as follows:
    1. Create a table instance.
      Figure 2-20  Creating a table instance
    2. Specify the table instance ID, for example, 1. When specifying an instance ID, ensure that the instance ID is not used by other instances.
      Figure 2-21  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 operation interface shown in Figure 2-22 is displayed. Change the item marked by an arrow to Set.

      NOTE:

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

      Figure 2-22  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.

Restoring Configuration Files Using the MIB

  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 to vrpcfg1.zip.
    1. Perform multiple variable bindings. Create a table instance and specify the instance ID. The operations are similar to those in Backing Up Configuration Files Using the MIB.
    2. Set parameters for the table instance. After the operations are complete, the operation interface shown in Figure 2-23 is displayed.
      Figure 2-23  Setting the table instance
    3. Click Set, 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 select Set from the displayed shortcut menu.
      Figure 2-24  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 MPUs or devices are restarted. The detailed operations are shown in Figure 2-25.
      Figure 2-25  Setting the restart range
      NOTE:

      The 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, run the display startup command on the device to check whether the backup configuration file is used as the startup file.
    <HUAWEI> display startup                            
    MainBoard:                                                                      
      Configured startup system software:        flash:/HUAWEIv200r005.cc           
      Startup system software:                   flash:/HUAWEIv200r005.cc           
      Next startup system software:              flash:/HUAWEIv200r005.cc           
      Startup saved-configuration file:          flash:/vrpcfg1.zip                  
      Next startup saved-configuration file:     flash:/vrpcfg1.zip                  
      Startup paf file:                          default                            
      Next startup paf file:                     default                            
      Startup license file:                      default                            
      Next startup license file:                 default                            
      Startup patch package:                     NULL                               
      Next startup patch package:                NULL 
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1000142096

Views: 149053

Downloads: 75

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