Forum Discussion
When sync status change show in log
- Nov 30, 2022
Hi Michael,
I'm uncertain if a more agressive MCPD log level may include some log messages for sync-status-changes? You may give it a try...
If everything fails you could simply produce your own log lines as needed via custom iCall scripts. The quickly coded iCall script executes every 120 seconds a "tmsh show cm sync-status" and then checks if the resulting text output contains the string "Color green", if the string is not present, it will simply create a log entry for you...
sys icall handler periodic check_config_sync { interval 120 script check_config_sync } sys icall script check_config_sync { app-service none definition { tmsh::log_dest file tmsh::log_level debug if { [tmsh::show /cm sync-status] contains "Color green" } then { # Everything is fine... } else { tmsh::log debug "Check Config Sync: [info hostname] displays a non-green sync-state." } } description none events none }
Cheers, Kai
Hi Mohamed_Ahmed_Kansoh,
Thanks for your reply.
Maybe my expression was not clear and made you misunderstand.
I mean when the sync status changes, can I see the log with the status change on var/log/ltm?
I tried to change the sync status and found that the information is not shown in var/log/ltm.
hello ,
you can see the " Sync " action in "/var/log/ltm" , you see a log related to mcpd process contains the commit id , time , ..etc , but this when you click sync button.
I do not know if the status changed to " changes pending " shoud give you a log or not.
let us see one of F5 experts here can provide you a good reply in this.
But I want to ask you , why do you want to see this log , it wouldn’t be useful for anything , you can see the status cleared within cli or GUI as well.
Regards
- MichaelyangNov 30, 2022Cirrostratus
Hi Mohamed_Ahmed_Kansoh,
Thanks for your reply.
I want to use this log to see if there is a problem with the sync status, because usually I don't browse F5 and I rely on the syslog server to see if there is a situation with F5.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com