Forum Discussion

Red_19's avatar
Red_19
Icon for Nimbostratus rankNimbostratus
Aug 01, 2017

Troubleshoot an LDAP monitor on LTM in TMSH

I have an ldap monitor on 2389 serves and would like to know how to test if the monitors. my monitor config is as follows ltm monitor ldap LDAP_test { base cn=f5ldap,ou=ids,o=test.com chase-referrals yes debug no defaults-from ldap destination : filter (objectClass=*) interval 30 password $M$LpRLZd2bjRd$ght0lYZMFBr0g== time-until-up 0 timeout 91 username cn=f5ldap,ou=ids,o=test.com }

 

from the article on https://support.f5.com/csp/article/K17472 , F5 has given a test script that we can use to test our monitor, I've change the objects to suit my monitor but if I try on tmsh I am not getting an expected output. Can someone tell me where exactly we have to run the below command ? in bash or on tmsh ? "ldapsearch -xLLL -H 'ldap://ldapA.company.com:390' -b "ou=group,dc=company,dc=com" -s one -A -D "cn=binduser,dc=company,dc=com" -w 'mypassword' "(cn=user1)"

 

Thanks.

 

1 Reply

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    ldapsearch is a command on the big itself. So use bash to run it, not tmsh (Although IIRC there is a separate tmsh command to run bash commands, it's a bit redundant as you might as well just do it from bash in the first place). You can tell which way I run it :)