Skip to main content
Solved

NQE Query for OSPF PEERS

  • December 19, 2024
  • 5 replies
  • 116 views

Forum|alt.badge.img+2

Hello!

    We are trying to write a NQE referencing the State File OSPF PEERS, but we cant find anything related to code or the CommandType, or any data really, in the NQE data model.  Can someone please point me in the right direction.

Best answer by Tyson Henrie

OSPF is a new feature.  The output has not been added to NQE as a commandType.  If you want to write NQE queries, you can either wait for the command to be added to NQE in a future release.  Or, you can add it as a custom command and access it as commandText.

  where command.commandText == “show ip ospf neighbors”

 

5 replies

Tyson Henrie
Employee
Forum|alt.badge.img+2
  • Employee
  • Answer
  • December 19, 2024

OSPF is a new feature.  The output has not been added to NQE as a commandType.  If you want to write NQE queries, you can either wait for the command to be added to NQE in a future release.  Or, you can add it as a custom command and access it as commandText.

  where command.commandText == “show ip ospf neighbors”

 


Forum|alt.badge.img+2
  • Author
  • Spotter
  • December 19, 2024

Roger that...appreciate the information!


  • Employee
  • December 19, 2024

you can reference this post that has an example for writing the nqe

 


Forum|alt.badge.img+2
  • Author
  • Spotter
  • December 19, 2024

Thanks Scot.  I saw that upon  initial research and noticed it uses the custom command as well.  We just might have to go that route!


  • Employee
  • December 19, 2024

I added a query to that thread that has Juniper and Cisco, also modified it to run a bit faster, feel free to check it out and give it a test