I have seen most of the automation script example is using cisco cdp and less example of using lldp or junos environment. Some of them using pyezy and unfortunately my current juniper environment does not have netconf.
Is there any good lldp script that use python? Some example would be good for starting.
You can mention port 22 to use SSH to connect to the device, but need the juniper modules hence PyEZ is needed on your Automation server/machine. Outputs you get with this will include the tags from "show lldp neighbors | display xml" that you could play around with. I've shared a couple of examples to help here. Please check this out:
Example 1: (basic LLDP info script and output)
####START - Script to get LLDP info from a Juniper device using SSH and Python
from jnpr.junos import Device from lxml import etree
Hi sir. Noted and thank you. My juniper device environmt does not netconf enable the only way for me to access is traditonl ssh access and netmiko. I havent apply pyez module but i was informed it must be netconf enable device to use it. Do I need netconf to be enabled to run the script above?.