Collecting Configuration Files for DCI

This section describes the procedures for capturing the devices files to be imported with DCI.

Note: If there is no space between the device prompt and the show command, DCI only recognizes ">" or "#" prompts, that is, if the prompt is anything else, the command will not be read properly by DCI during import. However, if there are one or more spaces prior to the show command, DCI ignores the prompt and reads the output as expected.

Procedure 1: Creating Configuration Files for Cisco Devices (excluding Catalyst Switches)

  1. Log in to the device for which you want to create a configuration file.

  2. Enter the following command at the login prompt to disable pauses for page breaks in output: terminal length 0.

    The command will not pause after a given number of lines or include "--more--" in the show command output.

  3. Create a new text file in any text editor. Make sure that text wrapping is not enabled.

  4. Enter the following command at the prompt (and your password, if applicable): enable

    The command prompt changes to a number sign (#).

  5. Enter the following command at the prompt: show running-config

  6. Paste the output of the command in step 5. to the text file.

    Pasting the output of show running-config into a text file

  7. Repeat step 5. and step 6. for any additional required or optional commands. Refer to Table 2 in "Importing Topologies" for more information.

    You should now have a text file that consists of the output of all commands. Make sure that the output from the show running-config command appears before the output of any other commands.

  8. Save the text file. This is the configuration file that DCI needs to import information about the router.

  9. Log out of the router.

Procedure 2: Creating Configuration Files for Cisco Catalyst Switches (Running CatOS)

  1. Log in to the switch for which you want to create a configuration file.

  2. Enter the following command at the login prompt to disable pauses for page breaks in output: set length 0.

    The command will not pause after a given number of line or include "--more--" in the show command output.

  3. Create a new text file in any text editor. Make sure that text wrapping is not enabled.

  4. Enter the following command at the prompt (and your password, if applicable): enable

    "(enable)" appears in the command prompt.

  5. Enter the following command at the prompt: show config all

  6. Paste the output of the command in step 5. to the text file.

    Figure 1: Creating a Configuration File for a Cisco Switch

    Creating a Configuration File for a Cisco Switch

  7. Repeat step 5. and step 6. for any additional required or optional commands. Refer to Table 2 in "Importing Topologies" for more information.

    You should now have a text file that consists of the output of all commands. Make sure that the output from the show config all command appears before the output of any other commands.

  8. Save the text file. This is the configuration file that DCI needs to import information about the router.

  9. Log out of the switch.

Procedure 3: Creating Configuration Files for Juniper Routers

  1. Log in to the router for which you want to create a configuration file.

  2. Create a new text file in any text editor. Make sure that text wrapping is not enabled.

  3. Enter the following command at the prompt: show configuration

  4. Paste the output of the command in step 3. to the text file.

    Figure 2: Creating a Configuration File for a Juniper Router

    Creating a Configuration File for a Juniper Router

  5. (Recommended) Enter the following command at the prompt: show version

  6. Paste the output of the command in step 5. to the text file.

    Note: See Table 2 in "Importing Topologies" for other optional commands you can use.

  7. Save the text file. This is the configuration file that DCI needs to import information about the router.

  8. Log out of the router.