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
88 lines
4.5 KiB
Markdown
88 lines
4.5 KiB
Markdown
# 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).
|