Skip to main content

Netgear M4250

@dougschaefer/netgear-m4250v2026.05.27.1· 3d agoMODELS
01README

Manage a NETGEAR M4250 (AV Line) managed switch over its SSH CLI — capture running-config and device facts, and run verification show-commands (VLANs, ports, PoE, MAC table, LLDP, IGMP snooping). Prompt-paced I/O for the M4250's interactive shell, vault-resolved credentials, shells out to OpenSSH.

02Models1
@dougschaefer/netgear-m4250v2026.05.27.1netgear-m4250/switch.ts
fn getRunningConfig(redactSecrets: boolean)
Capture 'show version' and 'show running-config'; store the config file and parsed device facts. Read-only.
ArgumentTypeDescription
redactSecretsbooleanStrip community strings and password lines before storing the config file.
fn runCommands(commands: array)
Run arbitrary show/EXEC commands and capture their output. Use for verification, e.g. 'show vlan', 'show mac-addr-table', 'show lldp remote-device all', 'show igmpsnooping'.
ArgumentTypeDescription
commandsarrayshow/EXEC commands to run (privileged mode)
fn applyIgmpQuerier(vlanId: number, address?: string, dryRun: boolean)
Enable an IGMP-snooping querier on a VLAN (optionally with a source address) so multicast is pruned to subscribed ports instead of flooded. Defaults to dryRun — pass dryRun=false to apply and save.
ArgumentTypeDescription
vlanIdnumberVLAN to run the querier on
address?stringOptional IGMP querier source IP address
dryRunbooleanRender the CLI lines without connecting (default true)
fn applyMulticastContainment(port: string, aclName: string, direction: enum, dryRun: boolean)
Bind a multicast-containment IP ACL to a port: permit link-local control (224.0.0.0/24) and unicast, deny the rest of 224.0.0.0/4 (the AV streams). Apply on the port facing the AV switch. Defaults to dryRun — pass dryRun=false to apply and save.
ArgumentTypeDescription
portstringInterface to bind the ACL to, e.g. 0/1
aclNamestringACL name
directionenumACL direction on the port
dryRunbooleanRender the CLI lines without connecting (default true)

Resources

status(7d)— Parsed device facts: model, firmware, bootcode, serial
commandResult(7d)— Captured output of ad-hoc show/EXEC commands
pushResult(30d)— Result of a configuration push: the applied CLI lines and whether it saved

Files

runningConfig(text/plain)— Captured running-config (secrets redacted unless redactSecrets=false)
03Stats
B
85 / 100
Downloads
0
Archive size
20.8 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository0/2missing
04Platforms
05Labels