Forum Discussion

Carlos_13563's avatar
Jun 17, 2014
Solved

APM Client Side Checks for Windows and OS X

How can I do a client side check for both Windows & OS X? I already have an Action for "Windows Registry Check" and I want to do a "Mac File Check" on the same Action box.

 

  • I figured it out. I created a macro with "registry check" and "Mac File Check"

     

    One gotcha is that you have to specify the path, even so the documentation or help doesn't mentioned a path.

     

5 Replies

  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    I think you need to call the "MAC file" in the VPE. But you can combine the checking in one.

     

     

    expr { [mcget {session.windows_check_registry.last.result}] == 1 ||expr { [mcget {session.mac_check_file.last.result}] == 1 } }

     

     

    After the "MAC file" put an expression to ignore the results returned, until its combined checked later.

     

    I have not tested the behaviour of running mac file check in windows and vice versa. If your intention is to have a common VPE after the client check, using a macro might be a better option, with checking client type first before triggering the client check.

     

  • Alexey_384's avatar
    Alexey_384
    Historic F5 Account

    If checker runs on wrong platform, then fallback branch is used. I suggest to create a macrocall: os check -> [mac -> file check -> [success, fail], win -> registry check -> [success, fail]]. You can't just combine rules, you have to insert the agent for action be performed.

     

  • I figured it out. I created a macro with "registry check" and "Mac File Check"

     

    One gotcha is that you have to specify the path, even so the documentation or help doesn't mentioned a path.