The first steps should all be quite familiar by now. Connect to the JUNOS device, authenticate, and make a remote procedure call. Let's take a look at an example response to the RPC, and the parts of the message that we're interested in.
<isis-database-information xmlns="http://xml.juniper.net/JUNOS/14.1R6/JUNOS-routing" JUNOS:style="detail"> <isis-database> <level>1</level> </isis-database> <isis-database> <level>2</level> <isis-database-entry> <lsp-id>lon-lab-access-4.00-00</lsp-id> <sequence-number>0x1002</sequence-number> <checksum>0x6e7</checksum> <remaining-lifetime>26185</remaining-lifetime> <isis-neighbor> <isis-topology-id>IPV4 Unicast</isis-topology-id> <is-neighbor-id>lon-lab-access-4.01</is-neighbor- id> <metric>1000</metric> ...