- play_arrow Disclaimer
- play_arrow Junos PyEZ Overview
- play_arrow Install Junos PyEZ
- play_arrow Connect to and Retrieve Facts From a Device Using Junos PyEZ
- play_arrow Use Junos PyEZ to Manage Device Operations
- Use Junos PyEZ to Execute RPCs on Junos Devices
- Suppress RpcError Exceptions Raised for Warnings in Junos PyEZ Applications
- Use Junos PyEZ to Halt, Reboot, or Shut Down Junos Devices
- Use Junos PyEZ to Install Software on Junos Devices
- Use Junos PyEZ to Perform File System Operations
- Transfer Files Using Junos PyEZ
- Specify the XML Parser for a Junos PyEZ Session
- play_arrow Use Junos PyEZ to Manage the Configuration
- Use Junos PyEZ to Retrieve a Configuration
- Use Junos PyEZ to Compare the Candidate Configuration and a Previously Committed Configuration
- Use Junos PyEZ to Configure Junos Devices
- Use the Junos PyEZ Config Utility to Configure Junos Devices
- Use Junos PyEZ to Commit the Configuration
- Example: Use Junos PyEZ to Load Configuration Data from a File
- Example: Use Junos PyEZ to Roll Back the Configuration
- Use Junos PyEZ to Manage the Rescue Configuration on Junos Devices
- play_arrow Create and Use Junos PyEZ Tables and Views
- Understanding Junos PyEZ Tables and Views
- Predefined Junos PyEZ Operational Tables (Structured Output)
- Load Inline or External Tables and Views in Junos PyEZ Applications
- Define Junos PyEZ Operational Tables for Parsing Structured Output
- Define Views for Junos PyEZ Operational Tables that Parse Structured Output
- Use Junos PyEZ Operational Tables and Views that Parse Structured Output
- Define Junos PyEZ Operational Tables for Parsing Unstructured Output
- Define Views for Junos PyEZ Operational Tables that Parse Unstructured Output
- Use Junos PyEZ Tables with TextFSM Templates
- Use Junos PyEZ Operational Tables and Views that Parse Unstructured Output
- Define Junos PyEZ Configuration Tables
- Define Views for Junos PyEZ Configuration Tables
- Use Junos PyEZ Configuration Tables to Retrieve Configuration Data
- Overview of Using Junos PyEZ Configuration Tables to Define and Configure Structured Resources
- Use Junos PyEZ Configuration Tables to Configure Structured Resources on Junos Devices
- Save and Load Junos PyEZ Table XML to and from Files
Troubleshoot Junos PyEZ Authentication Errors When Managing Junos Devices
Problem
Description
Junos PyEZ generates an error regarding failed authentication. For example:
unable to connect to dc1a.example.com: ConnectAuthError(dc1a.example.com)
or
jnpr.junos.tty_ssh:SSH Auth Error
Cause
The Junos device or the console server through which the application connects might fail to authenticate the user for the following reasons:
The user does not have an account on the Junos device or on the console server through which the application connects.
The user has an account with a text-based password configured on the Junos device and the console server, if one is used, but the wrong password or no password is supplied for the user when creating the
Device
instance.The user has an account and authenticates using SSH keys with the Junos device or a console server connected to the device, but the SSH keys are inaccessible on either the device or the configuration management server.
If you do not specify a user when creating the Device
instance, the user defaults to $USER
.
Solution
Ensure that the user executing the Junos PyEZ code has a login account on all target Junos
devices or console servers where appropriate and that the SSH public key or
text-based password is configured for the account. If SSH keys are configured,
verify that the user can access them. Also, confirm that the correct parameters are
supplied when creating the Device
instance.