docs: collect what is known for LANCOM drivers
No code yet and no test device. The README maps LANCOM's four operating systems (LCOS, LCOS SX, LCOS LX, LCOS FX) to planned entry points and napalm-device-types role bases. docs/lcos-sx3.md covers the first target (GS-23xx on LCOS SX 3.34): CLI model, getter-to-command map from the GS-2300 CLI reference, and the open get_config question (TFTP-only export). docs/fixtures.md lists the output to record from a real device. Refs NetOrk/netork#1094
This commit is contained in:
commit
83fba8646d
9 files changed
+488
No files matched your search
@@ -0,0 +1,52 @@
|
||||
# Fixtures to capture
|
||||
|
||||
Record raw output from a real device the first time one is connected. Store it under
|
||||
`tests/fixtures/<model>-<firmware>/` (e.g. `gs-2310p-plus-3.34/`), one file per command,
|
||||
plus a `COMMANDS.txt` that lists the command, the section it ran in, and the device state
|
||||
that matters (links up/down, PoE consumers, LLDP neighbours present or not).
|
||||
|
||||
Scrub before committing: serial numbers, public IPs, SNMP communities, hostnames that
|
||||
identify a site.
|
||||
|
||||
## LCOS SX 3 (GS-23xx)
|
||||
|
||||
Session basics:
|
||||
|
||||
- [ ] login banner and the first prompt after SSH login
|
||||
- [ ] `?` at the top level (list of sections)
|
||||
- [ ] `?` inside each section listed below
|
||||
- [ ] the error text of an invalid command and of an invalid parameter
|
||||
|
||||
Per section:
|
||||
|
||||
- [ ] `system` → `show`
|
||||
- [ ] `firmware` → `show`
|
||||
- [ ] `port` → `show configuration`
|
||||
- [ ] `port` → `show status` (with at least one link up and one down)
|
||||
- [ ] `port` → `show simple-counter`
|
||||
- [ ] `port` → `show detail-counter 1`
|
||||
- [ ] `port` → `show sfp <sfp-port>` (with and without a module)
|
||||
- [ ] `ip` → `show`
|
||||
- [ ] `ipv6` → `show current`
|
||||
- [ ] `fdb` → `show mac-table`
|
||||
- [ ] `fdb` → `show static-mac`
|
||||
- [ ] `lldp` → `show config`
|
||||
- [ ] `lldp` → `show info <port-list>` (with a neighbour, e.g. another switch or a router)
|
||||
- [ ] `vlan` → `show vlan`
|
||||
- [ ] `vlan` → `show port-config`
|
||||
- [ ] `vlan` → `show port-status static`
|
||||
- [ ] `thermal` → `show`
|
||||
- [ ] `snmp` → `show snmp`
|
||||
- [ ] `snmp` → `show community`
|
||||
- [ ] `time` → `show ntp`
|
||||
- [ ] `poe` → `show config` (PoE models only)
|
||||
- [ ] `poe` → `show status` (with a powered device attached)
|
||||
- [ ] `aggregation` → `show`
|
||||
- [ ] `lacp` → `show status`
|
||||
- [ ] `stp` → `show status`
|
||||
- [ ] `syslog` → `show log`
|
||||
|
||||
Configuration:
|
||||
|
||||
- [ ] `config-file` → `export` to a TFTP server once (the XML file itself)
|
||||
- [ ] whether the web UI offers a configuration download, and how (URL, auth)
|
||||
@@ -0,0 +1,19 @@
|
||||
# LCOS FX (Unified Firewalls)
|
||||
|
||||
Not started. No test device.
|
||||
|
||||
## What is known
|
||||
|
||||
- LCOS FX runs on LANCOM's (Rohde & Schwarz) Unified Firewalls.
|
||||
- It has a **REST API**. The device's web client links its Swagger documentation under
|
||||
Help → REST API Documentation. Requests need an auth token from the login endpoint
|
||||
(category "Authentication").
|
||||
- LANCOM's API documentation database publishes the API per firmware version
|
||||
(11.1.1–11.2.1 at the time of writing), including change lists between versions.
|
||||
- This makes LCOS FX the best-documented family: a REST client can be written from the spec
|
||||
without a device. Tests still need recorded responses.
|
||||
- Open: whether a used firewall is usable without an active license. Check before buying.
|
||||
|
||||
## Role
|
||||
|
||||
`FirewallDriver` (NAT/VPN, firewall rules, DHCP server, health metrics, package management).
|
||||
@@ -0,0 +1,16 @@
|
||||
# LCOS LX (Wi-Fi 6 access points)
|
||||
|
||||
Not started. No test device.
|
||||
|
||||
## What is known
|
||||
|
||||
- LCOS LX runs on LANCOM's newer (Wi-Fi 6 and later) access points. Older access points
|
||||
run LCOS instead and are LCOS devices for a driver, see [lcos.md](lcos.md). Which OS a
|
||||
given model runs is in the lifecycle tables (not yet checked per model).
|
||||
- Access over SSH to a CLI that navigates a menu tree, like LCOS.
|
||||
- LANCOM publishes an **LCOS LX Menu Reference** per release (PDFs up to LX 7.10). It
|
||||
documents the tree but not the exact output layout.
|
||||
|
||||
## Role
|
||||
|
||||
`AccessPointDriver` (MAC ACLs, updates, service control, health metrics, interface filter).
|
||||
@@ -0,0 +1,87 @@
|
||||
# LCOS SX 3 (GS-23xx, GS-2426)
|
||||
|
||||
First target of this package.
|
||||
|
||||
## Devices
|
||||
|
||||
From LANCOM's lifecycle tables (checked 2026-10-13):
|
||||
|
||||
| Model | Firmware | End of sale | Last major release | End of life | Successor |
|
||||
|---|---|---|---|---|---|
|
||||
| GS-2310 | LCOS SX 3.34 | 2025-04 | 2027-04 | 2030-04 | GS-2412 |
|
||||
| GS-2310P+ | LCOS SX 3.34 | 2025-04 | 2027-04 | 2030-04 | GS-2412P |
|
||||
| GS-2326 / GS-2326+ / GS-2326P+ | LCOS SX 3.34 | 2025-04 | 2027-04 | 2030-04 | GS-2426(P) |
|
||||
| GS-2426 / GS-2426P | LCOS SX 3.34 | 2025-04 | 2027-04 | 2030-04 | R&S GS-2426(P) |
|
||||
| GS-2310P | LCOS SX 3.34 RU4 | 2017-06 | — | 2022-06 | — |
|
||||
| GS-2352 / GS-2352P | LCOS SX 3.34 SU9 | 2019-09 / 2020-01 | — | 2024-09 / 2025-01 | — |
|
||||
|
||||
So a large installed base will be on SX 3.34 until at least 2030. All models share one CLI;
|
||||
they differ in port count and PoE.
|
||||
|
||||
## Documentation
|
||||
|
||||
The **GS-2300 series CLI Reference** (LANCOM, 2018, 371 pages) documents every command
|
||||
section with syntax, parameters and an example including output. Its examples come from
|
||||
firmware 2.x (e.g. `GS-2326P (standalone) v2.50`). Whether 3.34 prints the same layout is
|
||||
open until real output is captured. Parsers must be written and tested against recorded 3.34
|
||||
output, not against the manual.
|
||||
|
||||
## CLI model
|
||||
|
||||
- Login over SSH (or the serial console, 115200 8N1). Factory default user/password: `admin`/`admin`.
|
||||
- The top-level prompt is `<hostname>#`. Entering a section name (`system`, `port`, `vlan`,
|
||||
`fdb`, …) switches into that section; the prompt shows it in brackets:
|
||||
`<hostname>(vlan)#`.
|
||||
- `show …` runs inside a section. Two-level sections (e.g. `acl` → `ace`, `qos` → `qce`) end
|
||||
the second level with `end`.
|
||||
- `?` or `help` lists the commands available in the current section.
|
||||
|
||||
This is not the Cisco-style CLI that netmiko's `lancom_lcossx4`/`lancom_lcossx5` expect.
|
||||
The driver needs its own transport, either a netmiko class or an exec/shell channel from
|
||||
napalm-device-types, that enters a section, runs `show`, and returns to the top level.
|
||||
|
||||
## Getter map
|
||||
|
||||
Chapter numbers refer to the GS-2300 CLI Reference.
|
||||
|
||||
| Getter | Section → command | Chapter |
|
||||
|---|---|---|
|
||||
| `get_facts` | `system` → `show` (model, description, hostname, uptime, firmware, serial, MAC, management IP) | 52 |
|
||||
| | `firmware` → `show` (active and alternate image) | 20 |
|
||||
| `get_interfaces` | `port` → `show configuration`, `show status [<port-list>]` | 39 |
|
||||
| `get_interfaces_counters` | `port` → `show simple-counter`, `show detail-counter <port>` | 39 |
|
||||
| `get_interfaces_ip` | `ip` → `show` (configured vs. current IPv4, mask, gateway, management VLAN) | 25 |
|
||||
| | `ipv6` → `show current` | 27 |
|
||||
| `get_mac_address_table` | `fdb` → `show mac-table [port <port-list>] [vid <1-4094>]`, `show static-mac` | 19 |
|
||||
| `get_lldp_neighbors`, `get_lldp_neighbors_detail` | `lldp` → `show info <port-list>` | 29 |
|
||||
| `get_vlans` | `vlan` → `show vlan`, `show port-config`, `show port-status static` | 57 |
|
||||
| `get_environment` | `system` → `show` (CPU load 100 ms/1 s/10 s, RAM size) | 52 |
|
||||
| | `thermal` → `show` (chip temperature per port) | 53 |
|
||||
| `get_snmp_information` | `snmp` → `show snmp`, `show community` | 48 |
|
||||
| `get_ntp_servers`, `get_ntp_stats` | `time` → `show ntp` | 54 |
|
||||
| PoE (role method) | `poe` → `show config`, `show status` | 38 |
|
||||
| Link aggregation | `aggregation` → `show`; `lacp` → `show status` | 7, 28 |
|
||||
| Spanning tree | `stp` → `show status` | 50 |
|
||||
| Logs | `syslog` → `show log [<0-7>]` | 51 |
|
||||
| `get_config` | **open**, see below | 11 |
|
||||
|
||||
`get_arp_table` does not apply: the GS-23xx is a layer-2 switch with one management IP.
|
||||
|
||||
## Open questions
|
||||
|
||||
1. **`get_config`.** `config-file` only offers `export <ip-address> [<filename>]` and
|
||||
`import`, which push and pull an XML file to and from a **TFTP server**. There is no
|
||||
`show running-config` in the reference. Options to check on a real device: the web UI's
|
||||
configuration download over HTTPS, an SNMP path, or a short-lived TFTP receiver on the
|
||||
polling side. The TFTP receiver is the least attractive, because it needs an inbound
|
||||
port from the switch to the poller.
|
||||
2. **3.34 vs. 2.x output.** Does 3.34 print the tables the way the manual's 2.x examples do?
|
||||
3. **Shared parsers with SX 4/5.** Probably not, because the CLI style differs. Decide once
|
||||
both are seen.
|
||||
4. **Write operations.** Port enable/disable, VLAN membership and PoE on/off are the
|
||||
candidates for netOrk. Each is one command inside a section followed by `save`. Out of
|
||||
scope until reading works.
|
||||
|
||||
## Fixtures to capture
|
||||
|
||||
See [fixtures.md](fixtures.md).
|
||||
@@ -0,0 +1,26 @@
|
||||
# LCOS (routers, gateways)
|
||||
|
||||
Not started. No test device.
|
||||
|
||||
## What is known
|
||||
|
||||
- LCOS is the OS of LANCOM's routers and VPN gateways (e.g. the 17xx series) and of older
|
||||
access points. It is likely the LANCOM OS most often met in German SMB networks.
|
||||
- Access over SSH (also Telnet) to a CLI that navigates one tree (commands such as `ls`,
|
||||
`cd`, `set`; exact set to be confirmed against the reference manual). The tree has a
|
||||
**Setup** branch (configuration) and a **Status** branch (runtime state).
|
||||
- The **LCOS Menu Reference** documents every node of that tree, per LCOS version. That is
|
||||
enough to find the paths for each getter, e.g. the status tables for interfaces, ARP,
|
||||
DHCP leases, VPN peers and firewall sessions. It does not show the column layout of
|
||||
`ls` output, which needs recorded output.
|
||||
- `readscript` prints the configuration as a script of `set` commands, which fits
|
||||
`get_config`. Oxidized uses `sysinfo` and `readscript`.
|
||||
- No REST API for LCOS was found.
|
||||
- Check that a used device still gets LCOS 10.x before buying. Reportedly the LCOS reset
|
||||
button can be configured to be ignored (not verified), so ask the seller to confirm a
|
||||
factory reset is possible.
|
||||
|
||||
## Role
|
||||
|
||||
`FirewallDriver` for the business routers (NAT/VPN, firewall rules, DHCP server, health
|
||||
metrics), `ResidentialGatewayDriver` if a model is used as a plain internet gateway.
|
||||
@@ -0,0 +1,30 @@
|
||||
# References
|
||||
|
||||
Collected 2026-10-13.
|
||||
|
||||
## LANCOM documentation
|
||||
|
||||
| Family | Document | URL |
|
||||
|---|---|---|
|
||||
| LCOS SX 3 | GS-2300 series CLI Reference (2018) | https://www.lancom-systems.com/download/documentation/CLI-Reference/MA_Switch-CLI-Reference_EN.pdf |
|
||||
| LCOS SX 5 | CLI Reference 5.20 (online) | https://www.lancom-systems.de/docs/LCOS-SX/CLI-Reference/5.20/EN/V5/6_Switching-Commands.html |
|
||||
| LCOS | Reference Manual (10.94) | https://www.lancom-systems.com/docs/LCOS/Refmanual/EN/ |
|
||||
| LCOS | Menu Reference | https://lancom-systems.de/docs/LCOS/Menuref/EN |
|
||||
| LCOS LX | Menu Reference 7.10 | https://ftp.lancom.de/Documentation/LCOS-LX/Menu%20Reference/MA_LCOS-LX-710-Menu-Reference_EN.pdf |
|
||||
| LCOS FX | REST API documentation | https://www.lancom-systems.de/docs/LCOS-FX/Refmanual/EN/topics/UI_WCC_Header_Rest-API.html |
|
||||
| all | API documentation database | https://knowledgebase.lancom-systems.de/x/GgDJE |
|
||||
| LMC | Management Cloud API | https://www.lancom-systems.de/docs/lmc/api/ |
|
||||
| all | Lifecycle product tables | https://rs-nc.rohde-schwarz.com/en/products/firmware/lifecycle-management/product-tables/ |
|
||||
| LCOS SX | Release notes (GS-23xx) | https://ftp.lancom.de/Documentation/Release-Notes/LCOS%20SX/ |
|
||||
|
||||
## Prior art
|
||||
|
||||
| Project | What | URL |
|
||||
|---|---|---|
|
||||
| netmiko | `lancom_lcossx4`, `lancom_lcossx5` SSH classes | https://github.com/ktbyers/netmiko/tree/develop/netmiko/lancom |
|
||||
| Oxidized | LCOS config backup model | https://github.com/ytti/oxidized/blob/master/lib/oxidized/model/lancom.rb |
|
||||
|
||||
## netOrk
|
||||
|
||||
- NetOrk/netork#1094: the originating issue
|
||||
- napalm-device-types (role bases): https://git.netork.io/NAPALM/napalm-device-types
|
||||
Reference in new issue
Block a user