Got it

Peak memory and cpu usage

Created: Nov 6, 2021 17:33:26Latest reply: Nov 11, 2021 08:39:38 291 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)
Is there a command to query peak cpu and memory usage over a period of time in ea5801?

Featured Answers
Chenxintao
Admin Created Nov 7, 2021 02:50:31

Hello, friend!


You can run display cpu-overload history command to query historical information about CPU overload. 


You can run display system all(diagnose) commands to query system debugging information.


You can run display log command to query logs of the specified user or all users. When you need to query the operation logs of a user, the name and IP address of the user who performs operations on the system, the time when the user performs operations on the system, and the detailed operations, run this command.


Format

display log { name username | all } [ start-date [ start-time ] [ - end-date [ end-time ] ] ]

display log [ cli | snmp ] { name username | all } [ start-date [ start-time ] [ - end-date [ end-time ] ] ]

display log [ cli | snmp ] index index1 [ index2 ]


Thanks!


View more
  • x
  • convention:

All Answers

Hello,


resource threshold

Function

This command is used to configure the CPU overload threshold or the memory overload threshold. When you need to configure the value, which if the CPU usage exceeds or the memory occupancy rate exceeds the alarm is generated, run this command. After this command is executed successfully, the system generates the threshold alarm to prompt the user the resource overload when the CPU usage or the memory occupancy rate exceeds the threshold.
note_3.0-en-us.png
An alarm is reported only after the memory or CPU usage exceeds a threshold for a specific period. In addition, this period is recomputed again once the usage is below the threshold during sampling.

Format

resource threshold mem overload-limit

resource threshold cpu overload-limit

Parameters

Parameter

Description

Value

cpu

Configures the CPU overload threshold.

-

mem

Configures the memory overload threshold.

-

overload-limit

Indicates the value of the overload threshold. When the CPU usage or the memory occupancy rate of the system reaches or exceeds this value, the system generates the alarm of the CPU or memory resource overload.

Numeral type. Range:
  • CPU overload threshold:

    • Range: 50-100.

    • Unit: %.

    • Default value: 80.

  • memory overload threshold:

    • Range: 50-100.

    • Unit: %.

    • Default value: 90.

Modes

Privilege mode

Level

Operator level

Usage Guidelines

None

Example

To set the memory overload threshold as 70%, do as follows:

huawei#resource threshold{ cpu<K>|mem<K> }:mem{ overload-limit<U><50,100> }:70

  Command:
          resource threshold mem 70

To set the CPU overload threshold as 70%, do as follows:

huawei#resource threshold{ cpu<K>|mem<K> }:cpu{ overload-limit<U><50,100> }:70

  Command:
          resource threshold cpu 70

System Response

  • The system does not display any message after the command is executed successfully.

  • For more information about the error message that the system displays against a command entered with incorrect syntax, see the "Syntax Check" in Parameter.



Detail

https://support.huawei.com/hedex/hdx.do?lib=EDOC110012975631180BKH&docid=EDOC1100129756&lang=en&v=02&tocLib=EDOC110012975631180BKH&tocV=02&id=EN-US_CLIREF_0164607896&tocURL=resources%252Fcmd%252Fresource_threshold.html&p=t&fe=1&ui=3&keyword=cpu%2Bcommand%2Bmemory


Hope it help

Thanks


View more
  • x
  • convention:

Hello, friend!


You can run display cpu-overload history command to query historical information about CPU overload. 


You can run display system all(diagnose) commands to query system debugging information.


You can run display log command to query logs of the specified user or all users. When you need to query the operation logs of a user, the name and IP address of the user who performs operations on the system, the time when the user performs operations on the system, and the detailed operations, run this command.


Format

display log { name username | all } [ start-date [ start-time ] [ - end-date [ end-time ] ] ]

display log [ cli | snmp ] { name username | all } [ start-date [ start-time ] [ - end-date [ end-time ] ] ]

display log [ cli | snmp ] index index1 [ index2 ]


Thanks!


View more
  • x
  • convention:

Good answers
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.