Some HP Switching useful commands

Configuration

Commands

<Switch> system-view
[Switch] undo stp enable
[Switch] sysname Switch
[Switch] save
[Switch] save force
[Switch] interface vlan-interface 1
ip address 192.168.20.10 255.255.255.0
<Switch> reboot
[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

<Switch> display boot-loader
<Switch> display boot-loader
<Switch> display device manuinfo slot 1
<Switch> display device
<Switch> display system stable state
<Switch> display version
<Switch> display mac-address

Users

[Switch] local-user admin
[Switch-luser-manage-admin] password simple password
[Switch-luser-manage-admin] authorization-attribute level 3

SSH

[Switch] public-key local create rsa
[Switch] ssh server enable
[Switch] local-user admin
[Switch-luser-manage-admin] service-type ssh

STP

[Switch] stp enable
[Switch] stp mode rtsp
[Switch] stp root primary
<Switch> display stp

Security

[Switch] line aux 0
[Switch-line-aux0] authentication-mode password
[Switch-line-aux0] set authentication password simple "password"
[Switch] line aux 0
[Switch-line-aux0] idle-timeout "minutes" "seconds"
[Switch] password-control login-attempt 3 exceed lock-time 120
[Switch] no telnet server enable
[Switch] password-control complexity user-name check
[Switch] password-control composition type-number "type number"
Licence Creative Commons
This website http://shebangthedolphins.net is licensed to the public under a licence Creative Commons Attribution licence.
Contact :