Cisco Ios Switch
@dougschaefer/cisco-ios-switchv2026.05.22.1
01README
Manage a Cisco IOS switch (e.g. Catalyst 2960) over SSH after console bootstrap — capture running-config and device facts, run verification commands, and push idempotent baselines: secure-access hardening, SNMPv2c, and Layer-3/VLAN/access-port config. Shells out to OpenSSH; vault-resolved credentials; live reachability pre-flight check.
02Models
@dougschaefer/cisco-ios-switchv2026.05.22.1cisco-ios-switch/switch.ts
fn getRunningConfig(redactSecrets: boolean)
Capture 'show running-config' and 'show version'; store the config file and parsed device facts. Read-only.
| Argument | Type | Description |
|---|---|---|
| redactSecrets | boolean | Strip community strings, secrets, and password lines before storing the config file. |
fn runCommands(commands: array)
Run arbitrary EXEC/show commands and capture their output. Use for verification (e.g. 'show ip ssh', 'show ip route').
| Argument | Type | Description |
|---|---|---|
| commands | array | EXEC/show commands to run |
fn applyBaseline(dryRun: boolean)
Assert idempotent secure-access hardening: hostname/domain, service password-encryption, HTTP off, console + VTY login/timeout, SSH-only transport. Saves to startup.
| Argument | Type | Description |
|---|---|---|
| dryRun | boolean |
fn pushSnmp(dryRun: boolean)
Configure SNMPv2c read-only/read-write communities, location, contact, and optional trap host from globalArguments.snmp. Saves to startup.
| Argument | Type | Description |
|---|---|---|
| dryRun | boolean |
fn pushRouting(dryRun: boolean)
Apply Layer-3 intent from globalArguments.routing: ip routing, VLANs/SVIs, default route, and access-port assignments. Saves to startup.
| Argument | Type | Description |
|---|---|---|
| dryRun | boolean |
Resources
status(7d)— Parsed device facts: hostname, model, IOS version, uptime
commandResult(7d)— Captured output of ad-hoc EXEC/show commands
pushResult(30d)— Result of a configuration push: the applied IOS lines and whether it saved
Files
runningConfig(text/plain)— Captured running-config (secrets redacted unless redactSecrets=false)
03Previous Versions
2026.05.20.1May 20, 2026
04Stats
A
100 / 100
Downloads
0
Archive size
20.5 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 repository2/2earned
05Platforms
06Labels