Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinetrue

Introduction

Within this document you'll find the necessary instructions to get started with two way communication. Briefly: using or trying two way communication requires three components: Blancco Drive Eraser, Blancco Management Console (BMC), and asset management system (AMS). Implementing an AMS to the specification takes a bit of doing and therefore in order to ease quick tryouts we provide a Reference AMS. It can be used to try out two way communication. We do provide its source code and therefore it can also be used as a starting point for your own implementation.

Setup

This chapter contains step by step instructions on how to setup Drive Eraser, BMC, and Reference Asset Management System (AMS) in order to start using the two way communication.

Blancco Drive Eraser

Drive Eraser is set up to receive job specifications from BMC. For this, you need to set up BMC address, port and credentials and set up the image to have "Job Specification" as erasure control.

Blancco Drive Eraser Configuration Tool

To set up the Drive Eraser image into two-way communication mode, you need to go to Security and choose "Job Specification" for the "Erasure control".

...

The Auto Connect value defines if the Drive Eraser would start by connecting to BMC and requesting the job description (when Auto Connect is checked) or if it would start by showing the Input & edit screen where user can edit the custom fields and then send a request to BMC to receive a job description (when Auto Connect is not checked).

Blancco Management Console

In BMC configuration the following is necessary:

...

There are no restrictions on which relational database management system (RDBMS) is used nor which authentication is used. By and large BMC works just like it used to.

Behavior

With all components (Drive Eraser, BMC, Reference AMS) setup as described above, the behavior is as follows:

...

Please be aware that this chain of events does consume a license.

Reference Asset Management System

UI Button
colorblue
newWindowtrue
icondownload
titleClick here to download Reference Asset Management System
urlhttps://download.blancco.com/products/erasure/management_console/download/reference-ams/reference-asset-management-system.jar

...

Code Block
java -Dserver.port=9000 -Dbmc.username=admin -Dbmc.password=Test1234 -jar reference-asset-management-system.jar

Logging and Monitoring

Drive Eraser

Blancco Drive Eraser does not have any logging accessible to the end-user. In case a valid job specification is received, there would be an option to send or save an issue report, which can later be analyzed by the Blancco support team.

Blancco Management Console

There are two ways to see what's happening. The first is live management view. Any Drive Eraser client that has registered a session with BMC will appear in live management. Please keep in mind, however, that this requires both that Drive Eraser has registered the session successfully with BMC and that AMS has been properly configured and has received the notification about a new session. If AMS cannot be reached, the session is deleted.

The second way is to enable audit logging in BMC. It contains all major events related to two way communication. Many of these events are in fact otherwise invisible and can only be seen from the log files. The audit log contains a very high level view whereas the regular logging contains more details.

Reference Asset Management System

Once it has been started, all events and their details are printed to the console. There are no other log files nor any user interface. The printout should, however, contain all the necessary details for keeping track on what's going on and troubleshooting. For example, the following things are printed out:

  • A new client session has been registered and notified to the AMS. The session's UUID, product name, and version are also included.
  • The new client's disk information.
  • The new client's custom fields.
  • The fact that job specification has been sent and the job specification itself.
  • The validity of the sent job specification.
  • Information on finished session and the UUID of the report if such was sent by Drive Eraser at the end of the erasure.

Asset Management System

AMS is a server in the sense that it is listening for connections from BMC. All of the HTTP interfaces that can be configured to BMC must be listened to in AMS. These are the ones to which BMC sends messages. They are described in the following chapters. All of the interfaces listed below are expected to respond to all of the calls from BMC immediately with HTTP code 200 and message "RECEIVED". Without this response BMC will try to send the notification again. All messages in communication between BMC and AMS uses JSON as a data exchange format.

In each URL in Reference AMS a special notation {id} is used. This signifies that the used URL is constructed with the client session ID which in reality is a UUID. The same ID is also always contained in the contained JSON message. Therefore using the ID in the URL is optional and can be left out when defining the URLs for AMS. In Reference AMS, however, it is used and therefore BMC has to be configured with it. For example, when a new client message is sent and the session's ID is 123e4567-e89b-12d3-a456-426655440000 BMC sends a notification to URL http://localhost:9000/new_client/123e4567-e89b-12d3-a456-426655440000 to the extent that AMS is running on localhost port 9000.

Anchor
newclient
newclient
New Client

URL in Reference AMS/new_client/{id}
HTTP MethodPOST

...

Code Block
languagejs
firstline1
linenumberstrue
{
    "new_client": {
            "id": "123e4567-e89b-12d3-a456-426655440000",
            "product": "Blancco5",
            "version": "5.9.0",
            "mac_addresses": [
                "B3-3C-55-8E-7E-E6",
                "E3-3C-55-8E-7E-B6"
            ]
    }
}  

Job Specification Validation

URL in Reference AMS/client/{id}/jobspec
HTTP MethodPOST

...

Code Block
languagejs
firstline1
linenumberstrue
 {
    "job_spec": {
        "id": "c44ed942-fab6-4dfe-8b5a-81265e68a8dd",
        "status": "NOT_VALID",
        "message": "I am a reason of failure"
    }
}

Asset Report

URL in Reference AMS/client/{id}/asset_report
HTTP MethodPOST

...

The XML report is encoded with BASE64.

Session Finished

URL in Reference AMS/client/{id}/finished
HTTP MethodPOST

...

Code Block
languagejs
firstline1
linenumberstrue
{
    "client_finished": {
        "id": "123e4567-e89b-12d3-a456-426655440000",
        "report_uuid": "e8b3f8ed-09f4-470b-9d84-6ff5ff6b54c3"
    }
}

Blancco Drive Eraser

Based on the "Auto connect" value, Drive Eraser can start in either on the two modes:

...

If the job description is valid, Blancco Drive Eraser would update the configuration based on the specification sent by the AMS via BMC and start a local erasure session based on the updated configuration.

Blancco Management Console API

There are several interfaces that have been added specifically with two way communication in mind. Details about these interfaces are provided in BMC's API documentation (Asset Management API-section). With them we enable AMS to, e.g.:

...