0 Replies Latest reply on Jun 17, 2019 10:20 AM by george.henson

    Modification of Policy Report Rules

    george.henson

      I am trying to automate the customization of policy report rules. The example is I would like update the rules that define the NTP server settings the complacency reports use to judge if my switches are configured correctly.

       

      I can find the URI for the rule with:

       

      $uri = Get-SwisData $swis "SELECT uri FROM Cirrus.PolicyRules where name = 'NTP Server Settings' and grouping = 'Cisco Time Settings'"

       

      When I make the call to change the value I meet with:

       

      PS C:\Windows\system32> set-swisobject $swis -Uri $uri -properties @{ comment = "Ensures the Network Time Protocol (NTP) is configured properly (IP: 192.168.71.30)"}

      set-swisobject : Operation not supported on Cirrus.PolicyRules

      At line:1 char:1

      + set-swisobject $swis -Uri $uri -properties @{ comment = "Ensures the  ...

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          + CategoryInfo          : InvalidOperation: (:) [Set-SwisObject], FaultException`1

          + FullyQualifiedErrorId : SwisError,SwisPowerShell.SetSwisObject

       

       

      How can I find the operations supported on Cirrus.PolicyRules or is there a different way to approach the change?