User Tools

Site Tools


qnote:procurve

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
qnote:procurve [2017/04/14 19:27] – created kqnote: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 >executes the switch self test. >When the switch is powered on. This action clears any temporary error  conditions that may have occurred and >executes the switch self test.
  
-=== Сбросить пароли ===+---- 
 + 
 +==== Сбросить пароли ====
 Нажать на одну секунду кнопку 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 >provided as a convenience, however if you are concerned with the security of the switch configuration and >operation, you should make sure the switch is installed in a secure location. This button can be disabled by a >CLI command.  >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 >provided as a convenience, however if you are concerned with the security of the switch configuration and >operation, you should make sure the switch is installed in a secure location. This button can be disabled by a >CLI command. 
  
-=== Копирование конфигурации через com порт ===+---- 
 + 
 +==== Перенос конфигурации между двумя коммутаторами ==== 
 +Есть два коммутатора hp2626-1 и hp2626-2, надо перенести конфирурацию с hp2626-1 на hp2626-2. 
 + 
 +Последовательность действий: 
 +  * Копируем на tftp сервер конфигурацию коммутатора hp2626-1. <code> 
 +hp2626-1# copy startup-config tftp x.x.x.x hp2626-1-config 
 +</code> 
 +  * При необходимости редактируем файл hp2626-1-config, меняем hostname, ip адреса и пр. 
 +  * Копируем с tftp сервера конфигурацию на коммутатор hp2626-2. <code> 
 +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... 
 +</code> 
 + 
 +Если на коммутаторе hp2626-1 был включен ssh и https, а на коммутаторе hp2626-2 нет, то возникнет следующая ошибка: 
 + 
 +> "line: 8. https cannot be enabled with no certificate present. To install a 
 +>self-signed certificate, 
 +>  * Use 'crypto key generate...' to install RSA key; then 
 +>  * Use 'crypto host-cert generate...' to install certificate. 
 +
 +> line: 168. ssh cannot be enabled until a host key is configured (use 'crypto' command). 
 +>Corrupted download file." 
 + 
 +Для решения проблемы создаем ключи и сертификаты для ssh и https: 
 + 
 +<file> 
 +hp2626-2(config)# crypto key generate ssh 
 +Installing new RSA key.  If the key/entropy cache is 
 +depleted, this could take up to a minute. 
 + 
 +hp2626-2(config)# crypto key generate cert 1024  
 +Installing new RSA key.  If the key/entropy cache is 
 +depleted, this could take up to a minute. 
 + 
 +hp2626-m9(config)# crypto host-cert generate self-signed  
 +MM/DD[/[YY]YY]        Validity start date for certificate. 
 +<cr> 
 +Validity start date [01/01/1990]: 02/01/2015 
 +Validity end date   [02/01/2016]: 02/01/2025 
 +Common name            [0.0.0.0]: hp2626-m9 
 +Organizational unit  [Dept Name]: IT-Dept 
 +Organization      [Company Name]: IT-Comp 
 +City or location  [City]: Moscow 
 +State name               [State]: MOW 
 +Country code                [US]: RU 
 +</file> 
 + 
 +Пробуем еще раз загрузить новую конфигурацию: 
 +<code>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... 
 +</code> 
 + 
 +---- 
 + 
 +==== Обновление коммутатора ==== 
 +Проверяем, что в обоих флешках у нас одинаковая версия софта, при необходимости копируем софт из primary флешки в secondary.  
 +<code> 
 +hp2626# sh flash 
 +Image           Size(Bytes)   Date   Version 
 +-----           ----------  -------- ------- 
 +Primary Image   : 3431516   08/22/07 H.10.45 
 +Secondary Image : 2142958   05/19/03 H.07.31 
 +Boot Rom Version: H.08.02 
 +Current Boot    : Primary 
 + 
 +hp2626# copy flash flash secondary 
 + 
 +hp2626# sh flash 
 +Image           Size(Bytes)   Date   Version 
 +-----           ----------  -------- ------- 
 +Primary Image   : 3431516   08/22/07 H.10.45 
 +Secondary Image : 3431516   08/22/07 H.10.45: 
 +Boot Rom Version: H.08.02 
 +Current Boot    : Primary 
 +</code> 
 + 
 +C tftp сервера закачиваем на коммутатор свежий софт.  
 +<code> 
 +hp2626# copy tftp flash x.x.x.x H_10_115.swi 
 +... 
 +Validating and Writing System Software to FLASH... 
 +...
  
-Сидим на коммутторе через minicom, надо залить на него конфигурацию из бэкапа или с другого коммутатора+hp2626# sh flash 
 +Image           Size(Bytes)   Date   Version 
 +-----           ----------  -------- ------- 
 +Primary Image   : 3525464   04/09/14 H.10.115 
 +Secondary Image : 3431516   08/22/07 H.10.45: 
 +Boot Rom Version: H.08.02 
 +Current Boot    : Primary 
 +</code> 
 +Задаем флешку с которой будем загружаться.  
 +<code> 
 +hp2626# boot system flash primary 
 +</code>  
 +Коммутатор предложит перегрузиться. \\ 
 +Если коммутатор загрузился и все хорошо, то копируем новый софт на secondary флешку.
  
---  
qnote/procurve.1492187262.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki