Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
Overview You want to save Table data for a number of devices so you can post-process the information at a later time. Solution The Table widget includes a savexml() method for this purpose. The savexml() method allows you to specify a destination file path, and...
Loop Through Devices Using Skeleton-Code You use "skeleton-code" to loop through a list of hostnames using the same username and password. The following skeleton-code defines a list of hosts, devlist , and prompts the you for your username and password. The username is prompted "in...
Create Tables or Views for Complex Use Cases You can create Tables/Views for complex use cases, such as a multi-path route lookup. Let's say you need to find a routing path in your network, for example, do a route lookup. You need to find the route next-hop information, such as...
Overview Basic remote connectivity and fact gathering. Example from pprint import pprint from jnpr.junos import Device dev = Device(host='my host or ipaddr', user='jeremy', password='jeremy123' ) dev.open() pprint( dev.facts ) dev.close() Here is the sample output when...
4 Comments - no search term matches found in comments.
Overview Create the YAML definition for extracting operational data. Description Retrieving operational data allows you to extract useful running-state data from the device. For example, you can configure an interface to be in OSPF. The status of that interface neighbor...
3 Comments - no search term matches found in comments.