Command in platform settings
NetBox version What version of NetBox are you currently running? ver. 4.3.5 on Docker
Describe the bug A clear and concise description of what the bug is. No matter what command I put in the command field on platform settings, only the show running-config is ran on the desired router
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen. I want to run the command "show access-lists" to compare the access-lists on the router with the access-list template I have for the config template assigned to the router
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Even when I specify the command "show access-lists" in the platform settings page when I run the config-diffs, the output will not be limited to just the output of the command but rather the entire show running-config.
Hi @bep6vaku thanks for opening the issue,
How do you run config diffs? From custom scripts or configuration requests?
Here is some more information. I am using the configuration requests. I am running the netbox-config-diff v2.11.0 on Netbox 4.3.7. I want to compare a particular extended access control list on a router against what I have in a configuration template so I can see the differences. Unfortunately, when I run the config diff on the router I will get the entire running config on the left side of the diff screen and the access-list from the configuration template on the right. Within the platform settings, there are a series of commands available, even if I choose "show access-lists" I get the entire running configuration.
This is what the configuration compliance looks like after running. I would expect to see on the left side of the screen the configuration snippet from the router to compare with the template on the right. Instead, I get the entire running config
Closed by mistake.
config diffs in configuration requests always get the full running config from devices.
You should use custom script, do you have script ConfigDiffScript under Customization > Scripts?
In Netbox 4.3.7, I have the following under Customization/Scripts. Is it possible to edit the custom script so that the plugin only returns the part of the configuration that you want to compare to and not the entire configuration? In the platform settings Commands I have the ability to define a "show command" but no matter what command I choose, the entire config is returned
The image is not attached to the comment
@bep6vaku yes, this custom script uses the command that you defined in platform settings
Just press ConfigDiffScript, in the form, choose your device, and run the script
Thanks. I have two questions. In the platform settings under commands, where did those commands come from and can I add additional ones or edit existing ones? In the show access-list command I tried to add | include "named access-list" but the output doesn't show up on the diff display on the router
David James
Sent from my Gmail account @.***
On Sat, Oct 4, 2025, 5:51 AM Artem Kotik @.***> wrote:
miaow2 left a comment (miaow2/netbox-config-diff#105) https://github.com/miaow2/netbox-config-diff/issues/105#issuecomment-3368079325
@bep6vaku https://github.com/bep6vaku yes, this custom script uses the command that you defined in platform settings
Just press ConfigDiffScript, in the form, choose your device, and run the script
— Reply to this email directly, view it on GitHub https://github.com/miaow2/netbox-config-diff/issues/105#issuecomment-3368079325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVPHGHVCF6VJ3PHYUKBT6L33V6KALAVCNFSM6AAAAACF7CTFGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNRYGA3TSMZSGU . You are receiving this because you were mentioned.Message ID: @.***>
@bep6vaku, sorry, but I don't fully understand your questions. Could you please repeat them with screenshots?