Перейти до

Pon Control - комплекс управления и мониторинга сетью


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

  • 1 month later...
  • Відповіді 606
  • Створено
  • Остання відповідь

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Предыстория: всё началось с простого желания видеть сигналы на ОНУшках через веб-интерфейс (с телефона работая на линии такая инфа необходима), потом задавались вопросом "А какие сигналы были до того,

get_fdb_by_telnet.php 24 строчка   "fwrite($con, "show mac a int $nameint \r\n");" рекомендую поправить на "fwrite($con, "show mac address-table int $nameint \r\n");" в  Build 58197 поя

Здравствуйте, сделал себе дополнение, которым решил поделиться. Если ONU имеет ТВ-порт, он отображается на карточке вместе со статусом (Вкл. / Выкл.) Screenshots: TV off    TV is ON  

Posted Images

При добавлении олта :Warning in ./libraries/sql.lib.php#613
 count(): Parameter must be an array or an object that implements Countable

Backtrace

./libraries/sql.lib.php#2128: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#2079: PMA_executeQueryAndGetQueryResponse(
array,
boolean true,
string 'pon2',
string 'olts',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `olts`',
NULL,
NULL,
)
./sql.php#221: PMA_executeQueryAndSendQueryResponse(
array,
boolean true,
string 'pon2',
string 'olts',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `olts`',
NULL,
NULL,
)

Ссылка на сообщение
Поделиться на других сайтах
  • 1 month later...
On 12/22/2021 at 10:24 AM, sbonkov said:

Здравствуйте, сделал себе дополнение, которым решил поделиться.

Если ONU имеет ТВ-порт, он отображается на карточке вместе со статусом (Вкл. / Выкл.)

Screenshots: TV off    TV is ON

 

 

1.) Для этого в файл function_lib.php необходимо добавить две функции


// END ----------

// ---------- Get CATVRF status () ----------

function GetCATVAdminStatus($ip, $ro, $iface, $port) {
$catv_status = snmp2_get($ip, $ro, "1.3.6.1.4.1.3320.101.10.30.1.2.$iface.$port");
$catv_status = end(explode('INTEGER: ', $catv_status));
return $catv_status;
}

// END ----------

// ---------- Get CATVRF Port num () ----------

function GetNumCATVRFPorts($ip, $ro, $iface, $port) {
$catv_rfports = snmp2_get($ip, $ro, "1.3.6.1.4.1.3320.101.10.3.1.15.$iface");
$catv_rfports = end(explode('INTEGER: ', $catv_rfports));
return $catv_rfports;
}

// END ----------

 

2.)  В файл get_ports.php  необходимо добавить после кода 


$port = $port + 1;
}

прямо перед 


?>

следующие строки


echo "<div style=\"white-space: nowrap; float: left; vertical-align: middle; tpo: 50%; position: relative; margin: 0px; padding: 40px; overflow: hidden; display: table-cell; height: 70px; line-height: 30px;\">";
if ($catv_rfports == 0) {
echo "<!--<img src=\"img/tv/tv_no.png\" title=\"ОНУ без ТВ\">-->";
} else if ($catv_status == 1) {
echo "<img src=\"img/tv/tv_up.png\" title=\"TV is ON\">";
} else if ($catv_status == 2) {
echo "<img src=\"img/tv/tv_stop.png\" title=\"TV is OFF\">";
}
echo "</div><br/>";

 

3.) Внутри папки img  создать новую папку tv , и вложить в него три фото состояния ТВ порта. 

tv_no.png  за ОНУ без ТВ

tv_up.png  за TV is ON

tv_stop.png  за TV is OFF  

Залил архив с папкой ТВ с тремя иконками.

 

P.S. Прошу прощения, если в моем русском есть ошибки, я из Болгарии.

tv.zip 25.64 kB · 10 downloads

Отличная работа, однако, чтобы заставить ее работать, нам нужно добавить следующие две строки, чтобы иметь возможность видеть $catv_status и $catv_rfports в get_ports.php 

$catv_status = GetCATVAdminStatus($ip, $ro, $iface, $port);
$catv_rfports = GetNumCATVRFPorts($ip, $ro, $iface, $port);
echo "<div style=\"white-space: nowrap; float: left; vertical-align: middle; tpo: 50%; position: relative; margin: 0px; padding: 40px; overflow: hidden; display: table-cell; height: 70px; line-height: 30px;\">";
if ($catv_rfports == 0) {
echo "<!--<img src=\"img/tv/tv_no.png\" title=\"ОНУ без ТВ\">-->";
} else if ($catv_status == 1) {
echo "<img src=\"img/tv/tv_up.png\" title=\"TV is ON\">";
} else if ($catv_status == 2) {
echo "<img src=\"img/tv/tv_stop.png\" title=\"TV is OFF\">";
}
echo "</div><br/>";

 

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

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

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

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

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

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

Вхід

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

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

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

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

    • Від AlinaQuan
      In the world of fiber optic technology, two terms you might come across are GPON and XGSPON. But what do they mean, and how are they different? Let's dive in and explore these fascinating technologies in simple terms!
       
      What is GPON?
      GPON stands for Gigabit Passive Optical Network. It's a widely used technology for delivering high-speed internet and other services over fiber optic cables. GPON operates by splitting the fiber optic signal into multiple channels, allowing for efficient transmission of data to multiple users simultaneously. It's like having multiple lanes on a highway, ensuring smooth traffic flow even during peak hours.
       
      What is XGSPON?
      XGSPON, on the other hand, stands for 10-Gigabit-capable Passive Optical Network. As the name suggests, XGSPON takes things up a notch by offering even faster speeds than GPON. With XGSPON, data can be transmitted at speeds of up to 10 gigabits per second (Gbps), making it ideal for bandwidth-intensive applications like ultra-high-definition video streaming and virtual reality gaming.
       
      Key Differences:
      Speed: The main difference between GPON and XGSPON is the speed they offer. While GPON typically provides speeds of up to 2.5 Gbps downstream and 1.25 Gbps upstream, XGSPON can deliver speeds of up to 10 Gbps in both directions.
      Bandwidth: With its higher speed capabilities, XGSPON offers greater bandwidth for handling large amounts of data traffic. This makes it well-suited for scenarios where multiple users require ultra-fast internet access simultaneously.
      Compatibility: GPON and XGSPON are not directly compatible with each other. Upgrading from GPON to XGSPON typically requires replacing the optical line terminal (OLT) equipment at the service provider's end, as well as upgrading the customer premises equipment (CPE) such as ONUs or ONTs.
      Conclusion
       
      In summary, GPON and XGSPON are both powerful technologies for delivering high-speed internet over fiber optic networks. While GPON offers impressive speeds suitable for most residential and small business applications, XGSPON takes things to the next level with its blazing-fast speeds and increased bandwidth capacity. Whether you're streaming your favorite shows, gaming online, or running a business, these technologies pave the way for a connected future where speed knows no bounds!

       
      And there you have it – a simple breakdown of the differences between GPON and XGSPON. Keep exploring, keep innovating, and let's continue to ride the wave of fiber optic technology into the future! 🌐✨
       
      Contact Whatsapp / Viber / Wechat +86 18086327779 for more details!
    • Від Inna13
      Наша компанія має стаж роботи понад 15 років. У нас є дві форми оплати з ПДВ та ФОП, гарантія на товар. Найкращі ціни. В наявності і під замовлення. Picotel, Ubiquiti, BDCOM, C-DATA, Picotel, RCI та інші
    • Від Костопашка
      Куплю этажные боксы (аналогичные Депс и Ромсат не предлагать) 

    • Від Maks1m
      Для будівництва мережі в Києві та області потрібні бригади кабельщиків та зварювальників. 
      За додатковою інформацією прохання звертатися в особисті. 
    • Від Inna13
      Продаж великого асортименту телекомунікаційного обладнання. Компанія працює більше 15 років. Опт і роздріб. Ціни з ПДВ і без. Дистрибьютори ТМ "Ютекс". Оптичне обладнання PON (GPON, GEPON, XPON), кабельна продукція, комутатори, маршрутизатори, інструменти для пон мереж, шафи і стійки, власне виробництво PON боксів.

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