Supports the following ONT models
- FiberHome HG6245D (Globe Telecom Philippines firmware)
ONT_MODEL: hg6245d_globe
- FiberHome AN5506_04F1A (Globe Telecom Philippines firmware) and other generic FH ONT with generic firmware
ONT_MODEL: an5506_stock
- ZTE F670
ONT_MODEL: zte_f670
- ZTE F660
ONT_MODEL: zte_f670
ONT_WEB_HOST
- IP address of ONT
- Default: depends on modem
ONT_WEB_PORT
- Port on which ONT Web UI is listening to
- Default: depends on modem
ONT_WEB_PROTOCOL
- Web protocol which the ONT web gui uses, typically set as
http
orhttps
- Default:
http
- Web protocol which the ONT web gui uses, typically set as
ONT_WEB_USER
- ONT Web UI username
- Default: depends on modem
ONT_WEB_PASS
- ONT Web UI password
- Default: depends on modem
ONT_TELNET_PORT
- ONT Web UI password
- Default:
23
LISTEN_PORT
- Port on which the exporter listens to
- Default:
8092
LISTEN_IP
- Ip address on which the exporter listens to
- Default:
0.0.0.0
Docker Pull
docker pull vincejv/gpon-parser:latest
Docker Run
docker run -d \
--name gpon-parser \
--restart unless-stopped \
vincejv/gpon-parser:latest
Docker Compose
version: '3'
services:
gpon-parser:
image: vincejv/gpon-parser:latest
container_name: gpon-parser
restart: unless-stopped
environment:
ONT_MODEL: "zte_f670"
/gpon/allInfo
{
"deviceStats": {
"memoryUsage": 54.885117384596136,
"cpuUsage": 1.31,
"cpuDtlUsage": [
0.1,
2.52
],
"deviceModel": "F660",
"modelSerial": "FHTTXXXXXX",
"softwareVersion": "V1.1.20P3N6B",
"uptime": 86673
},
"opticalStats": {
"rxPower": -26.5757,
"txPower": 2.7781,
"temperature": 44,
"supplyVoltage": 3.229,
"biasCurrent": 13.5
}
}
/gpon/deviceInfo
{
"memoryUsage": 54.880947416704885,
"cpuUsage": 2.4749999999999996,
"cpuDtlUsage": [
0.1,
4.85
],
"deviceModel": "F660",
"modelSerial": "FHTTXXXXXX",
"softwareVersion": "V1.1.20P3N6B",
"uptime": 86748
}
/gpon/opticalInfo
{
"rxPower": -26.5757,
"txPower": 2.7781,
"temperature": 44,
"supplyVoltage": 3.229,
"biasCurrent": 13.55
}
go build -ldflags "-s -w"
go run .
$env:GOARCH='arm'
$env:GOOS='linux'
export GOARCH='arm'
export GOOS='linux'