Skip to content

Latest commit

 

History

396 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nautobot App Livedata

Nautobot App Livedata logo

CI Status Docs Status PyPI Version PyPI Downloads

An App for Nautobot.

Overview

Lightweight Nautobot plugin that fetches and displays live device and interface command output (via Netmiko) in Nautobot UI detail views.

Compatibility: Nautobot 3.0+.

Primary features:

  • Live Data tabs on Device and Interface detail pages.
  • Configurable per-platform show commands (set at Platform objects).
  • Inline filtering of command output using !! filter syntax (EXACT/LAST/FIRST).
  • Background jobs included for scheduling and housekeeping:
    • LivedataQueryJob — run queries against devices.
    • LivedataCleanupJobResultsJob — remove stale collected results.
    • EnforceDefaultJobQueueJob — align Job queue assignments with a default worker queue.

Screenshots

  • Live Data Interface Output for interfaces

    Livedata output screenshot

  • Live Data Device Output for devices

    Livedata output screenshot

  • Configure the show commands to be executed on Platform level:

    Platform Screenshot

  • Job to clean up old data:

    Cleanup Job Results Screenshot

  • Job to align Nautobot job queues with the default worker so every Job executes on the shared Celery queue.

More screenshots can be found in the Using the App page in the documentation. Here's a quick overview of some of the app's added functionality:

Documentation

Full documentation for this App can be found over on the Nautobot-App-Livedtata Docs website:

Contributing to the Documentation

You can find all the Markdown source for the App documentation under the docs folder in this repository. For simple edits, a Markdown capable editor is sufficient: clone the repository and edit away.

If you need to view the fully-generated documentation site, you can build it with MkDocs. A container hosting the documentation can be started using the invoke commands (details in the Development Environment Guide) on http://localhost:8001. Using this container, as your changes to the documentation are saved, they will be automatically rebuilt and any pages currently being viewed will be reloaded in your browser.

Any PRs with fixes or improvements are very welcome!

Questions

For any questions or comments, please check the FAQ first. Feel free to also swing by the Network to Code Slack (channel #nautobot), sign up here if you don't have an account.

Support for Filter Commands in Live Device Output Using !! Syntax

Filter Syntax

You can now append a filter command to the end of a device command using the !! delimiter. The string following !! specifies the filter operation to be applied to the command output.

Examples

  • show logging | i {{intf_number}} !!EXACT:{{intf_number}}!! — Filters the output to contain only lines that contain the interface number as a whole word (for example, matches Gi1/0/1, 1/0/1 with trailing whitespace, ^1/0/1, or 1/0/1$ but not 11/0/1, 1/0/11, or foo1/0/1bar).
  • show logging !!LAST:100!! — Returns only the last 100 lines of the output.
  • show logging !!FIRST:10!! — Returns only the first 10 lines of the output.
  • show logging !!EXACT:{{intf_number}}!!FIRST:5!! — Filters for lines containing the interface number, then returns only the first 5 matching lines.

Supported Filters

  • !!EXACT:<pattern>!! — Only lines that contain <pattern> as a whole word (ignoring leading/trailing whitespace, not matching substrings within other numbers or words)
  • !!LAST:<N>!! — Only the last N lines
  • !!FIRST:<N>!! — Only the first N lines

Additional filters may be added in the future.

This feature provides a consistent filtering mechanism across all supported platforms, reducing the need for custom scripts or manual output parsing.


About

Nautobot App Livedata is a Nautobot app that provides a live view of the network device data.

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages