3 Replies Latest reply on Jun 13, 2017 9:15 AM by creese40

    Automate policies

    creese40

      We want to Automate policies via Tagging. Can this be done using the Web API with a Python script?

       

       

      Cornell

        • 1. Re: Automate policies
          creese40

          I found this example python script to automate tagging. 

          My question is do use a text file for this script?

           

          import mcafee

          mc = mcafee.client('local host','8443','ga','ga')

          file = open('C:/path/to/myfile.txt', 'r')

          for line in file:

          mc.system.applyTag(line.rstrip(‘\n’), 'myTag')

          • 2. Re: Automate policies
            tonyw

            Is there a reason you're not using the policy assignment rule option inside of the EPO GUI?

            1 of 1 people found this helpful
            • 3. Re: Automate policies
              creese40

              MGMT wants automate policy assignment via tagging.

              Lets says the server team builds a new server and install ENS. they want ePO to check

              a file and assign the correct policy to it. They want to do by type of server SQL, Domain controller etc.