Skip to content

AMP for Endpoints - Duplicate Fixer. Python script intended to delete duplicated hostnames in AMP4EP portal.

License

Notifications You must be signed in to change notification settings

victoriancode/amp4endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

AMP for Endpoints - Duplicate Fixer. Python script intended to delete duplicated hostnames in AMP4EP portal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages