Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
eltexRowStatus.1 i destroy eltexRowStatus.1 i createAndGo \
eltexSourceLocation.1 i tftp \
eltexSourceAddress.1 s "<tftp-server-ip>" \
eltexSourceFileName.1 s <config-file-name> \
eltexDestinationFileType.1 i candidateConfig \
eltexDestinationLocation.1 i local \
eltexOperationNotification.1 i true \
eltexFileHistoryIndex.1 i 0
или
snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
.1.3.6.1.4.1.35265.5.1.1.13.1 i 6 .1.3.6.1.4.1.35265.5.1.1.13.1 i 4 \
.1.3.6.1.4.1.35265.5.1.1.3.1 i 3 \
.1.3.6.1.4.1.35265.5.1.1.14.1 s "<tftp-server-ip>" \
.1.3.6.1.4.1.35265.5.1.1.6.1 s <config-file-name> \
.1.3.6.1.4.1.35265.5.1.1.7.1 i 6 \
.1.3.6.1.4.1.35265.5.1.1.8.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.18.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.23.1 i 0

Загрузка конфигурации по протоколу ftp без авторизации

...

snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
eltexRowStatus.1 i destroy eltexRowStatus.1 i createAndGo \
eltexSourceLocation.1 i ftp \
eltexSourceAddress.1 s "<ftp-server-ip>" \
eltexSourceFileName.1 s <config-file-name> \
eltexDestinationFileType.1 i candidateConfig \
eltexDestinationLocation.1 i local \
eltexOperationNotification.1 i true \
eltexFileHistoryIndex.1 i 0
или
snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
.1.3.6.1.4.1.35265.5.1.1.13.1 i 6 .1.3.6.1.4.1.35265.5.1.1.13.1 i 4 \
.1.3.6.1.4.1.35265.5.1.1.3.1 i 9 \
.1.3.6.1.4.1.35265.5.1.1.14.1 s "<ftp-server-ip>" \
.1.3.6.1.4.1.35265.5.1.1.6.1 s <config-file-name> \
.1.3.6.1.4.1.35265.5.1.1.7.1 i 6 \
.1.3.6.1.4.1.35265.5.1.1.8.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.18.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.23.1 i 0

Загрузка конфигурации по протоколу ftp с авторизацией

...

snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
eltexRowStatus.1 i destroy eltexRowStatus.1 i createAndGo \
eltexSourceLocation.1 i ftp \
eltexSourceAddress.1 s "<ftp-server-ip>" \
eltexSourceFileName.1 s <config-file-name> \
eltexDestinationFileType.1 i candidateConfig \
eltexDestinationLocation.1 i local \
eltexUserName.1 s <ftp-user-name>: \
eltexUserPassword.1 s <ftp-user-password> \
eltexOperationNotification.1 i true \
eltexFileHistoryIndex.1 i 0
или
snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
.1.3.6.1.4.1.35265.5.1.1.13.1 i 6 .1.3.6.1.4.1.35265.5.1.1.13.1 i 4 \
.1.3.6.1.4.1.35265.5.1.1.3.1 i 9 \
.1.3.6.1.4.1.35265.5.1.1.14.1 s "<ftp-server-ip>" \
.1.3.6.1.4.1.35265.5.1.1.6.1 s <config-file-name> \
.1.3.6.1.4.1.35265.5.1.1.7.1 i 6 \
.1.3.6.1.4.1.35265.5.1.1.8.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.16.1 s <ftp-user-name>: \
.1.3.6.1.4.1.35265.5.1.1.17.1 s <ftp-user-password> \
.1.3.6.1.4.1.35265.5.1.1.18.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.23.1 i 0

Загрузка конфигурации по протоколу sftp с авторизацией

...

snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
eltexRowStatus.1 i destroy eltexRowStatus.1 i createAndGo \
eltexSourceLocation.1 i sftp \
eltexSourceAddress.1 s "<sftp-server-ip>" \
eltexSourceFileName.1 s <config-file-name> \
eltexDestinationFileType.1 i candidateConfig \
eltexDestinationLocation.1 i local \
eltexUserName.1 s <sftp-user>: \
eltexUserPassword.1 s <sftp-user-password> \
eltexOperationNotification.1 i true \
eltexFileHistoryIndex.1 i 0
или
snmpset -v2c -c<snmpv2community> -r0 -t300 <esr-ip> \
.1.3.6.1.4.1.35265.5.1.1.13.1 i 6 .1.3.6.1.4.1.35265.5.1.1.13.1 i 4 \
.1.3.6.1.4.1.35265.5.1.1.3.1 i 10 \
.1.3.6.1.4.1.35265.5.1.1.14.1 s "<sftp-server-ip>" \
.1.3.6.1.4.1.35265.5.1.1.6.1 s <config-file-name> \
.1.3.6.1.4.1.35265.5.1.1.7.1 i 6 \
.1.3.6.1.4.1.35265.5.1.1.8.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.16.1 s <sftp-user>: \
.1.3.6.1.4.1.35265.5.1.1.17.1 s <sftp-user-password> \
.1.3.6.1.4.1.35265.5.1.1.18.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.23.1 i 0

Загрузка конфигурации по протоколу scp с авторизацией

...

SNMP-запрос

snmpset -v2c -c<snmpv2community>c <snmpv2community> -r0 -t300 <esr-ip> \
eltexRowStatus.1 i destroy eltexRowStatus.1 i createAndGo \
eltexSourceLocation.1 i scp \
eltexSourceAddress.1 s "<scp-server-ip>" \
eltexSourceFileName.1 s <config-file-name> \
eltexDestinationFileType.1 i candidateConfig \
eltexDestinationLocation.1 i local \
eltexUserName.1 s <scp-user>: \
eltexUserPassword.1 s <scp-user-password> \
eltexOperationNotification.1 i true \
eltexFileHistoryIndex.1 i 0
или
snmpset -v2c -c <snmpv2community> -r0 -t300 <esr-ip> \
.1.3.6.1.4.1.35265.5.1.1.13.1 i 6 .1.3.6.1.4.1.35265.5.1.1.13.1 i 4 \
.1.3.6.1.4.1.35265.5.1.1.3.1 i 5 \
.1.3.6.1.4.1.35265.5.1.1.14.1 s "<scp-server-ip>" \
.1.3.6.1.4.1.35265.5.1.1.6.1 s <config-file-name> \
.1.3.6.1.4.1.35265.5.1.1.7.1 i 6 \
.1.3.6.1.4.1.35265.5.1.1.8.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.16.1 s <scp-user>: \
.1.3.6.1.4.1.35265.5.1.1.17.1 s <scp-user-password> \
.1.3.6.1.4.1.35265.5.1.1.18.1 i 1 \
.1.3.6.1.4.1.35265.5.1.1.23.1 i 0

Применение candidate-config в running-config

...

SNMP-запрос

snmpset -v2c -c<snmpv2community>c <snmpv2community> -r1 -t30 <esr-ip> eltexConfigAction.1 i commit 1
или
snmpset -v2c -c <snmpv2community> -r1 -t30 <esr-ip> .1.3.6.1.4.1.35265.38.30.1.1.2.1 i 1

Подтверждение running-config

...

snmpset -v2c -c<snmpv2community> -r1 -t30 <esr-ip> eltexConfigAction.1 i confirm3
или
snmpset -v2c -c<snmpv2community> -r1 -t30 <esr-ip> .1.3.6.1.4.1.35265.38.30.1.1.2.1 i 3