Перейти до

HUAWEI MA5683T OID и MIB


Рекомендованные сообщения

  • Відповіді 162
  • Створено
  • Остання відповідь

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Можно пробовать здесь https://github.com/alexlansovich/gpon   Скрины здесь https://github.com/alexlansovich/gpon/tree/master/install/screens  

З цим розібрався, забув додати номер ONT, тобто OIDи мають бути такі:   snmpset -v2c -c private 10.1.1.2 \ 1.3.6.1.4.1.2011.6.128.1.1.2.53.1.2.4227867648.2 i 3 \ #авторизація за MAC(3) 1.3.6.

Вот еще найдено и нарыто в инете MIB:   Тип Ethernet порта на ону: 1.3.6.1.4.1.2011.6.128.1.1.2.62.1.21.portID.onuid.Ethid 34 - GigaEthernet, 24 - FastEthernet, -1 not   (Возможно 

Posted Images

Можно пробовать здесь https://github.com/alexlansovich/gpon

 

Скрины здесь https://github.com/alexlansovich/gpon/tree/master/install/screens

screen_device_view.png

 

Відредаговано alexlans
  • Like 3
Ссылка на сообщение
Поделиться на других сайтах
28 минут назад, alexlans сказал:

Можно пробовать здесь https://github.com/alexlansovich/gpon

 

Скрины здесь https://github.com/alexlansovich/gpon/tree/master/install/screens

screen_device_view.png

 

Спасибо.

Обязательно попробую и отпишусь.

Ссылка на сообщение
Поделиться на других сайтах
В 13.07.2019 в 16:08, alexlans сказал:

Можно пробовать здесь https://github.com/alexlansovich/gpon

 

Скрины здесь https://github.com/alexlansovich/gpon/tree/master/install/screens

screen_device_view.png

 

Добрый день все сделал  по инструкции но вылетает вот это

848776B4-5483-4BF5-AB09-90058CB88298.png

Что только не делал я не могу понять почему это вылазит  например 91.225.160.18/auth/login что это

Ссылка на сообщение
Поделиться на других сайтах

Должна открыться страница авторизации 

login.png.1f7d350726f798db8478c0651d6fcdad.png

 

Возможно не работает rewrite.

Необходимо настроить вебсервер

https://www.codeigniter.com/user_guide/general/urls.html

Ссылка на сообщение
Поделиться на других сайтах
12 часов назад, alexlans сказал:

Должна открыться страница авторизации 

login.png.1f7d350726f798db8478c0651d6fcdad.png

 

Возможно не работает rewrite.

Необходимо настроить вебсервер

https://www.codeigniter.com/user_guide/general/urls.html

 не смог я победить. но когда здесь $config['index_page'] = ''; добавил index.php пустило на страницу авторизации не больше, rewrite включен .htaccess настроен по разному но не работает:(

Ссылка на сообщение
Поделиться на других сайтах

Добавил информацию:

- При необходимости установить модуль php-snmp

- При необходимости настроить snmp на сервере, создав пустой файл /etc/snmp/snmp.conf(не путать с snmpd.conf)

Ссылка на сообщение
Поделиться на других сайтах
В 14.07.2019 в 18:50, alexlans сказал:

Должна открыться страница авторизации 

login.png.1f7d350726f798db8478c0651d6fcdad.png

 

Возможно не работает rewrite.

Необходимо настроить вебсервер

https://www.codeigniter.com/user_guide/general/urls.html

у меня вообще вот так ругается

182340197_2019-07-1713-26-17.thumb.png.0d4b0eaac21c6bceea1cbc2898ab4ad9.png

Ссылка на сообщение
Поделиться на других сайтах

sudo chmod -R 755 /var/www/html/test_new

также $config['base_url'] = "http://www.domain.com/my_subfolder/" , если не настроен реврайт на папку.

Відредаговано alexlans
Ссылка на сообщение
Поделиться на других сайтах
10 минут назад, alexlans сказал:

sudo chmod -R 755 /var/www/html/test_new 

спасибо большое, помогло)
буду дальше идти
проверил не правильно пароль от базы ввел, поправил, теперь ругается как у человека выше

Not Found

The requested URL /auth/login was not found on this server.
Apache/2.4.25 (Debian) Server at kis.bd.net Port 80

Відредаговано Sirba
Ссылка на сообщение
Поделиться на других сайтах
22 минуты назад, alexlans сказал:

sudo chmod -R 755 /var/www/html/test_new

также $config['base_url'] = "http://www.domain.com/my_subfolder/" , если не настроен реврайт на папку.

та уже запустил, спасибо, а подскажите пожалуйста, не могу найти в каком файле прописывается подключение к голове

Ссылка на сообщение
Поделиться на других сайтах

хуавей отдает мак таблицу по snmp для тех онушек, которые корректно работают с OMCI

Онушки хуавея это делают.

На другие или тестировать, или "лицензионные фичи". Типа "покупайте только хуавеевские".

 

Ссылка на сообщение
Поделиться на других сайтах
  • 3 weeks later...
В 08.08.2016 в 02:00, Darth Vader2 сказал:

серийники незареганых ONT если таких нет возвращает No Such Instance currently exists at this OID 1.3.6.1.4.1.2011.6.128.1.1.2.48.1.2 1.3.6.1.4.1.2011.6.128.1.1.2.52.1.2

У этих oid есть очень важное отличие, первое показывает текущее положение дел, а второе показывает все ont когда либо найденные на портах. Если протыкать onu по трем разным портам, то по первому oid оно отобразится только в том, в котором сейчас, а по второму во всех трех.

 

Из индекса получить порт можно так:

 

function huawei_pon_port_id_from_ifindex($ifIndex)
    {
		$return['olt'] = ( $ifIndex & 16252928) >> 19;
		$return['slot'] = ( $ifIndex & 253952) >> 13;
		$return['port'] = ( $ifIndex & 3840) >> 8;
		return $return;
	}

 

Відредаговано altlc
Ссылка на сообщение
Поделиться на других сайтах
В 08.08.2019 в 12:27, altlc сказал:

У этих oid есть очень важное отличие

 

 

Спасибо, добавил после проверки вот так:

 

серийники незареганых ONT
если таких нет возвращает No Such Instance currently exists at this OID
1.3.6.1.4.1.2011.6.128.1.1.2.48.1.2
это возвращает найденные за текущий uptime
1.3.6.1.4.1.2011.6.128.1.1.2.52.1.2

Ссылка на сообщение
Поделиться на других сайтах
В 08.08.2019 в 12:27, altlc сказал:

У этих oid есть очень важное отличие, первое показывает текущее положение дел, а второе показывает все ont когда либо найденные на портах. Если протыкать onu по трем разным портам, то по первому oid оно отобразится только в том, в котором сейчас, а по второму во всех трех.

 

Из индекса получить порт можно так:

 


function huawei_pon_port_id_from_ifindex($ifIndex)
    {
		$return['olt'] = ( $ifIndex & 16252928) >> 19;
		$return['slot'] = ( $ifIndex & 253952) >> 13;
		$return['port'] = ( $ifIndex & 3840) >> 8;
		return $return;
	}

 

Маловато будет ))

 

Ссылка на сообщение
Поделиться на других сайтах
                public static function decode_ifIndex($ifIndex) {
                        $board_type = ( $ifIndex & bindec('11111110000000000000000000000000') ) >> 25 ;
                        switch($board_type) {
                            case "126":  //EPON
                                $port_type="EPON";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $port_no        = ( $ifIndex & bindec('00000000000000000001111100000000') ) >> 8  ;
                                //echo "GPON Shelf/Slot/Interface :: $shelf_no/$slot_no/$port_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"port"=>$port_no));
                            break;
                            case "125":  //GPON
                                $port_type="GPON";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $port_no        = ( $ifIndex & bindec('00000000000000000001111100000000') ) >> 8  ;
                                //echo "GPON Shelf/Slot/Interface :: $shelf_no/$slot_no/$port_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"port"=>$port_no));
                            break;
                            case "123":  //xDSL
                                $port_type="xDSL";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "97":  //E1
                                $port_type="E1";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "96":  //BITS
                                $port_type="E1";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "63":  //
                                $port_type="DynamicMacIndex";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;                          case "61":  //
                                $port_type="DOCSIS_PORT";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "60":  //
                                $port_type="DOCSIS_DOWN_CHANNEL";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "59":  //
                                $port_type="DOCSIS_UP_CHANNEL";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "54":  //
                                $port_type="TRUNK";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "51":  //
                                $port_type="imaLink";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "48":  //VLAN
                                $port_type="VLAN";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $vlan_no        = ( $ifIndex & bindec('00000000000000000001111111111111') );
                                //echo "VLAN Shelf/Slot/vlan :: $shelf_no/$slot_no/$vlan_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"vlan"=>$vlan_no));
                            break;
                            case "44":  //
                                $port_type="SHDSL";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "39":  //
                                $port_type="IMA";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $sn_no          = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                $channel_no     = ( $ifIndex & bindec('00000000000000000000000000111111') );
                                //echo "XDSL Shelf/Slot/SN/Channel :: $shelf_no/$slot_no/$sn_no/$channel_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"sn"=>$sn_no,"channel"=>$channel_no));
                            break;
                            case "7":  //Ethernet
                                $port_type="ethernet";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $port_no        = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                //echo "ADSL Shelf/Slot/Interface :: $shelf_no/$slot_no/$interface_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"port"=>$port_no));
                            break;
                            case "6":  //ADSL
                                $port_type="ADSL";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $interface_no   = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                //echo "ADSL Shelf/Slot/Interface :: $shelf_no/$slot_no/$interface_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"interface"=>$interface_no));
                            break;
                            case "4":  //ADSL
                                $port_type="ATM";
                                $shelf_no       = ( $ifIndex & bindec('00000001111110000000000000000000') ) >> 19 ;
                                $slot_no        = ( $ifIndex & bindec('00000000000001111110000000000000') ) >> 13 ;
                                $interface_no   = ( $ifIndex & bindec('00000000000000000001111111000000') ) >> 6 ; 
                                //echo "ADSL Shelf/Slot/Interface :: $shelf_no/$slot_no/$interface_no\n";
                                return(array("type"=>$port_type,"shelf"=>$shelf_no,"slot"=>$slot_no,"interface"=>$interface_no));
                            break;
                            default:
                                echo "IFACE Board Type::[ ".$board_type." ]\n";
                                return(array("type"=>"unknown", "board_code"=>$board_type));
                            break;
                        }
                }       // function

вот как-то так

Ссылка на сообщение
Поделиться на других сайтах
  • 1 month later...

а есть OID - для сняти мониторинга с БП Хкавей? :)

Например - 1.3.6.1.4.1.2011.6.2.1.3.1.1.1.0/1000 - это напряжение по 48В? может есть ток потребление? и напряжение по сети 220?

Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Вхід

Уже зарегистрированы? Войдите здесь.

Войти сейчас
  • Зараз на сторінці   0 користувачів

    Немає користувачів, що переглядають цю сторінку.

  • Схожий контент

    • Від ikoko
      Продам 
       
      D-link des3200-10A1 - 4 шт. - ціна за 1 шт. - 1000 грн.
      D-link des3200-18A1 - 2 шт. - ціна за 1 шт. - 1400 грн.
      D-link dgs3200-10A1 - 1 шт. -  2000 грн.
      D-link dgs3120-24SC(B1) - 1 шт. -  4000 грн.
      Huawei s2326 з 1 битим портом - 1200 грн.
      Huawei s2326 з 2 битим портом - 1000 грн.
      Edge-Сore ES3525M з 1 битим портом - 1200 грн.
      Edge-Сore ES3525M - 1шт. - 1500 грн.
       
    • Від SanKo_mn
      У зв'язку з переходом на ПОН звільняються комутатори.
      Маємо:
      Alkatel 6850U24X       2
      Alkatel OS 6250-24 M      8
      D-LINK DES - 1210-28      1
      D-LINK DES - 1228       10
      D-LINK DES 1210-10       1
      D-LINK DGS - 1210-12 TS\ME     2
      TP-LINK - T 1500-28 TC      1
      TP-LINK - TL SL 2218 WEB      1
      HUAWEI - S2403TP -ЕU    1
      DELL - 3548    1
      TP-LINK TL-SL2210WEB    3
      D-LINK DES 3120-24SC    1
      D-LINK DES 1100-26   1
      HUAWEI - S2326TP    2
       
      Кількість і моделі весь ча змінюються - бо знімаються чергові)))
       
      Пишіть в особисті, що цікаво - за кількість і вартість будемо домовлятися)
    • Від ~AsmodeuS~
      PON  панель
       
       
    • Від dell
      Продам корзины БУ MA5680Т ETSI. VERSION : MA5600V800R018C00. Конфигурация: Шасси, 1*PRTG, 1*SCUN.
      32т.грн. НДС. Остальное в ЛС.

    • Від grapefruit
      Можливо хтось має оіди для BDCOM P3310B 
      LastDeregTime
      LastDeregReason
      Absenttime
      Помітив, що з P3310С не співпадають

×
×
  • Створити нове...