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

S12700 V200R011C10 MIB Reference

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 Updating a Device Using the MIB

Example for Updating a Device Using the MIB

Background

You can use the MIB to update a device remotely.

The following MIB objects are used to remotely update a device:

Object

OID

MIB File

huaweiFlhOpEntry

1.3.6.1.4.1.2011.6.9.1.2.1.1

HUAWEI-FLASH-MAN-MIB

hwSysImageName

1.3.6.1.4.1.2011.5.25.19.1.4.2.1.2

HUAWEI-SYS-MAN-MIB

hwSysReloadScheduleEntry

1.3.6.1.4.1.2011.5.25.19.1.3.3.1

hwSysReboot

1.3.6.1.4.1.2011.5.25.19.1.3.4

sysDescr

1.3.6.1.2.1.1.1

SNMPv2-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 updating a device 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 system software for device upgrade and ensuring that the device has reachable routes to the file server (In this example, the FTP server is used as the file server, and the system software HUAWEIv200r005.cc has been stored in the working directory of the file server.)
  • Ensuring that the storage space of the device is sufficient for storing the system software (If the storage space is insufficient, the upgrade will fail.)

Procedure

  1. Upload the system software to the device.

    You can complete software upload using huaweiFlhOpEntry and the detailed operations are as follows:

    1. Search for the MIB object huaweiFlhOpEntry. 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 to search for the MIB object.
    2. Perform multiple variable bindings. Create a table instance first.
      Figure 3-26  Creating a table instance
    3. 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 3-27  Specifying the table instance ID
    4. Delete unnecessary subnodes from the table and set values for the remaining subnodes. After the operations are complete, the operation interface shown in Figure 3-28 is displayed.
      NOTE:

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

      Figure 3-28  Setting the table instance
    5. After setting the table instance, change Get to Set and click Set to upload the system software HUAWEIv200r005c00.cc.
    6. Check the operating status using hwFlhOperStatus. Right-click hwFlhOperStatus and select Walk, as shown in Figure 3-29.

      Figure 3-29  Checking the operating status

      If the operating status is displayed as , the system software is successfully uploaded.

  2. Set the startup file.

    After the system software is uploaded to the device, you must specify the system software as the next startup file. This operation can be performed using hwSysReloadScheduleEntry in the HUAWEI-SYS-MAN-MIB file, and the details are as follows:

    1. Search for the object hwSysReloadScheduleEntry. You can search for the object in the MIB tree or press Ctrl+F.
    2. Perform multiple variable bindings. Create a table instance and specify the instance ID. Delete unnecessary subnodes from the table and set values for the remaining subnodes. The detailed operations are similar to those of huaweiFlhOpEntry. After the operations are complete, the operation interface shown in Figure 3-30 is displayed.

      Figure 3-30  Setting the table instance
      You can query the value of hwSysReloadImage using the hwSysImageName subnode of hwSysImageTable. Right-click hwSysImageName and select Walk as shown in Figure 3-31 to query the index of the system software.
      NOTE:

      When hwSysReloadOperateDestType is set to all, the device will automatically copy the system software if the device to be updated supports dual MPUs or is a cluster.

      Figure 3-31  Querying the system software index
      Figure 3-32 shows the query result.
      Figure 3-32  Query result the system software index
    3. After setting parameters for the table instance, change Get to Set.
    4. Click Set and check the result using hwSysReloadImage. Right-click hwSysReloadImage and select Walk. If the result shown in is displayed, the system software for next startup is changed to HUAWEIv200r005c00.cc.
  3. Restart the device.

    Restart the device to make the startup file take effect. You can restart the device to complete the upgrade using 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 3-33  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 3-34.
      Figure 3-34  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.

  4. Verify the configuration. After the device is restarted, check the device version using sysDescr to see whether the upgrade succeeds.
    1. Search for the object sysDescr. You can search for the object in the MIB tree or press Ctrl+F.
    2. Right-click sysDescr and select Walk.

      Figure 3-35  Querying the device version
      The result shown in Figure 3-36 indicates that the upgrade succeeds.
      Figure 3-36  Query result of the device version
Translation
Download
Updated: 2019-03-29

Document ID: EDOC1000178122

Views: 733360

Downloads: 36

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