VIRL Server Config Validation

    Summary

    This script is meant to assist with troubleshooting of a VIRL server after initial deployment or when system settings did not apply as expected. The script will collect a summary of the VIRL 'ini' file, network interfaces and their configuration, hostname and hosts file, as well as test connectivity to internet and  Cisco license servers. All of the information is gathered into a single file and placed in the 'VIRL' user's home directory. You can then use this file in your support request to provide important basic information about your server.

     

    Change log:

    • added spinner
    • reduced lines of code
    • added check for root user (do not run using sudo)
    • reduced overall run time

     

    Creating and Using the Script

    Method 1

    1. Download script
    2. Open script using a text editor like Notepad or TextEdit
    3. Connect to VIRL PE via SSH and log in
          Username: virl
          Password:  VIRL
    4. Create a blank file named srv_validate.sh using the following commands:
        vim srv_validate.sh
          Press the letter  i to Insert text
          Paste entire contents of the script into the new file
          Press  esc  key to close edit mode
          Type  :  followed by the letter  x  to save and close the file
    5. Make script executable
        chmod u+x srv_validate.sh
    6. Run script
        ./srv_validate.sh
    7. Output file will be placed in home directory of the user  virl
    8. Collect file and attach to support post

    Method 2

    (Internet access required)

    1. Log into the VIRL PE server via SSH
    2. Right click on the srv_validate.sh link below
    3. Select and click Copy Link Address from context menu
    4. In console window enter the following command:
          wget <paste_link-address >
    5. Make script executable
        chmod u+x srv_validate.sh
    6. Run script
        ./srv_validate.sh
    7. Output file will be placed in the home directory of the user  virl
    8. Collect file and attach to support post

     

    **Take a look at Other Logs section in How to: Collect Logs For VIRL Troubleshooting for other ways to add scripts to your VIRL server.

     

    Attaching Files to a Post

    If you need to attach a file to a post, make sure to click on the Use Adavanced Editor located at the top right of the Quick Reply window.

     

    Screen Shot 2017-01-03 at 5.21.51 PM.png

     

    Collecting Additional Logs

    If you need assistance with moving the file from your VIRL server to your local machine, take a look at How to: Collect Logs For VIRL Troubleshooting under the section Other Logs.