Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Mar 17, 2024
1 parent ccf18ed commit b2ed495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
username = "fill me in!"
password = "fill me in!"
device_type = "fill me in!"
hosts = ["x.x.x.x", "y.y.y.y"]
command_to_run = "show int brief"
hosts = ["x.x.x.x", "y.y.y.y", "z.z.z.z"]
command_to_run = "show lldp neighbors"

for host in hosts:
# Create a variable that represents an SSH connection to our router.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
# pip install --user netmiko
import json
from netmiko import Netmiko
from pprint import pprint

username = "fill me in!"
password = "fill me in!"
device_type = "fill me in!"
hosts = ["x.x.x.x", "y.y.y.y"]
command_to_run = "show int brief"
command_to_run = "show lldp neighbors"

for host in hosts:
# Create a variable that represents an SSH connection to our router.
Expand Down

0 comments on commit b2ed495

Please sign in to comment.