Skip to content

[Bug]: Junos SRX5600 as devtype=junos-es #991

@racsoce

Description

@racsoce

Suzieq version

0.24.0

Install Type

container

Python version

3.9

Impacted component

sq-poller

Steps to Reproduce

Trying to add a Junos Firewall SRX5600 (JUNOS 15.1X49-D50.3 built 2016-05-28) is detected as "devtype=junos-es" and fails to parse:

suzieq@af00969a6adb:~$ sq-poller -I inventory_srx.yml
2025-07-23 14:56:56,752 - suzieq.poller.controller - WARNING - log level WARNING

2025-07-23 14:56:56,758 - suzieq.poller.controller - INFO -
SuzieQ Poller Controller v0.24.0
Python version: 3.9.21 (main, Apr 8 2025, 01:36:54)
[GCC 10.2.1 20210110]
Platform: Linux-3.10.0-1160.119.1.el7.tuxcare.els18.x86_64-x86_64-with-glibc2.31
CPU: Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz 8 cores - freq. 0.00Mhz - 0.00Mhz
CPU load 1m, 5m, 15m: 4.1%, 3.0%, 2.4%
Memory: total: 16555405312, available: 8983212032
-----------------------------------------------------
2025-07-23 14:56:56,758 - suzieq.poller.controller - WARNING - Minimum recommended system spec is a modern i7-equivalent or higher with 4 cores and 16 GB RAM
[COALESCER]: ERROR: Another coalescer process present
2025-07-23 14:56:58,051 - suzieq.poller.worker.coalescer_launcher - WARNING - There is a running coalescer instance, let's try again later
[WORKER 0]: 2025-07-23 14:56:58,303 - suzieq.poller.worker - WARNING - log level WARNING
[WORKER 0]: 2025-07-23 14:56:58,303 - suzieq.poller.worker - INFO -
[WORKER 0]:
[WORKER 0]: SuzieQ Poller Worker v0.24.0
[WORKER 0]: Python version: 3.9.21 (main, Apr 8 2025, 01:36:54)
[WORKER 0]: [GCC 10.2.1 20210110]
[WORKER 0]:
[WORKER 0]: 2025-07-23 14:56:58,997 - suzieq.poller.worker.nodes.node - WARNING - Detected junos-es for 10.76.7.13:22, iad1-lab-srx5k-01
[WORKER 0]: 2025-07-23 14:56:59,989 - suzieq.poller.worker.services.service - ERROR - Received non-JSON output where JSON was expected for show evpn l3-context extensive
[WORKER 0]: error: syntax error, expecting : l3-context
[WORKER 0]:
[WORKER 0]: 2025-07-23 14:57:00,634 - suzieq.poller.worker.services.service - ERROR - Received non-JSON output where JSON was expected for show lldp neighbors
[WORKER 0]: error: syntax error, expecting : lldp
[WORKER 0]:
[WORKER 0]: 2025-07-23 14:57:00,772 - suzieq.poller.worker.services.service - ERROR - Received non-JSON output where JSON was expected for show evpn ip-prefix-database
[WORKER 0]: error: syntax error, expecting : ip-prefix-database
[WORKER 0]:
[WORKER 0]: 2025-07-23 14:57:00,894 - suzieq.poller.worker.services.service - ERROR - Processing data failed for service interfaces on node iad1-lab-srx5k-01
[WORKER 0]: Traceback (most recent call last):
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 852, in run
[WORKER 0]: result = self.process_data(output)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 477, in process_data
[WORKER 0]: return self.clean_data(result, data)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 536, in clean_data
[WORKER 0]: processed_data = dev_clean_fn(processed_data, raw_data)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/interfaces.py", line 300, in _clean_junos_data
[WORKER 0]: entry['type'] = entry.get('type', '').lower()
[WORKER 0]: AttributeError: 'list' object has no attribute 'lower'
[WORKER 0]: 2025-07-23 14:57:01,757 - suzieq.poller.worker.services.service - ERROR - Processing data failed for service arpnd on node iad1-lab-srx5k-01
[WORKER 0]: Traceback (most recent call last):
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 852, in run
[WORKER 0]: result = self.process_data(output)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 477, in process_data
[WORKER 0]: return self.clean_data(result, data)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 536, in clean_data
[WORKER 0]: processed_data = dev_clean_fn(processed_data, raw_data)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/arpnd.py", line 50, in _clean_junos_data
[WORKER 0]: if '[vtep.' in entry['oif']:
[WORKER 0]: TypeError: argument of type 'NoneType' is not iterable
[WORKER 0]: 2025-07-23 14:57:01,856 - suzieq.poller.worker.services.service - ERROR - Processing data failed for service device on node iad1-lab-srx5k-01
[WORKER 0]: Traceback (most recent call last):
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 852, in run
[WORKER 0]: result = self.process_data(output)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 477, in process_data
[WORKER 0]: return self.clean_data(result, data)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 536, in clean_data
[WORKER 0]: processed_data = dev_clean_fn(processed_data, raw_data)
[WORKER 0]: File "/usr/local/lib/python3.9/site-packages/suzieq/poller/worker/services/device.py", line 132, in _clean_junos_data
[WORKER 0]: entry['bootupTimestamp'], ms=False)
[WORKER 0]: KeyError: 'bootupTimestamp'

Expected Behavior

Parse 'bootupTimestamp' properly; the issue is more likely that this is not expected 'multi-routing-engine-results'.

Observed Behavior

{primary:node0}
lab@iad1-lab-srx5k-01> show system uptime | display json
{
"multi-routing-engine-results" : [
{
"multi-routing-engine-item" : [
{
"re-name" : [
{
"data" : "node0"
}
],
"system-uptime-information" : [
{
"attributes" : {"xmlns" : "http://xml.juniper.net/junos/15.1X49/junos"},
"current-time" : [
{
"date-time" : [
{
"data" : "2025-07-23 14:59:34 UTC",
"attributes" : {"junos:seconds" : "1753282774"}
}
]
}
],
"time-source" : [
{
"data" : " NTP CLOCK "
}
],
"system-booted-time" : [
{
"date-time" : [
{
"data" : "2025-07-08 20:05:32 UTC",
"attributes" : {"junos:seconds" : "1752005132"}
}
],
"time-length" : [
{
"data" : "2w0d 18:54",
"attributes" : {"junos:seconds" : "1277642"}
}
]
}
],
"protocols-started-time" : [
{
"date-time" : [
{
"data" : "2025-07-08 20:05:33 UTC",
"attributes" : {"junos:seconds" : "1752005133"}
}
],
"time-length" : [
{
"data" : "2w0d 18:54",
"attributes" : {"junos:seconds" : "1277641"}
}
]
}
],
"last-configured-time" : [
{
"date-time" : [
{
"data" : "2025-07-15 17:13:34 UTC",
"attributes" : {"junos:seconds" : "1752599614"}
}
],
"time-length" : [
{
"data" : "1w0d 21:46",
"attributes" : {"junos:seconds" : "683160"}
}
],
"user" : [
{
"data" : "lab"
}
]
}
],
"uptime-information" : [
{
"date-time" : [
{
"data" : "2:59PM",
"attributes" : {"junos:seconds" : "1753282774"}
}
],
"up-time" : [
{
"data" : "14 days, 18:54",
"attributes" : {"junos:seconds" : "1277672"}
}
],
"active-user-count" : [
{
"data" : "1",
"attributes" : {"junos:format" : "1 user"}
}
],
"load-average-1" : [
{
"data" : "0.22"
}
],
"load-average-5" : [
{
"data" : "0.05"
}
],
"load-average-15" : [
{
"data" : "0.02"
}
]
}
]
}
]
},
{
"re-name" : [
{
"data" : "node1"
}
],
"system-uptime-information" : [
{
"attributes" : {"xmlns" : "http://xml.juniper.net/junos/15.1X49/junos"},
"current-time" : [
{
"date-time" : [
{
"data" : "2025-07-23 14:59:34 UTC",
"attributes" : {"junos:seconds" : "1753282774"}
}
]
}
],
"time-source" : [
{
"data" : " NTP CLOCK "
}
],
"system-booted-time" : [
{
"date-time" : [
{
"data" : "2025-07-08 20:05:53 UTC",
"attributes" : {"junos:seconds" : "1752005153"}
}
],
"time-length" : [
{
"data" : "2w0d 18:53",
"attributes" : {"junos:seconds" : "1277621"}
}
]
}
],
"last-configured-time" : [
{
"date-time" : [
{
"data" : "2025-07-15 17:13:34 UTC",
"attributes" : {"junos:seconds" : "1752599614"}
}
],
"time-length" : [
{
"data" : "1w0d 21:46",
"attributes" : {"junos:seconds" : "683160"}
}
],
"user" : [
{
"data" : "lab"
}
]
}
],
"uptime-information" : [
{
"date-time" : [
{
"data" : "2:59PM",
"attributes" : {"junos:seconds" : "1753282774"}
}
],
"up-time" : [
{
"data" : "14 days, 18:54",
"attributes" : {"junos:seconds" : "1277651"}
}
],
"active-user-count" : [
{
"data" : "0",
"attributes" : {"junos:format" : "0 users"}
}
],
"load-average-1" : [
{
"data" : "0.03"
}
],
"load-average-5" : [
{
"data" : "0.03"
}
],
"load-average-15" : [
{
"data" : "0.00"
}
]
}
]
}
]
}
]
}
]
}

{primary:node0}
lab@iad1-lab-srx5k-01>

Screenshots

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions