qnote:procurve
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
qnote:procurve [2017/04/14 19:27] – created k | qnote:procurve [2021/08/12 08:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Быстрые заметки по HP Procurve ==== | + | ===== Быстрые заметки по HP Procurve |
- | === Сбрость конфиг === | + | ==== Сбросить конфиг |
- | == CLI == | + | === Из cli === |
Дать команду "erase startup-config" | Дать команду "erase startup-config" | ||
- | == Находясь перед коммуатором == | + | === Находясь перед коммуатором |
* Одновременно нажать кнопки reset и clear. | * Одновременно нажать кнопки reset и clear. | ||
- | * Отпустить кнопку reset когда зажгутся лампочки Power и Fault.\\ | + | * Отпустить кнопку reset когда зажгутся лампочки Power и Fault.\\ Кнопку clear продолжаем держать. |
- | Кнопку clear продолжаем держать. | + | |
* Когда начнут мигать лампочки линков на портах (запустится процесс само тестирования) можно отпускать кнопку clear. | * Когда начнут мигать лампочки линков на портах (запустится процесс само тестирования) можно отпускать кнопку clear. | ||
Line 17: | Line 16: | ||
>The switch will then complete its self test and begin operating with its configuration restored to the factory >default settings. | >The switch will then complete its self test and begin operating with its configuration restored to the factory >default settings. | ||
- | === Сбросить незначительные\временные ошибки === | + | ---- |
+ | |||
+ | ==== Сбросить незначительные\временные ошибки | ||
Нажать reset. | Нажать reset. | ||
Line 23: | Line 24: | ||
>When the switch is powered on. This action clears any temporary error conditions that may have occurred and > | >When the switch is powered on. This action clears any temporary error conditions that may have occurred and > | ||
- | === Сбросить пароли === | + | ---- |
+ | |||
+ | ==== Сбросить пароли | ||
Нажать на одну секунду кнопку clear.\\ | Нажать на одну секунду кнопку clear.\\ | ||
Конфинурация при этом не сбросится. | Конфинурация при этом не сбросится. | ||
Line 30: | Line 33: | ||
>When pressed by itself for at least one second, the button deletes any switch console access passwords that you >may have configured. Use this feature if you have misplaced the password and need console access. This button is > | >When pressed by itself for at least one second, the button deletes any switch console access passwords that you >may have configured. Use this feature if you have misplaced the password and need console access. This button is > | ||
- | === Копирование конфигурации через | + | ---- |
+ | |||
+ | ==== Перенос конфигурации между двумя коммутаторами ==== | ||
+ | Есть два коммутатора hp2626-1 и hp2626-2, надо перенести конфирурацию с hp2626-1 на hp2626-2. | ||
+ | |||
+ | Последовательность действий: | ||
+ | * Копируем на tftp сервер | ||
+ | hp2626-1# copy startup-config tftp x.x.x.x hp2626-1-config | ||
+ | </ | ||
+ | * При необходимости редактируем файл hp2626-1-config, | ||
+ | * Копируем с tftp сервера конфигурацию на коммутатор hp2626-2. < | ||
+ | hp2626-2# copy tftp startup-config x.x.x.x hp2626-1-config | ||
+ | Device may be rebooted, do you want to continue [y/n]? y | ||
+ | Rebooting switch... | ||
+ | </ | ||
+ | |||
+ | Если на коммутаторе hp2626-1 был включен ssh и https, а на коммутаторе hp2626-2 нет, то возникнет следующая ошибка: | ||
+ | |||
+ | > "line: 8. https cannot be enabled with no certificate present. To install a | ||
+ | > | ||
+ | > * Use ' | ||
+ | > * Use ' | ||
+ | > | ||
+ | > line: 168. ssh cannot be enabled until a host key is configured (use ' | ||
+ | > | ||
+ | |||
+ | Для решения | ||
+ | |||
+ | < | ||
+ | hp2626-2(config)# | ||
+ | Installing new RSA key. If the key/entropy cache is | ||
+ | depleted, this could take up to a minute. | ||
+ | |||
+ | hp2626-2(config)# | ||
+ | Installing new RSA key. If the key/entropy cache is | ||
+ | depleted, this could take up to a minute. | ||
+ | |||
+ | hp2626-m9(config)# | ||
+ | MM/ | ||
+ | < | ||
+ | Validity start date [01/ | ||
+ | Validity end date | ||
+ | Common name [0.0.0.0]: hp2626-m9 | ||
+ | Organizational unit [Dept Name]: IT-Dept | ||
+ | Organization | ||
+ | City or location | ||
+ | State name | ||
+ | Country code [US]: RU | ||
+ | </ | ||
+ | |||
+ | Пробуем еще раз загрузить новую конфигурацию: | ||
+ | < | ||
+ | Device may be rebooted, do you want to continue [y/n]? y | ||
+ | Rebooting switch... | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Обновление коммутатора ==== | ||
+ | Проверяем, | ||
+ | < | ||
+ | hp2626# sh flash | ||
+ | Image | ||
+ | ----- | ||
+ | Primary Image : 3431516 | ||
+ | Secondary Image : 2142958 | ||
+ | Boot Rom Version: H.08.02 | ||
+ | Current Boot : Primary | ||
+ | |||
+ | hp2626# copy flash flash secondary | ||
+ | |||
+ | hp2626# sh flash | ||
+ | Image | ||
+ | ----- | ||
+ | Primary Image : 3431516 | ||
+ | Secondary Image : 3431516 | ||
+ | Boot Rom Version: H.08.02 | ||
+ | Current Boot : Primary | ||
+ | </ | ||
+ | |||
+ | C tftp сервера закачиваем на коммутатор свежий софт. | ||
+ | < | ||
+ | hp2626# copy tftp flash x.x.x.x H_10_115.swi | ||
+ | ... | ||
+ | Validating and Writing System Software to FLASH... | ||
+ | ... | ||
- | Сидим на коммутторе через minicom, надо залить на него конфигурацию из бэкапа или с другого коммутатора. | + | hp2626# sh flash |
+ | Image | ||
+ | ----- | ||
+ | Primary Image : 3525464 | ||
+ | Secondary Image : 3431516 | ||
+ | Boot Rom Version: H.08.02 | ||
+ | Current Boot : Primary | ||
+ | </ | ||
+ | Задаем флешку с которой будем загружаться. | ||
+ | < | ||
+ | hp2626# boot system flash primary | ||
+ | </ | ||
+ | Коммутатор | ||
+ | Если | ||
- | -- |
qnote/procurve.1492187262.txt.gz · Last modified: (external edit)