HP Switching - Display-Main CLI Commands
HP Switching - Display-Main CLI Commands
HP Switching - Display-Main CLI Commands
Computing
Home
How To
Music
The Band
Tracks
Misc
Links
Fr
Computing
Home
How To
Music
The Band
Tracks
Misc
Links
Fr
Français
Configuration
Commands
Display
Users
SSH
Security
NTP
Update Firmware
https://shebangthedolphins.net/hp_switching_useful_commands.html 1/5
5/27/22, 2:14 AM HP Switching | main CLI commands
Configuration
Switch models : HP 5130-24G-4SFP+ EI JG932A, HP 5130-24G-SFP-4SFP+ EI JG933A
Commands
Enter system view/global configuration mode (equivalent to conf t in Cisco) :
<Switch> system-view
Undo parameter :
Change hostname :
[Switch] save
Set switch ip :
[Switch] interface vlan-interface 1
Reboot :
<Switch> reboot
Set clibanner :
[Switch] header legal "Configures the banner to be displayed before a user inputs the username and password to access the CLI"
[Switch] header motd "Configures the greeting banner to be displayed before the legal banner appears"
Display
Get firmware information and display boot order :
https://shebangthedolphins.net/hp_switching_useful_commands.html 2/5
5/27/22, 2:14 AM HP Switching | main CLI commands
<Switch> display device
Users
Old (Comware 5)
New (Comware 7)
[Switch-luser-manage-admin] password
p@ssw0rd:p
p@ssw0rd:p
SSH
Generate rsa key :
STP
Enable STP :
RTSP :
Security
Password to console access :
https://shebangthedolphins.net/hp_switching_useful_commands.html 3/5
5/27/22, 2:14 AM HP Switching | main CLI commands
[Switch] line aux 0
Auto logoff :
[Switch] line aux 0
Disable telnet :
[Switch] no telnet server enable
Specify the minimum number of password composition types (letters, numbers, symbols) :
[Switch] password-control composition type-number "type number"
NTP
Specify the ntp server :
Trunk
Update Firmware
You can find new firmware on https://h10145.www1.hpe.com/downloads/
https://shebangthedolphins.net/hp_switching_useful_commands.html 4/5
5/27/22, 2:14 AM HP Switching | main CLI commands
Upload new firmware from a tftp server to the HP switch :
Reboot :
<Switch> reboot
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Contact :
https://shebangthedolphins.net/hp_switching_useful_commands.html 5/5