nbel_66078
Oct 19, 2009Nimbostratus
getting ltm status active/standby
Hi
I'm trying to find a solution in order to avoid LTM redundant pair to both execute an Irule that log VS client connection information to our syslog.
The fact is when a client connect to the VS with the following associated Irule both LTM send the same message to our syslog... (probably due to the connection mirroring option).
So I wonder if there is a solution to obtain the ltm status in order to make the logging only from the active ltm ?
fyi we are using v10 LTM
if [?getstatuscommand?] = 1 then ...
when RULE_INIT {
Activate logging on internal network syslog ?
set ::log_debug 1
}
when CLIENT_ACCEPTED {
log -noname 192.168.12.12:514 local0.info "Client [IP::remote_addr]:[TCP::remote_port] connected to Virtual Server: [virtual] ([IP::local_addr]:[TCP::local_port])"
if {$::log_debug==1}{
log -noname 192.168.13.13:514 local0.info "Client [IP::remote_addr]:[TCP::remote_port] connected to Virtual Server: [virtual] ([IP::local_addr]:[TCP::local_port])"
}
}
endif