Страница 1 из 1

подружить mes3125 с rancid

Добавлено: 18 мар 2014 20:50
tant
Добрый день!
Подскажите есть ли легкий способ подружить MES3125 c rancid? Необходимо периодически бекап делать данного устройства.

Re: подружить mes3125 с rancid

Добавлено: 21 мар 2014 10:00
str
Здравствуйте.
Немного почитал про rancid - эта утилита на основе expect-скриптов. Если что-то с лету не запускается - необходимо, руководствуясь дебажными трассировками, поправить соответствующий expect-сценарий.

Кроме того, коммутатор поддерживает "из коробки" выгрузку конфигурации. Необходимые команды для настройки - с префиксом backup:

Код: Выделить всё

G(config)#backup
  auto                 Perform automatic backups on timeout.
  path                 Location and filename prefix for the files.
  server               Configure backup server.
  time-period          Period of time in minutes to automatically backup the
                       running-config.
  write-memory         Enable automatic backup generation during write memory.

можно настроить резервирование конфигурации по таймеру, а также при изменении настроек.

Re: подружить mes3125 с rancid

Добавлено: 16 ноя 2015 20:16
ashihmin_av
Можете подсказать в чем дело?
С eltex не могу зайти по ssh на сервер ubuntu
hostname_eltex#ssh "IP_addr"
SSH connection closed. Reason: key exchange failed.

Ниже результат debug с демона sshd
ashihmin_av@steel130:/usr/sbin$ sudo /usr/sbin/sshd -d
debug1: sshd version OpenSSH_6.9, OpenSSL 1.0.2d 9 Jul 2015
debug1: private host key #0: ssh-rsa SHA256:drQzQJlRBgB4YiwtdTN2xJ7kMCPz/w9dNJXlT2jIG/Y
debug1: private host key #1: ssh-dss SHA256:zBw5TlD/4YN8uCFGOocZ/iDavCRlfVgqLSZMy7fG7W8
debug1: private host key #2: ecdsa-sha2-nistp256 SHA256:pe2coumjnWnr+27rB6zjE6ORNqP6jkNDZX2M8QY8f38
debug1: private host key #3: ssh-ed25519 SHA256:GMQmRS5Mab0Y1KVA5KurolEMRAo8WA8qD5djEBgEVy0
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_score_adj from 0 to -1000
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Server will not fork when running in debugging mode.
debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8
debug1: inetd sockets after dupping: 3, 3
Connection from 10.200.31.44 port 37008 on 10.200.31.9 port 22
debug1: Client protocol version 2.0; client software version OpenSSH_3.4p1.RL
debug1: match: OpenSSH_3.4p1.RL pat OpenSSH_3.* compat 0x01000000
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9p1 Ubuntu-2
debug1: permanently_set_uid: 116/65534 [preauth]
debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
debug1: SSH2_MSG_KEXINIT sent [preauth]
debug1: SSH2_MSG_KEXINIT received [preauth]
ssh_dispatch_run_fatal: Connection to 10.200.31.44: no matching cipher found [preauth]
debug1: do_cleanup [preauth]
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: Killing privsep child 32302
debug1: audit_event: unhandled event 12

Re: подружить mes3125 с rancid

Добавлено: 01 дек 2015 10:25
Александр Селезнев
Можете подсказать в чем дело?
С eltex не могу зайти по ssh на сервер ubuntu

Какая версия ПО на 3124?

Re: подружить mes3125 с rancid

Добавлено: 01 дек 2015 10:37
Александр Селезнев
Также в момент перед установкой ssh соединения включите из debug
console#debug
>debug
Enter DEBUG Password: *****(debug)

DEBUG>set ssh debug 100

Также в этот момент должны быть включены debug с демона sshd

Re: подружить mes3125 с rancid

Добавлено: 02 дек 2015 16:43
yman
Не знаю как насчет этой модели, но 3124 и 2124 прекрасно работают с модулем для Cisco Small Buisness.
https://github.com/chrpinedo/rancid-cisco-sb <- вот ссылка на GitHub.

Re: подружить mes3125 с rancid

Добавлено: 31 авг 2022 06:30
d1k1
Доброго дня, коллеги.
Мучаюсь сейчас с этим вопросом, железка ESR-1000. Может у кого-то есть наработки?