cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 3

Wishlist: system.AddTag - in addition to importTag and exportTag

Hi folks,

It seems that right now there are only two tag-related API calls:  system.importTag and system.exportTag

I am planning on using Location tags in ePO based on the user's IP Subnet.  (i.e. if IP Address = 192.168.10.x/24 then apply tag "Location:Topeka, KS") 

We have 150+ offices with more added every few weeks.  I want to be able to export a list of newly-created office subnets from something like InfoBlox (or an excel spreadsheet), format them in ePO format, and then call the WebAPI to create them.

Right now it seems that this will be difficult, since each Tag has (it seems) a unique ID.  I'll have to call exportTag, add the new tags (preserving the XML headers, and then call importTag.

It would be great if I could just call an addTag API to add the new tag, and ePO would automatically increment it.  In the interim, I suppose I can just script a way to figure out what the MAX Tag ID is, and just go from there (?)

Thanks!

Message was edited by: clausonna on 2/20/12 2:39:54 PM CST
2 Replies
Former Member
Not applicable
Report Inappropriate Content
Message 2 of 3

Re: Wishlist: system.AddTag - in addition to importTag and exportTag

would applyTag work for your needs? 

see pg 19-20

https://community.mcafee.com/docs/DOC-3094

import mcafee mc = mcafee.client('localhost','8443','ga','ga')

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

mc.system.applyTag(line, 'myTag')

Former Member
Not applicable
Report Inappropriate Content
Message 3 of 3

Re: Wishlist: system.AddTag - in addition to importTag and exportTag

No, ApplyTag is for assigning a tag to a system.  I'm talking about the management of tags in general.  Right now exportTag spits out the entire list of tags, and importTag requires  that include the whole list back.  I need to be able to more flexibly add and remove INDIVIDUAL tags to the overall tag 'database', without having to export/import the list en masse.  I can only image the 'damage' I would cause if that imported list somehow blew away all of existing tags and the systems that they were applied to. 

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

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