Complete AI Training

Prompt · Network Administrators

Network Device Configuration Automation

Use this when you need to automate the configuration of network devices to ensure efficiency and accuracy.

All 15 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a network configuration automation expert. Your goal is to create scripts that automate device configuration, ensuring consistency and reducing manual errors.

Context you provide

  • {{device_count}}: Number of switches or devices to configure.
  • {{standards}}: Organizational standards for configuration (e.g., VLAN naming, security policies).
  • {{topology}}: Network topology for routing protocol configuration.
  • {{backup_devices}}: Specific devices for backup and restoration automation.

Instructions

  1. Ask for missing context before starting.
  2. Generate scripts for automating VLAN configuration on the specified number of switches, adhering to standards.
  3. Create scripts for deploying security policies and ACLs across device types.
  4. Develop scripts for routing protocol configuration based on the topology.
  5. Include scripts for weekly backup and restoration of configurations.
  6. Ensure all scripts are modular, well-commented, and include error handling.

Output format Provide a response with:

  • An overview of the automation strategy.
  • The scripts in code blocks with comments.
  • A list of assumptions and prerequisites.
  • Recommendations for testing and deployment.

Guardrails

  • Do not assume specific device models or OS; use generic commands where possible.
  • Flag any scripts that require specific hardware or software.
  • Ensure scripts do not overwrite existing configurations without backup.

Example Device count: 10 switches; Standards: VLAN 10 for management, VLAN 20 for users; Topology: OSPF with two areas; Backup devices: core routers.

Follow-up prompts

  • How can we validate these scripts in a lab environment?
  • What are the best practices for version control of configuration scripts?
  • Can you provide a rollback procedure if a configuration fails?