cancel
Showing results for 
Search instead for 
Did you mean: 

web API

Hi,

Need help regarding web API.

I tried to use the tagging python script but when I modify and run it didn't work as it should be. The assets has no tag.

any comment what should be done or to check on my settings?

Note: I am running the script on remote computer and mcafee py is on the same folder as the script reside.

Script:

import mcafee

#initiate connection
mc = mcafee.client('server_name','8443','username','password')

#open text file
file = open(path of the file', 'r')

#iterate through list and assign tags
for line in file:
    mc.system.applyTag(line.rstrip('\n'), 'Test-Tag-S')

1 Reply
Reliable Contributor exbrit
Reliable Contributor
Report Inappropriate Content
Message 2 of 2

Re: web API

You already have a post, which you can edit if you wish to add anything, here: 

Locking this one.

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community