Layer7 Access Management

Expand all | Collapse all

Is there a way to run smpolicysrv -stats on mutiple win policy servers and get results.

Jump to Best Answer
  • 1.  Is there a way to run smpolicysrv -stats on mutiple win policy servers and get results.

    Posted 02-04-2016 06:40 PM

    Hi,

    Is there a way to run smpolicysrv -stats on mutiple win policy servers and get results.

    When trying write script came across below link which says

     

    Note: On Windows, do not run the smpolicysrv commands from a remote desktop or Terminal Services window. The smpolicysrv commands are dependent on an interprocess communication that do not work if you run the smpolicysrv process from a remote desktop or Terminal Services window.

     

    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec490527.aspx

     

    So how can we get results using scripts, instead of login everytime....Thankyou



  • 2.  Re: Is there a way to run smpolicysrv -stats on mutiple win policy servers and get results.
    Best Answer

    Posted 02-04-2016 07:12 PM

    Hi,

     

    You can actually achieve that by creating a scheduled task.

     

    I have some screenshots you can reference.

     

    Configuring an ALL-IN-ONE VM Image - Part 1

     

    Look for "And you can configure a scheduler to run "smpolicysrv -stats" command to get the policy server statistics."

     

    Another reference from Mark.ODonohue here.

    https://communities.ca.com/message/97562726#98439548

    He also has screenshots with instructions.

     

    And it would be good to vote on the idea below.

    Policy Server to run smpolicysrv -stats at regular interval

     

    Regards,

    Kim



  • 3.  Re: Is there a way to run smpolicysrv -stats on mutiple win policy servers and get results.

    Posted 02-04-2016 07:21 PM

    Hi Silva

     

    You may also want to vote for this "Idea" : to make it part of the normal policy server operation.

     

    Policy Server to run smpolicysrv -stats at regular interval

     

    Cheers - Mark



  • 4.  Re: Is there a way to run smpolicysrv -stats on mutiple win policy servers and get results.

    Posted 02-06-2016 02:49 PM

    Thankyou Kim,

    I agree with you, but I am looking for a possible way to run script directly in environment which is already existing



  • 5.  Re: Is there a way to run smpolicysrv -stats on mutiple win policy servers and get results.

    Posted 02-06-2016 04:06 PM

    Yes, that is for existing environment.
    regards,
    Kim