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

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 13

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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).
Configuration Examples

Configuration Examples

This section provides a performance management configuration example, including networking requirements and configuration roadmap.

Example for Configuring Performance Management Functions

Networking Requirements

As shown in Figure 3-30, SwitchA connects to a remove FTP server across a network. There are reachable routes between SwitchA and the FTP server. Network maintenance personnel want to collect traffic statistics on switch interfaces and view the traffic statistics on the FTP server.

Figure 3-30 Networking diagram for performance management configuration

Configuration Roadmap

The configuration roadmap is as follows:

  1. To collect traffic statistics on switch interfaces, enable the performance statistics collection function and create a performance statistics collection task.

  2. To save statistics files to the FTP server, configure SwitchA to automatically upload statistics files to the FTP server.

Procedure

  1. Enable the performance statistics collection function.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] pm
    [~SwitchA-pm] statistics enable
    [*SwitchA-pm] commit
    

  2. Configure basic performance statistics collection parameters.

    # Create a performance statistics collection task to collect traffic statistics on 10GE1/17/1, and set the statistics collection cycle to 5 minutes.

    [~SwitchA-pm] statistics-task stream
    [*SwitchA-pm-statistics-stream] binding instance-type interface instance 10ge1/17/1
    [*SwitchA-pm-statistics-stream] statistics-cycle 5
    Warning: All data of the statistics task will be deleted. Continue? [Y/N]: y
    [*SwitchA-pm-statistics-stream] commit
    

    # Configure SwitchA to save statistics to statistics files every two statistics collection cycles (10 minutes).

    [~SwitchA-pm-statistics-stream] record-interval 2
    Warning: This operation will cause some data to be lost. Continue? [Y/N]: y
    [*SwitchA-pm-statistics-stream] quit
    [*SwitchA-pm] commit
    

  3. Configure SwitchA to upload statistics files to the FTP server.

    # Create a PM server process and configure required parameters.

    [~SwitchA-pm] pm-server ftpserver
    [*SwitchA-pm-server-ftpserver] protocol ftp ip-address 10.1.1.1
    [*SwitchA-pm-server-ftpserver] username user1 password pwd123
    [*SwitchA-pm-server-ftpserver] path d:/pmdata
    [*SwitchA-pm-server-ftpserver] quit
    [*SwitchA-pm] commit
    

    # Configure SwitchA to automatically upload statistics files to the FTP server.

    [~SwitchA-pm] upload-config req1 server ftpserver
    [*SwitchA-pm] statistics-task stream
    [*SwitchA-pm-statistics-stream] upload auto req1
    [*SwitchA-pm-statistics-stream] commit
    [~SwitchA-pm-statistics-stream] return
    

  4. Verify the configuration.

    # Check the configuration of the performance statistics collection task.

    <SwitchA> display pm statistics-task stream
    Task Name                : stream
    Task State               : running
    Record-file Status       : enable
    Task Cycle               : 5 minutes
    Sample Interval          : 1 minute
    Instance Type            : interface
    Record Interval(cycle)   : 2
    File Format              : text
    File Name Prefix         : stream
    File Transfer Mode       : active
    Current File Name        : stream20130702195001.txt
    

    # View statistics files in d:/pmdata on the FTP server. The operation procedure is not provided here.

Configuration Files

#
sysname SwitchA
#
pm
 statistics enable
 pm-server ftpserver
  protocol ftp ip-address 10.1.1.1
  username user1 password %$%$|ZZWH:(W_I*VCA8&^;S)$;gr%$%$
  path d:/pmdata
 upload-config req1 server ftpserver
 statistics-task stream
  statistics-cycle 5
  record-interval 2
  upload auto req1
  binding instance-type interface instance 10GE1/17/1
#
return
Translation
Download
Updated: 2019-12-13

Document ID: EDOC1000041694

Views: 61521

Downloads: 3623

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