项目作者: victoriancode

项目描述 :
AMP for Endpoints - Duplicate Fixer. Python script intended to delete duplicated hostnames in AMP4EP portal.
高级语言: Python
项目地址: git://github.com/victoriancode/amp4endpoint.git
创建时间: 2019-02-01T09:08:15Z
项目社区:https://github.com/victoriancode/amp4endpoint

开源协议:Other

下载


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:

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

Step 2:

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

  1. python amp4ep_duplicate_fixer.py
  2. n

OR

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

Enter your AMP Console details after these commands

  1. python amp4ep_duplicate_fixer.py
  2. y

Demo

Video: https://youtu.be/jXujBqelfLU

UML for script