Cisco Ios Switch
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.
_ssh.ts: don't close ssh stdin before reading — premature EOF under forced PTY (ssh -tt) truncated getRunningConfig/runCommands to empty. Community PR #1 by @randybias.
| Argument | Type | Description |
|---|---|---|
| redactSecrets | boolean | Strip community strings, secrets, and password lines before storing the config file. |
| Argument | Type | Description |
|---|---|---|
| commands | array | EXEC/show commands to run |
| Argument | Type | Description |
|---|---|---|
| dryRun | boolean |
| Argument | Type | Description |
|---|---|---|
| dryRun | boolean |
| Argument | Type | Description |
|---|---|---|
| dryRun | boolean |
Resources
Files
Document the intentional SSH host-key-verification tradeoff (trusted management network, post-bootstrap re-imaging).
Docs: genericized example values (hostnames, domain, NOC email, vault names) in README/tests. No functional change.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License1/2partial
no SPDX license declared
- Verified public repository2/2earned