Inspired by: Начальная настройка коммутатора HP 1910 серии
It is well known and has been emphasized by HP, many HP switches (HPE) are configured through the web-interface. A little less known is that a full customization for large number of switches is also possible via command line (for example, 1910, 1920).
Connection to the switch possibly via the network (if you know its IP) or if you have physical access – via the console cable (included), Cisco console cable also suitable for connection (tested in HPE 1920). If you connect through the console cable, you must set the following parameters in the access program (Putty, minicom):
- Speed (baud) – 38400
- Data bits – 8
- Stop bits – 1
- Flow control – None
If you see switch console, but keyboard keys doesn’t send into console, most likely – Flow control forgotten.
For fresh unpacked switch – login: admin, without password.
By default in the command line you have only few commands. But if you enter hidden command
_cmdline-mode on
then you are prompted to confirm this command:
All commands can be displayed and executed. Continue? [Y/N]
– need to press y
followed by a request to enter the factory password. The following passwords are possible:
Password | Tested switch |
---|---|
512900 | HP 1910 and earlier |
Jinhua1920unauthorized | HPE 1920 |
After entering password, you have full set of commands, which give you ability to fully setup/view info for switch.
For reference:
Command | In Cisco | Description |
---|---|---|
system-view | conf t | entry into setup mode |
quit | exit | exit from different levels in setup |
undo cmd | no cmd | undo command cmd |
save | wr mem | save running configuration |
Tengo que programar un HP 1092 por favor su ayuda con manual de linea de comando
gracias
Собственно вопрос, ответ на который можно добавить в эту статью. Как сменить стандартный пароль, который приходится вводить при переходе в режим конфигурирования?
Я вхожу с помощью такого скрипта
$cat ./telnet1910.sh
#!/usr/bin/expect
spawn telnet 10.0.0.2
expect “Username:”
send “admin\r”
expect “Password:”
send “Pa$$worD\r”
expect “<"
send "_cmdline-mode on\r"
expect "All"
send "y\r"
expect "password"
send "512900\r"
expect "<"
interact
$