MCP HubMCP Hub
スキル一覧に戻る

Config Backup

majiayu000
更新日 Yesterday
21 閲覧
58
9
58
GitHubで表示
その他general

について

Config Backupスキルは、ネットワーク機器の設定をグループ、ロール、またはサイトでフィルタリングしてローカルストレージにエクスポートします。ユーザーが機器から設定のバックアップ、保存、またはエクスポートを要求した際に使用します。動作としては、機器の一覧表示、フィルターの適用、`show running-config`の実行、および出力の保存を行います。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/majiayu000/claude-skill-registry
Git クローン代替
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/Config Backup

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Config Backup Skill

Backup network device configurations to local storage with flexible filtering options.

Workflow

  1. List Available Devices: Call list_devices() to view all devices and their group/role/site attributes
  2. Filter Target Devices: Select devices by group, role, or site (e.g., "core role" → R3, R4)
  3. Execute Backup Commands: Run nornir_execute(device, "show running-config") on each device
  4. Save Configurations: Call save_device_config(device, "running", content) to persist backups

Device Classification

View device attributes with list_devices():

DeviceGroupsRoleSite
R1testborderlab
R2testborderlab
R3testcorelab
R4testcorelab
SW1testaccesslab
SW2testaccesslab

Usage Examples

Backup by Group

User: backup group:test running config
Process:
  1. list_devices() → Find devices in "test" group
  2. Execute show running-config on R1, R2, R3, R4, SW1, SW2
  3. save_device_config saves each config to data/exports/

Backup by Role

User: backup role:core all configs
Process:
  1. list_devices() → Find devices with role="core" (R3, R4)
  2. nornir_execute fetches running + startup configs
  3. save_device_config persists both configs

Backup by Site

User: backup site:lab running config
Process:
  1. list_devices() → Find all devices at site="lab"
  2. Batch backup all 6 devices

Single Device Backup

User: backup R1 running config
Process:
  1. nornir_execute("R1", "show running-config")
  2. save_device_config("R1", "running", content)

Backup Types

  • running - Current running configuration (show running-config)
  • startup - Startup configuration (show startup-config)
  • all - Both running and startup configs

Backup Storage

All backups are saved to agent_dir/data/configs/:

agent_dir/data/configs/
├── R1-running-config-20260108-120000.txt
├── R2-running-config-20260108-120000.txt
├── R1-startup-config-20260108-120000.txt
└── ...

Version Control with Git

# Initialize repository (one-time)
cd agent_dir/data
git init
git config user.name "OLAV Backup"

# After backup
git add -A
git commit -m "Backup $(date +%Y%m%d-%H%M%S)"

# View backup history
git log --oneline | head -10

Supported Filters

FilterExampleMatches
Groupgroup:testAll devices in "test" group
Rolerole:coreAll devices with role="core"
Sitesite:labAll devices at site="lab"
Comma-listR1,R2,R3Specific devices
AllallAll available devices

GitHub リポジトリ

majiayu000/claude-skill-registry
パス: skills/config-backup

関連スキル

algorithmic-art

メタ

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

スキルを見る

subagent-driven-development

開発

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

スキルを見る

executing-plans

デザイン

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

スキルを見る

cost-optimization

その他

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

スキルを見る