Example Python scripts

Creating some example Python scripts can show you the various ways scripting can help keep your McAfee ePO servers maintained and up-to-date.

Go through these scripts, taken from differing categories of tasks, in this order.

  1. Tag systems from a list.
  2. Take a tag as input and send a McAfee Agent wake-up call to all systems with that tag.
  3. Apply automation to cleaning up disabled ePolicy Orchestrator users.
  4. Import computers from an external file and adding them to the System Tree.
  5. Export policies and client tasks from one McAfee ePO server and import them into another.
  6. Organize your System Tree.

These scripts slowly build on each other and the concepts explained.

Note: Later scripts don't repeat concepts explained in earlier scripts.