Exam 301b All QuestionsBrowse all questions from this exam
Question 29

An IT administrator wants to log which server is being load balanced to by a user with IP address 10.10.10.25.

Which iRule should the LTM Specialist use to fulfill the request?

    Correct Answer: C

    To log which server is being load balanced to by a user with the IP address 10.10.10.25, the iRule should trigger when the server connection is established and should check if the client's IP matches 10.10.10.25. The most appropriate option is: when SERVER_CONNECTED { if { [IP::addr [clientside [IP::remote_addr]] equals 10.10.10.25]} { log local0. "client 10.10.10.25 connected to pool member [IP::addr [LB::server addr]]" } }. This will correctly log the event with the load-balanced server details when the specific client's IP is detected.

Discussion
TurdOption: C

C is the closest but there are two issues: 1. IP::remote_addr should be enclosed with braces, not brackets. 2. The log entry should only reference [LB::server addr]. IP::addr should only be used when making comparisons.