Register bat file for automatic registration

Hi, i’m trying to get a bat file working to automatically register the checkmk agent.

Does anyone know how I could skip this part that asks y/n to automatically select y?

image

The code i’m using is just this:
cd
cd C:\Program Files (x86)\checkmk\service
check_mk_agent.exe updater register -H %computername% -U username -P Password
cmk-agent-ctl.exe register -H %computername% -s “IP” -i site -U username -P password

Hi,

add “–trust-cert” to you batch.

1 Like

Yes I actually just saw this when looking at the register --help part
thanks though

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.