Skip to content

PHP web application to query the status of ONUs in Huawei MA5800 OLTs via SNMP. It allows to verify reception/return power, last connection, online/offline status and associated internet plan, integrating with a PostgreSQL database and offering a modern and responsive interface.

License

Notifications You must be signed in to change notification settings

Jeremias0618/OLT-Huawei-MA5800-SNMP-Web-Query-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” OLT Huawei MA5800 SNMP Web Query Tool

A web-based PHP application designed for fiber network technicians to query real-time data from ONUs connected to Huawei MA5800 OLTs using SNMP and PostgreSQL.

πŸš€ Features

  • SNMP queries to Huawei MA5800 OLTs:
    • βœ… Return Power
    • βœ… Reception Power
    • βœ… Last Connection Time
    • βœ… Online/Offline Status
    • βœ… Current Internet Plan
  • Modern and responsive UI (HTML + CSS + Material Icons)
  • PostgreSQL integration for ONU lookup by DNI/RUC
  • Power values color-coded by signal strength
  • Displays SNMP command used for easy copy and reuse

πŸ› οΈ Technologies Used

  • PHP 7+
  • PostgreSQL
  • SNMP (v2c)
  • HTML5 / CSS3 / JavaScript
  • Google Material Icons

βš™οΈ Configuration

  1. Set database credentials in conectarDB() function.
  2. Ensure SNMP is enabled on your server and Huawei OLTs.
  3. snmpget and snmpwalk must be installed and accessible on the server.

πŸ§ͺ Environment Requirements

  • Apache/Nginx web server
  • PHP SNMP extension enabled
  • Management network access to Huawei OLTs
  • SNMP read permission on OLTs (default community: FiberPro2021)

🧰 Usage

  1. Enter client’s DNI or RUC.
  2. Select an SNMP query (e.g., power, status).
  3. View real-time results and copy the SNMP command if needed.

πŸ“Œ Notes

  • OIDs are specific to Huawei MA5800 OLTs.
  • To adapt for other models or ISPs, update the OLT-to-IP mapping and OID list.

πŸ“œ License

This project is licensed under the MIT License.

About

PHP web application to query the status of ONUs in Huawei MA5800 OLTs via SNMP. It allows to verify reception/return power, last connection, online/offline status and associated internet plan, integrating with a PostgreSQL database and offering a modern and responsive interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages