rConfig CLI Diagnostic Tools
Using rConfig CLI Diagnostic Tools
Section titled “Using rConfig CLI Diagnostic Tools”rConfig provides command-line tools for detailed device connectivity troubleshooting. These tools produce verbose output showing exact protocol interactions, timing, and where failures occur.
When to use this
Section titled “When to use this”Use the CLI diagnostic tool when a device backup fails and you need to see exactly what rConfig sends to the device and what comes back. It is the fastest way to diagnose authentication failures, prompt detection problems, and protocol errors without waiting for a scheduled backup job to retry.
Prerequisites
Section titled “Prerequisites”- Shell access to the rConfig server (SSH or console)
- The device ID of the device to test (found in the Devices list or the device detail page URL)
- Working directory of the rConfig installation:
/var/www/html/rconfig8/current
Running the Debug Command
Section titled “Running the Debug Command”The primary diagnostic tool is the artisan rconfig:download-device command with the debug flag:
cd /var/www/html/rconfig8/currentphp artisan rconfig:download-device <device_id> -dDebug a single device (ID 1001):
cd /var/www/html/rconfig8/currentphp artisan rconfig:download-device 1001 -dDebug multiple devices:
php artisan rconfig:download-device 1001 1002 1003 -dRun without verbose output (no -d flag, for a silent production-mode test):
php artisan rconfig:download-device 1001Finding the Device ID
Section titled “Finding the Device ID”From the Devices list: The device ID appears in the leftmost column of the devices table.
From the device detail page: The ID appears in the page header. Click the Copy Debug Command icon to copy the complete debug command to your clipboard.
From the URL: The ID is the number at the end of the URL when viewing a device detail page:
https://rconfig.company.com/devices/1001 ^^^^ Device IDInterpreting Debug Output
Section titled “Interpreting Debug Output”Debug output shows the full protocol conversation in sequence.
SSH session:
Connecting to device...Authentication successfulDetecting prompt...Prompt detected: Router#Sending command: show running-config[command output appears here line by line]Prompt detected: Router#Command completeConfiguration saved to: /path/to/config/fileTelnet session:
Connecting to device...Username: adminPassword: ********Login successfulDetecting prompt...Prompt detected: Router>Sending command: enableEnable Password: ********Prompt detected: Router#Sending command: show running-config[command output appears here]Prompt detected: Router#Key Patterns to Recognise
Section titled “Key Patterns to Recognise”Timeout (prompt never detected):
Detecting prompt...[60 second pause]Error: Timeout waiting for promptIndicates the prompt configuration is incorrect or the device is not displaying the expected prompt. See Device Prompt Troubleshooting.
False prompt match (output truncated):
Sending command: show running-config#config-version=...Prompt detected: #Command completerConfig matched # inside command output instead of waiting for the real prompt. The configuration is truncated. Fix by making the prompt more specific.
Authentication failure:
Connecting to device...Username: adminPassword: ********Error: Authentication failedPermission deniedIncorrect username, wrong password, or the account is disabled on the device. See Authentication Verification.
Hung connection (no timeout, no output):
Connecting to device...Authentication successfulDetecting prompt...[indefinite hang with no output]The device is waiting for input rConfig cannot provide: an initial configuration wizard, a banner requiring a keypress, or a privilege escalation prompt without credentials configured.
Saving Debug Output
Section titled “Saving Debug Output”Redirect output to a file for detailed analysis or to share with support:
php artisan rconfig:download-device 1001 -d > /tmp/device-1001-debug.txt 2>&1What’s next
Section titled “What’s next”- Live Debug Console - Stream the same debug output in the browser without shell access
- Device Prompt Troubleshooting - Fix prompt configuration if debug output shows a timeout or false prompt detection
- Advanced Troubleshooting Techniques - Diagnose timeout, stalled connection, and vendor-specific issues