Skip to content

Instantly share code, notes, and snippets.

@fjaeckel
Last active July 2, 2018 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjaeckel/6611605610ef85952132faa284925d11 to your computer and use it in GitHub Desktop.
Save fjaeckel/6611605610ef85952132faa284925d11 to your computer and use it in GitHub Desktop.

WORKING JUNIPER EX2200

> show lldp neighbors interface ge-0/0/0 | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.3R12/junos">
    <rpc>
        <get-lldp-interface-neighbors-information>
                <interface-name>ge-0/0/0.0</interface-name>
        </get-lldp-interface-neighbors-information>
         </rpc>
        <cli>
            <banner>{master:0}</banner>
        </cli>
    </rpc-reply>

> show lldp neighbors | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.3R12/junos">
    <rpc>
        <get-lldp-neighbors-information>
        </get-lldp-neighbors-information>
    </rpc>
    <cli>
        <banner>{master:0}</banner>
    </cli>
</rpc-reply>

WORKING JUNIPER MX

> show lldp neighbors | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/15.1F6/junos">
    <rpc>
        <get-lldp-neighbors-information>
        </get-lldp-neighbors-information>
    </rpc>
    <cli>
        <banner>{master}</banner>
    </cli>
</rpc-reply>

{master}
> show lldp neighbors interface xe-0/0/0 | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/15.1F6/junos">
    <rpc>
        <get-lldp-interface-neighbors>
                <interface-device>xe-0/0/0</interface-device>
        </get-lldp-interface-neighbors>
    </rpc>
    <cli>
        <banner>{master}</banner>
    </cli>
</rpc-reply>

{master}

NOT WORKING JUNIPER EX4300

> show lldp neighbors | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/14.1X53/junos">
    <rpc>
        <get-lldp-neighbors-information>
        </get-lldp-neighbors-information>
    </rpc>
    <cli>
        <banner>{master:0}</banner>
    </cli>
</rpc-reply>

> show lldp neighbors interface xe-0/2/0 | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/14.1X53/junos">
    <rpc>
        <get-lldp-interface-neighbors>
                <interface-device>xe-0/2/0</interface-device>
        </get-lldp-interface-neighbors>
    </rpc>
    <cli>
        <banner>{master:0}</banner>
    </cli>
</rpc-reply>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment