The GS-3152X runs LCOS SX 4.30 (end of life 2028-08). netmiko already has a transport for it, show running-config exists (SX 3 can only export its config to TFTP), and its Cisco-like CLI is closer to the current SX 5 switches. docs/lcos-sx4.md maps the getters to commands from the SX 4.30 CLI reference; fixtures.md gets the matching capture list. Refs NetOrk/netork#1094
3.1 KiB
3.1 KiB
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→showfirmware→showport→show configurationport→show status(with at least one link up and one down)port→show simple-counterport→show detail-counter 1port→show sfp <sfp-port>(with and without a module)ip→showipv6→show currentfdb→show mac-tablefdb→show static-maclldp→show configlldp→show info <port-list>(with a neighbour, e.g. another switch or a router)vlan→show vlanvlan→show port-configvlan→show port-status staticthermal→showsnmp→show snmpsnmp→show communitytime→show ntppoe→show config(PoE models only)poe→show status(with a powered device attached)aggregation→showlacp→show statusstp→show statussyslog→show log
Configuration:
config-file→exportto a TFTP server once (the XML file itself)- whether the web UI offers a configuration download, and how (URL, auth)
LCOS SX 4 (GS-3xxx)
Session basics:
- login banner and the first prompt after SSH login
show ?(list of show commands on this firmware)- the error text of an invalid command
Commands:
show versionshow system cpu statusshow interface * statusshow interface * descriptionshow interface * capabilitiesshow interface * statisticsshow interface * switchportshow interface * transceiver(with and without an SFP+ module)show interface vlanshow ip interface briefshow ipv6 interface briefshow ip arpshow ip routeshow mac address-tableshow lldp neighbors(with a neighbour)show vlanshow process loadshow thermal-protectshow green-ethernet fanshow snmpshow snmp communityshow ntp statusshow usersshow ip dhcp server binding,show ip dhcp pool(if the DHCP server is used)show poe,show poe interface(PoE models only)show aggregation,show lacpshow spanning-treeshow loggingshow licensesshow running-configshow running-config all-defaults