欢迎光临散文网 会员登陆 & 注册

18个基础命令教你轻松拿捏华为设备的各种状态!-HCIA HCIP

2023-03-27 18:05 作者:鸿锦智成  | 我要投稿
  • 1、display cpu-usage:
         
    用来查看设备CPU占用率的统计信息

    • 命令格式
           
      <Huawei>display       cpu-usage ?
            configuration  Cpu usage       configration
            slot           Slot
            <cr>           Please press       ENTER to execute command

    • 使用示例
           
      <HUAWEI> display cpu-usage
            CPU   Usage Stat. Cycle: 30 (Second)
            CPU   Usage:  2.4%         Max: 90.2%
            CPU   Usage Stat. Time :       2023-03-07  05:29:48
            CPU   Usage Max.  Time : 2023-03-07  15:26:41 

 

  • 2、display cpu-usage configuration:
         
    用来查看设备CPU占用率的配置信息

    • 命令格式
           
      [Huawei]display cpu-usage       configuration ?
            slot  Slot
            <cr>  Please press ENTER to       execute command

    • 使用示例
           
      <HUAWEI> display       cpu-usage configuration
           
      The CPU usage monitor is       turned on.
            The current monitor cycle is 10 seconds.
            The current monitor warning threshold is 80%.
            The current monitor restore threshold is 75%.
            The cap current monitor warning threshold is 80%.
            The cap current monitor restore threshold is 75%.

 

  • 3、display device:
         
    用来查看设备的部件类型及状态信息

    • 命令格式
           
      [Huawei]display device ?
            slot  Slot
            <cr>  Please press ENTER to       execute command

    • 使用示例
           
      [Huawei]display device
            AR2220's Device status:
            Slot Sub Type     Online   Power    Register   Alarm         Primary
            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            0    -   AR2220   Present  PowerOn        Registered Normal  Master
            7    -   PWR      Present  PowerOn        Registered Normal  NA

 

  • 4、display diagnostic-information:
         
    用来查看设备当前的诊断信息或将诊断信息存储在指定文件

    • 命令格式
           
      <Huawei>display       diagnostic-information ?
            STRING<5-64>   Name of the       file stored diagnostic information
                           (Default directory       is flash:/,the postfix of
                           the filename must be       .txt)
            <cr>          Please press       ENTER to execute command

    • 使用示例
            <Huawei>display diagnostic-information
            ===================================================
              ===============display       version===============
            ===================================================
            Huawei Versatile Routing Platform Software
            VRP (R) software, Version 5.130 (AR2200 V200R003C00)
            Copyright (C) 2011-2012 HUAWEI TECH CO., LTD
            Huawei AR2220 Router uptime is 0 week, 0 day, 0 hour, 21 minutes
            BKP 0 version information:
            1. PCB      Version  : AR01BAK2A VER.NC
            2. If Supporting PoE : No
            3. Board    Type     : AR2220
            4. MPU Slot Quantity : 1
            5. LPU Slot Quantity : 6
           
            MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 21 minutes
            MPU version information :
            1. PCB      Version  : AR01SRU2A VER.A
            2. MAB      Version  : 0
            3. Board    Type     : AR2220
            4. BootROM  Version  : 0
            ………………………………

 

  • 5、display elabel
         
    用来查看设备的电子标签信息

    • 命令格式
           
      <Huawei>display       elabel ?
            <0>        The present MPU
            <7>        The present PWR
            backplane  Backplane
            brief      Display information       briefly
            <cr>       Please press ENTER       to execute command

    • 使用示例
           
      <Huawei>display       elabel
             It is executing, please wait...
           
           
            /$[System Integration Version]
            /$SystemIntegrationVersion=3.0
           
           
            [Rack_1]
            [SubRack_0]
           
           
            [Slot_0]
            /$[Board Integration Version]
            /$BoardIntegrationVersion=3.0
           
           
            [Main_Board]
            /$[ArchivesInfo Version]
            /$ArchivesInfoVersion=3.0
           
           
            [Board Properties]
            BoardType=
            BarCode=
            Item=                                          
            Description=
            Manufactured=
            VendorName=
            IssueNumber=
            CLEICode=
            BOM=

 

  • 6、display esn:
         
    用来查看设备的序列号ESN(Equipment      Serial Number)

    • 命令格式
           
      <Huawei>display esn ?
            <cr>  Please press ENTER to       execute command

    • 使用示例
           
      <HUAWEI> display       esn
           
      ESN of device:       **********P0B4000046 

 

  • 7、display fan:
         
    用来查看风扇的状态(AC6508、AC6507S、AirEngine 9700S-S不支持此命令)

    • 命令格式
            (AR2220设备配置命令不支持,正常会包含slot和verbose)
           
      <Huawei>display fan ?      
            <cr>  Please press ENTER to       execute command

    • 使用示例
           
      <Huawei>display fan (查看设备的风扇状态)
            --------------------------------------------------
               FanId  FanNum        Present  Register  Speed        Mode
            --------------------------------------------------
                0      [1-4]   YES      YES          NA  AUTO
            <HUAWEI> display fan verbose(查看风扇状态的详细信息)

    • Slot #     FAN #  Status        Speed Rate  Mode  Airflow Direction
            --------------------------------------------------------------    
            0          0      Normal   70 %       AUTO       Back-to-Side  

    •  

  • 8、display health:
         
    用来查看设备的健康状况

    • 命令格式
            <Huawei>display health ?
            <cr>  Please press ENTER to       execute command

    • 使用示例
           
      <Huawei>display       health
            ---------------------------------------------------------
            Slot Card Sensor No. SensorName Status Upper Lower Temp(C)
            --------------------------------------------------------------
            0   -   1           AR2220 TEMP  NORMAL  73         0     0           
            --------------------------------------------------------------       PowerNo  Present  Mode         State  Current(A) Voltage(V)       Power(W)  
            --------------------------------------------------------------
               7       YES    AC           Supply  N/A       12          150
            --------------------------------------------------------------
                      FanId  FanNum        Present  Register  Speed        Mode
            --------------------------------------------------------------
                      0      [1-4]   YES      YES          NA  AUTO
             The total  power is : 150.000(W)
             The used   power is : 0.000(W)
             The remain power is : 150.000(W)
             The system used power detail       information :
            --------------------------------------------------------------
              SlotID  BoardType    Power-Used(W)  Power-Requested(W)
            --------------------------------------------------------------
              0       AR2220       0.000          0
            System CPU Usage Information:
            System cpu usage at 2023-03-07        13:59:51 984 ms
            -------------------------------------------------------------------------------
              SlotID  CPU Usage  Upper Limit
            --------------------------------------------------------------
              0       0 %        80%
            System Memory Usage Information:
             System memory usage at       2023-03-07  13:59:52 984 ms
            --------------------------------------------------------------
            SlotID  Total       Memory(MB)  Used Memory(MB)  Used Percentage  Upper Limit
            --------------------------------------------------------------
              0    152            122           80%           95%
            System Disk Usage Information:
             System disk usage at       2023-03-07  13:59:52 984 ms
            --------------------------------------------------------------
            SlotID  Device        Total Memory(MB)  Used       Memory(MB)  Used Percentage  
            --------------------------------------------------------------
              0    flash:  1065            299             28%

 

  • 9、display memory-usage:
         
    用来查看设备的内存占用率信息

    • 命令格式
           
      <Huawei>display       memory-usage ?
            slot       Slot
            threshold  Memory usage threshold
            <cr>       Please press ENTER       to execute command

    • 使用示例
           
      <Huawei>display       memory-usage
            Memory utilization statistics at 2023-03-07 14:18:46 824 ms
            System Total Memory Is: 159383552 bytes
            Total Memory Used Is: 128099284 bytes
            Memory Using Percentage Is: 80%

 


18个基础命令教你轻松拿捏华为设备的各种状态!-HCIA HCIP的评论 (共 条)

分享到微博请遵守国家法律