Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
High availability
»
CARP maintenance mode via command line / API
« previous
next »
Print
Pages: [
1
]
Author
Topic: CARP maintenance mode via command line / API (Read 2618 times)
vielhak
Newbie
Posts: 4
Karma: 0
CARP maintenance mode via command line / API
«
on:
August 04, 2022, 08:23:09 am »
Hi there,
is there a way to enter/leave the carp maintenance mode via command line or API? I would like to automate some things and did not find anything in the docs or the forum.
best regards,
Torsten
Logged
ianf
Newbie
Posts: 18
Karma: 0
Re: CARP maintenance mode via command line / API
«
Reply #1 on:
July 16, 2023, 09:47:38 pm »
Hi,
there is a way via CLI:
Code:
[Select]
$ configctl interface carp_set_status maintenance
This toggles the maintenance mode on / off, depending on the previous state.
If you want to find out more about the options of this command, look at /usr/local/opnsense/scripts/interfaces/carp_set_status.php .
Best regards,
Ian
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
High availability
»
CARP maintenance mode via command line / API