FAQ banner
Get the Help and Supports!

This help center can answer your questions about customer services, products tech support, network issues.
Select a topic to get started.

ICT Tech Savings Week
2025 MEGA SALE | In-Stock & Budget-Friendly for Every Project

Does Huawei switch support the CLI function when upgraded to web/SNMP-managed model?


Yes, Huawei switches retain full CLI (Command Line Interface) functionality even when upgraded to web or SNMP-managed models. CLI is a fundamental and powerful management method for Huawei network devices, offering deep-level control and configuration capabilities that complement graphical (Web) and programmatic (SNMP) interfaces.


What are Huawei Switch CLI, Web, and SNMP Management?

Huawei switches, including various series like S5700, S6700, and CloudEngine, support multiple management interfaces to cater to different operational needs:

  • CLI (Command Line Interface): Text-based interface for direct control, troubleshooting, and advanced configuration with commands familiar to Cisco CLI users (e.g., display instead of show).
  • Web Management (GUI): Browser-based graphical interface for intuitive, daily configuration and monitoring.
  • SNMP Management: Protocol-based management for centralized monitoring using NMS or controllers like iMaster NCE-Campus.


Why Does Huawei Switch CLI Remain Essential?

  • Fundamental Setup and Advanced Management: SSH, SNMP, and advanced features often require CLI for initial setup and control.
  • Detailed Troubleshooting: Commands like display logbuffer and display interface brief are essential for diagnostics.
  • Granular Control: CLI enables advanced configurations like QoS policies, security, and STP adjustments.
  • Scripting and Automation: CLI supports automation of repetitive network tasks for efficiency.


Huawei Switch Management Methods Comparison

Feature/Aspect CLI Web Management SNMP Management
Primary Use Advanced configuration, troubleshooting, scripting Daily configuration, intuitive monitoring Centralized monitoring, bulk management
Access Method Console, Telnet, SSH Browser (HTTP/HTTPS) NMS (e.g., iMaster NCE-Campus)
Complexity High, requires CLI knowledge Low, intuitive Moderate, requires NMS setup
Flexibility Highest High, GUI-limited High, scalable
Security SSH, privilege levels HTTPS, user authentication Depends on SNMP version
Example Commands system-view, display current-configuration Graphical interface snmp-agent commands
Upgrade/Patching Direct file transfer (FTP/TFTP) GUI or CLI-based Bulk upgrades (requires SSH/TFTP)


How to Configure Basic Management Features via Huawei CLI

1. Enabling SSH for Secure CLI Access

 system-view
[Huawei] aaa
[Huawei-aaa] local-user  password cipher 
[Huawei-aaa] local-user  service-type ssh
[Huawei-aaa] local-user  level 15
[Huawei] rsa local-key-pair create
[Huawei] stelnet server enable
[Huawei] ssh user  authentication-type password
[Huawei] ssh user  service-type stelnet
[Huawei] user-interface vty 0 4
[Huawei-ui-vty0-4] authentication-mode aaa
[Huawei-ui-vty0-4] protocol inbound ssh

2. Enabling SNMP Agent

 system-view
[Huawei] snmp-agent
[Huawei] snmp-agent sys-info version v3
[Huawei] snmp-agent group v3  authentication
[Huawei] snmp-agent user v3  group  authentication-mode sha cipher  privacy-mode aes128 cipher 
[Huawei] snmp-agent target-host trap address udp-domain  params securityname  v3 privacy

3. Enabling Web Management

 system-view
[Huawei] http server enable
[Huawei] http secure-server enable
[Huawei] aaa
[Huawei-aaa] local-user  password cipher 
[Huawei-aaa] local-user  service-type http
[Huawei-aaa] local-user  level 3


FAQ

Q1: Does a Huawei switch lose CLI when switched to web management?

No, Huawei switches retain CLI functionality even when web management is enabled, allowing both to be used concurrently.

Q2: Can Huawei switches be managed via CLI, web, and SNMP at the same time?

Yes, Huawei switches support simultaneous management via CLI, web GUI, and SNMP for flexibility in network operations.

Q3: Is CLI required for initial Huawei switch configuration?

Yes, many advanced configurations and initial management features like SSH and SNMP are best set up using the CLI.

Q4: Are CLI commands on Huawei switches similar to Cisco switches?

Yes, Huawei CLI shares similar structures with Cisco CLI, making it easier for Cisco users to transition to Huawei switches.


Conclusion

The Huawei switch CLI remains an indispensable management tool even when using web and SNMP management, providing granular control for advanced configurations and troubleshooting. For Huawei switch models supporting CLI/Web/SNMP management and detailed configuration guidance, visit router-switch.com to explore models, request a quote, or consult with experts for your deployment needs.


Categories: Product FAQs Switches