О деактивации форума Eltex

Уважаемые коллеги! В связи с потерей актуальности данного ресурса, нами было принято решение о частичной деактивации форума Eltex. Мы отключили функции регистрации и создания новых тем, а также возможность оставлять сообщения. Форум продолжит работу в "режиме чтения", так как за долгие годы работы здесь накопилось много полезной информации и ответов на часто встречающиеся вопросы.

Мы активно развиваем другие каналы коммуникаций, которые позволяют более оперативно и адресно консультировать наших клиентов. Если у вас возникли вопросы по работе оборудования, вы можете обратиться в техническую поддержку Eltex, воспользовавшись формой обращения на сайте компании или оставить заявку в системе Service Desk. По иным вопросам проконсультируют наши менеджеры коммерческого отдела: eltex@eltex-co.ru.

Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

MES, ESR
Gennadyi
Сообщения: 67
Зарегистрирован: 09 янв 2019 16:47
Reputation: 0

Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

Сообщение Gennadyi » 17 фев 2021 14:42

В документации https://eltex-co.ru/upload/iblock/22f/MES_configuration_and_monitoring_via_SNMP_4.0.15.2.pdf "Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2"[/url]
есть пример:
Пример копирования из running-config на TFTP-сервер
Команда CLI:
copy running-config tftp://192.168.1.30/MES-config.cfg
Команда SNMP:
snmpset -v2c -c private -t 5 -r 3 192.168.1.30 \
1.3.6.1.4.1.89.87.2.1.3.1 i 1 \
1.3.6.1.4.1.89.87.2.1.7.1 i 2 \
1.3.6.1.4.1.89.87.2.1.8.1 i 3 \
1.3.6.1.4.1.89.87.2.1.9.1 a 192.168.1.1 \
1.3.6.1.4.1.89.87.2.1.11.1 s "MES-config.cfg" \
1.3.6.1.4.1.89.87.2.1.17.1 i 4

Выделенная строчка CLI правильная ?

Второй вопрос: Приведенный пример - для какого варианта(релиза) snmpset ?

Евгений Т
Сообщения: 1613
Зарегистрирован: 18 мар 2013 09:48
Reputation: 7
Откуда: Элтекс

Re: Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

Сообщение Евгений Т » 17 фев 2021 14:53

Здравствуйте.

Строчка правильная. Команда snmpset
Евгений Тур / Элтекс / Сервисный центр ШПД / https://eltex-co.ru/support/

Gennadyi
Сообщения: 67
Зарегистрирован: 09 янв 2019 16:47
Reputation: 0

Re: Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

Сообщение Gennadyi » 17 фев 2021 15:24

copy running-config tftp://192.168.1.30/MES-config.cfg - копирование running-config на tftp://192.168.1.30/ в файл MES-config.cfg
какой IP адрес у коммутатора ?

snmpset -v2c -c private -t 5 -r 3 192.168.1.30
192.168.1.30 - адрес коммутатора или TFTP сервера ?

1.3.6.1.4.1.89.87.2.1.9.1 a 192.168.1.1

192.168.1.1 - адрес коммутатора ?

Команда snmpset - это для линукса/юникса

вот для windows:
==============================================================================
SnmpSet v1.01 - Sets the value of the SNMP variable on any network device.
==============================================================================

Copyright (C) 2009 SnmpSoft Company. All Rights Reserved.

Contents
--------
1. Overview
2. Features
3. Usage & Parameters
4. Examples
5. License & Disclaimer
6. Version History


1. Overview
------------
SNMP is a standard protocol for configuring and management of network
devices. Almost all active network devices support SNMP. Besides that,
SNMP is supported by many network applications and the majority of
operational systems.

SnmpSet allows one to change the values of SNMP variables on network
devices supporting this protocol and, in this way, to manage them.
Many different actions are realized by means of writing values to
variables. This can involve the changing of configuration parameters
of a network device and enabling and disabling different features
or executions of some certain actions. Thus, SnmpSet allows you to
uniformly administer different active network devices and network
programs.

The list of SNMP variables differs on different network devices. You
can see the list of variables, supported by particular hardware or
software, by using a separate tool SnmpWalk. To determine whether it
is possible to change the variable value, you should study the
documentation or run a test with SnmpSet. You can obtain the value of
any available SNMP variable by using the SnmpGet tool.

SnmpSet it is command-line tool which simplifies its use in scripts
and allows you to automate a large number of every day system
administrator actions. This tool supports IPv4 and modern IPv6,
allowing you to avoid difficulties when you upgrade network
structures. Besides that, SnmpSet, along with supporting a version
of the SNMPv1/SNMPv2c protocol which is not safe, also supports a
safer version of SNMPv3. This allows you to avoid violations of
corporate safety policies in the event you use it.


2. Features
------------
+ Support of SNMP v1/v2c and SNMPv3
+ Support of IPv4 and IPv6
+ Command line interface (CLI)
+ Allows for any type of SNMP variable
+ Various Auth. & Privacy protocols
+ Windows NT/2000/XP/2003/Vista/2008


3. Usage & Parameters
----------------------
SnmpSet.exe [-q] -r:host [-p:port] [-t:timeout] [-v:version] [-c:community]
[-ei:engine_id] [-sn:sec_name] [-ap:auth_proto] [-aw:auth_passwd]
[-pp:priv_proto] [-pw:priv_passwd] [-ce:cont_engine] [-cn:cont_name]
-o:var_oid -val:value [-tp:type]

-q Quiet mode (suppress header)
-r:host Name or network address (IPv4/IPv6) of remote host.
-p:port SNMP port number on remote host. Default: 161
-t:timeout SNMP timeout in seconds (1-600). Default: 5
-v:version SNMP version. Supported version: 1, 2c or 3. Default: 1
-c:community SNMP community string for SNMP v1/v2c. Default: private
-ei:engine_id Engine ID. Format: hexadecimal string. (SNMPv3).
-sn:sec_name SNMP security name for SNMPv3.
-ap:auth_proto Authentication protocol. Supported: MD5, SHA (SNMPv3).
-aw:auth_passwd Authentication password (SNMPv3).
-pp:priv_proto Privacy protocol. Supported: DES, IDEA, AES128, AES192,
AES256, 3DES (SNMPv3).
-pw:priv_passwd Privacy password (SNMPv3).
-cn:cont_name Context name. (SNMPv3)
-ce:cont_engine Context engine. Format: hexadecimal string. (SNMPv3)
-o:var_oid Object ID (OID) of SNMP variable to SET.
-val:value Variable value to SET.
-tp:type Type of variable to SET. Supported: int,uint,str,hex,oid,ip.
Default: str


4. Examples
------------
SnmpSet.exe -r:10.0.0.1 -t:10 -c:"admin_rw" -o:.1.3.6.1.2.1.1.5.0 -val:MRouter
SnmpSet.exe -r:MRouter -q -p:10161 -o:.1.3.6.1.2.1.1.4.0 -val:SysAdmin
SnmpSet.exe -r:"::1" -v:3 -sn:SomeName -ap:MD5 -aw:SomeAuthPass -pp:DES
-pw:SomePrivPass -o:.1.3.6.1.2.1.11.30.0 -val:1 -tp:int


5. License & Disclaimer
------------------------
FREE USE LICENSE. You may install and use any number of copies
of this SOFTWARE on your devices free of charge. You must
distribute a copy of this license within ReadMe.txt file with
any copy of the SOFTWARE and anyone to whom you distribute the
SOFTWARE is subject to this license.

RESTRICTIONS. You may not reduce the SOFTWARE to human readable
form, reverse engineer, de-compile, disassemble, merge, adapt,
or modify the SOFTWARE, except and only to the extent that such
activity is expressly permitted by applicable law notwithstanding
this limitation. You may not rent, lease, or lend the SOFTWARE.
You may not use the SOFTWARE to perform any unauthorized transfer
of information, such as copying or transferring a file in
violation of a copyright, or for any illegal purpose.

NO WARRANTIES. To the maximum extent permitted by applicable law,
SnmpSoft Company expressly disclaims any warranty for this
SOFTWARE. The SOFTWARE and any related documentation are provided
"as is" without warranty of any kind, either express or implied,
including, without limitation, the implied warranties of
merchantability or fitness for a particular purpose. The entire
risk arising out of use or performance of the SOFTWARE remains
with you.


6. Version History
-------------------
1.01 - FIXED: Redirecting the output to a file

1.0 - Initial release


SnmpSoft Company
================
Simple Network Monitoring Programs
http://www.snmpsoft.com
FreeTools for Network Administrators
http://www.snmpsoft.com/freetools/

======================================EOF=====================================

Евгений Т
Сообщения: 1613
Зарегистрирован: 18 мар 2013 09:48
Reputation: 7
Откуда: Элтекс

Re: Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

Сообщение Евгений Т » 17 фев 2021 16:16

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

snmpset -v2c -c private -t 5 -r 3 192.168.1.30
192.168.1.30 - адрес коммутатора или TFTP сервера ?
192.168.1.1 - адрес коммутатора ?

Эти пояснения есть на странице 8 документации. 1.30 - коммутатор. 1.1 - сервер.
Понял почему возник вопрос. В документации ошибка допущена
copy running-config tftp://192.168.1.1/MES-config.cfg
Так правильно будет. Спасибо, что обратили внимание. Сейчас исправим.
Евгений Тур / Элтекс / Сервисный центр ШПД / https://eltex-co.ru/support/

Gennadyi
Сообщения: 67
Зарегистрирован: 09 янв 2019 16:47
Reputation: 0

Re: Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

Сообщение Gennadyi » 17 фев 2021 17:00

Спасибо !
А можно привести пример snmpset в синтаксисе SnmpGet для Windows

SnmpSet.exe [-q] -r:host [-p:port] [-t:timeout] [-v:version] [-c:community]
[-ei:engine_id] [-sn:sec_name] [-ap:auth_proto] [-aw:auth_passwd]
[-pp:priv_proto] [-pw:priv_passwd] [-ce:cont_engine] [-cn:cont_name]
-o:var_oid -val:value [-tp:type]

-q Quiet mode (suppress header)
-r:host Name or network address (IPv4/IPv6) of remote host.
-p:port SNMP port number on remote host. Default: 161
-t:timeout SNMP timeout in seconds (1-600). Default: 5
-v:version SNMP version. Supported version: 1, 2c or 3. Default: 1
-c:community SNMP community string for SNMP v1/v2c. Default: private
-ei:engine_id Engine ID. Format: hexadecimal string. (SNMPv3).
-sn:sec_name SNMP security name for SNMPv3.
-ap:auth_proto Authentication protocol. Supported: MD5, SHA (SNMPv3).
-aw:auth_passwd Authentication password (SNMPv3).
-pp:priv_proto Privacy protocol. Supported: DES, IDEA, AES128, AES192,
AES256, 3DES (SNMPv3).
-pw:priv_passwd Privacy password (SNMPv3).
-cn:cont_name Context name. (SNMPv3)
-ce:cont_engine Context engine. Format: hexadecimal string. (SNMPv3)
-o:var_oid Object ID (OID) of SNMP variable to SET.
-val:value Variable value to SET.
-tp:type Type of variable to SET. Supported: int,uint,str,hex,oid,ip.
Default: str

------------
SnmpSet.exe -r:10.0.0.1 -t:10 -c:"admin_rw" -o:.1.3.6.1.2.1.1.5.0 -val:MRouter
SnmpSet.exe -r:MRouter -q -p:10161 -o:.1.3.6.1.2.1.1.4.0 -val:SysAdmin
SnmpSet.exe -r:"::1" -v:3 -sn:SomeName -ap:MD5 -aw:SomeAuthPass -pp:DES
-pw:SomePrivPass -o:.1.3.6.1.2.1.11.30.0 -val:1 -tp:int

Евгений Т
Сообщения: 1613
Зарегистрирован: 18 мар 2013 09:48
Reputation: 7
Откуда: Элтекс

Re: Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

Сообщение Евгений Т » 18 фев 2021 10:01

По этому вопросу не подскажу. У нас только с линуксовых машин опыт настройки по SNMP.
Евгений Тур / Элтекс / Сервисный центр ШПД / https://eltex-co.ru/support/

Gennadyi
Сообщения: 67
Зарегистрирован: 09 янв 2019 16:47
Reputation: 0

Re: Мониторинг и управление Ethernet-коммутаторами MES по SNMP, версия ПО 4.0.15.2

Сообщение Gennadyi » 18 фев 2021 12:13

Евгений Т писал(а):По этому вопросу не подскажу. У нас только с линуксовых машин опыт настройки по SNMP.

Нашелся скомпилированный для Windows вариант Net-SNMP
С ним ваши примеры работают.


Вернуться в «Коммутаторы и маршрутизаторы Ethernet»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 17 гостей