Huawei:VRP: Difference between revisions

From Cheatsheet
Jump to navigationJump to search
No edit summary
Line 2: Line 2:


== Checks ==
== Checks ==
=== Common ===
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# Display the configuration of the current view (can be used in any view, including Interface view)
# Display the configuration of the current view (can be used in any view, including Interface view)
Line 16: Line 17:
</syntaxhighlight>
</syntaxhighlight>


== Commands ==
=== Interfaces ===
<syntaxhighlight lang="bash">
# Show counter information for all interfaces
display counters
 
# Show counters for a specific interface
display counters interface 10GE1/0/20
</syntaxhighlight>
 
== Basics ==
=== Basics ===
=== Basics ===
* https://support.huawei.com/enterprise/en/doc/EDOC1000178166/c1bb51ce/entering-command-views
* https://support.huawei.com/enterprise/en/doc/EDOC1000178166/c1bb51ce/entering-command-views
Line 32: Line 42:
# Enter Interface view for interface 10GE1/0/40
# Enter Interface view for interface 10GE1/0/40
interface 10GE1/0/40
interface 10GE1/0/40
</syntaxhighlight>
== Commands ==
=== Common ===
<syntaxhighlight lang="bash">
# Shutdown a port
shutdown
undo shutdown
</syntaxhighlight>
</syntaxhighlight>

Revision as of 11:00, 28 September 2023


Checks

Common

# Display the configuration of the current view (can be used in any view, including Interface view)
display this

# Show basic system information (User view)
display version

# Show the current configuration
display current-configuration

# Display logs
display logbuffer

Interfaces

# Show counter information for all interfaces
display counters

# Show counters for a specific interface
display counters interface 10GE1/0/20

Basics

Basics

# Enter System view to perform switch configuration
system-view

# Quit the current view or quit the session if in User view
quit

# Use the "run" command to execute a User view command within System view mode
run display version

# Enter Interface view for interface 10GE1/0/40
interface 10GE1/0/40

Commands

Common

# Shutdown a port
shutdown

undo shutdown