This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

published

AMP for Endpoints - Duplicate Fixer

This python script is intended to delete duplicated AMP for Endpoint (AMP4EP) hostnames in the AMP4EP portal.

The script executes as follows:

  • Enter AMP4EP API Credentials
  • Search all hostnames
  • Create hostname duplicate list
  • Query duplicate install date
  • Delete dated hostname.

After the script runs, check AMP4EP Console > Accounts > Audit Log, for changes the script performed.

Use Case: Host machine is wiped, new machine installs new AMP4EP connector. AMP4EP Console displays 2 licenses, one for wiped machine as well as new machine. Script deletes older machine plus GUID with matching hostnames.

For License Information click here.

Authors: Max Wijnbladh and Chris Maxwell

Installation Guide

Requirements:

Step 1:
Open a terminal and run the following:

git clone https://github.com/victoriancode/amp4endpoint
cd victoriancode/amp4endpoint

Step 2:

Option 1: If you have parameters, open config.ini, enter credentials and then save file. Then run these commands

python amp4ep_duplicate_fixer.py
n

OR

Option 2: Run the following command and your AMP console credentials:

Enter your AMP Console details after these commands

python amp4ep_duplicate_fixer.py
y

Demo

Video: https://youtu.be/jXujBqelfLU

UML for script

View code on GitHub
  • Owner

  • Contributors

    +2Github contributors
  • Categories

  • Programming Languages

    Python
  • License

    Other

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.