URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID6
Нить номер: 15121
[ Назад ]

Исходное сообщение
"как на catalyst 3750 по snmp получить значение port-security..."

Отправлено dmitryt , 21-Дек-07 19:37 
Нужно получить значение switchport port-security maximum с заданного порта
snmpwalk`ом делал дамп данного значения не получал, требуется для добавления маков в порт секьюрити и ограничения их числа (чтобы не прописывались).

Содержание

Сообщения в этом обсуждении
"как на catalyst 3750 по snmp получить значение port-security..."
Отправлено sproot , 22-Дек-07 13:36 
>Нужно получить значение switchport port-security maximum с заданного порта
>snmpwalk`ом делал дамп данного значения не получал, требуется для добавления маков в
>порт секьюрити и ограничения их числа (чтобы не прописывались).

Какая версия IOS, если не секрет ? :) Чтобы знать какие mib она поддерживает...

Может эта информация поможет:

Object    swPortAddressTableSize
OID    1.3.6.1.4.1.437.1.1.3.3.1.1.14
Type    INTEGER
Permission    read-write
Status    mandatory
Range    0 - 132
MIB    ESSWITCH-MIB ;
Description    "For secured Network port, the address table size can range
from 1 to 132. For unsecured Network port, the size is
unrestricted (shown as the value zero) and is, therefore,
not settable. Any attempt to violate these rules will
result in badValue."


"как на catalyst 3750 по snmp получить значение port-security..."
Отправлено dmitryt , 22-Дек-07 14:46 
>[оверквотинг удален]
>Type INTEGER
>Permission read-write
>Status mandatory
>Range 0 - 132
>MIB ESSWITCH-MIB ;
>Description "For secured Network port, the address table size can range
>from 1 to 132. For unsecured Network port, the size is
>unrestricted (shown as the value zero) and is, therefore,
>not settable. Any attempt to violate these rules will
>result in badValue."

Cisco IOS Software, C3750 Software (C3750-IPSERVICES-M), Version 12.2(25)SEE2, RELEASE SOFTWARE (fc1)

SNMPv2-SMI::enterprises.437.1.1.3.3.1.1.14 = No Such Object available on this agent at this OID


"как на catalyst 3750 по snmp получить значение port-security..."
Отправлено sproot , 22-Дек-07 15:11 
>[оверквотинг удален]
>>Description "For secured Network port, the address table size can range
>>from 1 to 132. For unsecured Network port, the size is
>>unrestricted (shown as the value zero) and is, therefore,
>>not settable. Any attempt to violate these rules will
>>result in badValue."
>
>Cisco IOS Software, C3750 Software (C3750-IPSERVICES-M), Version 12.2(25)SEE2, RELEASE SOFTWARE (fc1)
>
>SNMPv2-SMI::enterprises.437.1.1.3.3.1.1.14 = No Such Object available on this agent at this OID
>

грит нет такого OID...а попробуй вот этот:

Object    cpsIfMaxSecureMacAddr
OID    1.3.6.1.4.1.9.9.315.1.2.1.1.3
Type    Integer32
Permission    read-write
Status    current
Range    1 - 2147483647
MIB    CISCO-PORT-SECURITY-MIB ;
Description    "The maximum number (N) of MAC addresses to be
secured on the interface. The first N MAC
addresses learned or configured are made secured.
Changing this object value from N to M is not
allowed if M is smaller than N, and M is less
than the value of cpsIfCurrentSecureMacAddrCount
on the interface. One way to change the number in
this case is by deleting sufficient number of
secure mac addresses configured or learned on the
device. Also, sum of this object value for all the
interfaces is less than or equal to
cpsGlobalMaxSecureAddress."


"как на catalyst 3750 по snmp получить значение port-security..."
Отправлено dmitryt , 22-Дек-07 20:24 
Спасибо, подошло