20150219

Быстрые заметки по procurve.


6. Сбрость конфиг. 
Из cli. 
Дать команду erase startup-config.

Находясь перед коммуатором.
-- Одновременно нажать кнопки reset и clear.
-- Отпустить кнопку reset когда зажгутся лампочки Power и Fault
Кнопку clear продолжаем держать. 
-- Когда начнут мигать лампочки линков на портах (запустится процесс само тестирования) можно отпускать кнопку clear. 

To execute the factory default reset on the switch, perform these steps:
1. Using pointed objects, simultaneously press both the Reset and Clear buttons on the front of the switch. The power and fault lights come on.
2. Continue to press the Clear button while releasing the Reset button.
3. When the Self Test LED begins to flash, release the Clear button.
The switch will then complete its self test and begin operating with its configuration restored to the factory default settings.
 
5. Сбросить незначительные\временные ошибки. 
Нажать reset.


Resetting the switch
When the switch is powered on. This action clears any temporary error  conditions that may have occurred and executes the switch self test.


4. Сбросить пароли. 
Нажать на одну секунду кнопку clear.
Конфинурация при этом не сбросится.  

Deleting Passwords 
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.

3. Копирование конфигурации через com порт. 
Сидим на коммутторе через minicom, надо залить на него конфигурацию из бэкапа или с другого коммутатора. 
-- 


2. Перенос конфигурации между двумя коммутаторами. 
Есть два коммутатора hp2626-1 и hp2626-2. Надо перенести конфирурацию с hp2626-1 на hp2626-2
-- Копируем на tftp сервер конфигурацию коммутатора hp2626-1.
hp2626-1# copy startup-config tftp x.x.x.x hp2626-1-config

-- При необходимости редактируем файл hp2626-1-config, меняем hostname, ip адреса и пр.

-- Копируем с 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
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:

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-2
Organizational unit  [Dept Name]: IT-Dept
Organization      [Company Name]: IT-Comp
City or location  [City]: Moscow
State name               [State]: MOW
Country code                [US]: RU

Пробуем еще раз загрузить новую конфигурацию: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...




1. Обновление коммутатора.
-- Проверяем, что в обоих флешках у нас одинаковая версия софта, при необходимости копируем софт из primary флешки в secondary.

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

-- C tftp сервера закачиваем на коммутатор свежий софт.

hp2626# copy tftp flash x.x.x.x H_10_115.swi
...
Validating and Writing System Software to FLASH...
...

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

-- Задаем флешку с которой будем загружаться.
hp2626# boot system flash primary

##Коммутатор предложит перегрузиться. 

-- Если коммутатор загрузился и все хорошо, то копируем новый софт на secondary флешку.


Комментариев нет:

Отправить комментарий