Scripts Run History #3729

Closed
opened 2025-12-29 18:30:48 +01:00 by adam · 2 comments
Owner

Originally created by @jmanteau on GitHub (May 25, 2020).

Environment

  • Python version: 3.7.7
  • NetBox version: 2.84

Proposed Functionality

Add a history functionnality on scripts, logging the log outputs of previous runs.
I would add a new tab "Previous Runs" under each scripts view. This tab will be a table with a line per run linking to the log output for each run.

Use Case

Today, changes inducted by scripts are kept in the individual objects changelog but there is no easy way for administrators to check for one script the previous runs and their outputs.
Standard changelog (90 days default) will be enough to go back in case of a check or analysis.

Database Changes

As this implies to kept execution history and log output, new models will be involved.

External Dependencies

None

Originally created by @jmanteau on GitHub (May 25, 2020). ### Environment * Python version: 3.7.7 * NetBox version: 2.84 ### Proposed Functionality Add a history functionnality on scripts, logging the log outputs of previous runs. I would add a new tab "Previous Runs" under each scripts view. This tab will be a table with a line per run linking to the log output for each run. ### Use Case Today, changes inducted by scripts are kept in the individual objects changelog but there is no easy way for administrators to check for one script the previous runs and their outputs. Standard changelog (90 days default) will be enough to go back in case of a check or analysis. ### Database Changes As this implies to kept execution history and log output, new models will be involved. ### External Dependencies None
adam closed this issue 2025-12-29 18:30:48 +01:00
Author
Owner

@jmanteau commented on GitHub (May 25, 2020):

PS: as an afterthough, this could be extended to reports or put in a generic way so that plugins could use this functionnality.

@jmanteau commented on GitHub (May 25, 2020): PS: as an afterthough, this could be extended to reports or put in a generic way so that plugins could use this functionnality.
Author
Owner

@jeremystretch commented on GitHub (May 26, 2020):

NetBox does not retain the output of custom scripts, however as the author of the script you have the ability to save the output yourself in any format you like.

@jeremystretch commented on GitHub (May 26, 2020): NetBox does not retain the output of custom scripts, however as the author of the script you have the ability to save the output yourself in any format you like.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3729