Show agent running config (manual and merged policies)

Started by normalcy, November 26, 2024, 05:25:12 AM

Previous topic - Next topic

normalcy

Hi I have some agents that have a config file and a couple of agent policies applied. 

I was wondering if there is a way to see a merged running config with effective settings from the config file and the polices?  Saves hunting through config poll logs for applied policies and then finding the relevant policy to see what config comes in that snippet.

Ideally it would be a table that showed line by line the config and in another column the winning source of that line (from local config file or from named policy).

I saw that there is an agent list Agent.RunningConfig available, however if I try to create an object tool to display that parameter it shows up empty.

Is that parameter populated or do I need a specific regex defined as per some other object tools (like show agent lists).

Cheers.

Filipp Sudanov

Yes, it needs a bit of regex, please try to import attached configuration. 
At some point we will include this into out-of-the-box object tools

normalcy

Thanks Filipp, that works.  

I was close, the only difference was your column config which I had not put in.

normalcy

Attached is just an idea for what could be useful to see in a final version of this tool, so that you could see the winning source for any given line of the running config.

Thanks again!