Skip to main content

Sentinel One Settings Verification

Summary

This document outlines how to obtain the site key and URL associated with the target endpoint and compare that value to the one set in ConnectWise Automate's Client-level EDF named "SentinelOne SITE_TOKEN".

Sample Run

Sample Run

Variables

NameDescription
NumRunsThis holds the number of times the script has run on the target machine.
TickIDThe ticket number for any currently open ticket with the same subject.
ResolvedThis variable determines if the end state of the script is a resolved state.
TicketFinishBodyThe note added to the ticket if the script has resolved the issue.
MachineDecryptedValueThe decrypted value of the machine base-64 string.
ClientDecryptValueThe decrypted value of the client base-64 string.
MachineUrlThe URL portion of the decrypted string for the machine.
MachineUrlShaThe SHA value of the machine URL.
MachineSiteKeyThe SiteKey portion of the decrypted string for the machine.
MachineKeySHAThe SHA value of the machine site key.
ClientUrlThe URL portion of the decrypted string for the client.
ClientUrlShaThe SHA value of the client URL.
ClientSiteKeyThe SiteKey portion of the decrypted string for the client.
ClientKeyShaThe SHA value of the Client site key.
TicketBodyThe note added to the ticket regarding the results of the script.

Global Parameters

NameExampleRequiredDescription
TicketCreateSubjectUnmatching SentinelOne Token for %LocationName% / %ComputerName% (%ComputerID%)TrueThe subject of any created ticket for this script.
TicketCreationCategory1TrueThe ticket creation category to assign to any created ticket.

User Parameters

NameExampleRequiredDescription
Set_Environment1YesSet to 1 for first-time implementation. Running the script with the user parameter Set_Environment as 1 will import the System Properties needed for the script.

System Properties

NameExampleRequiredDescription
Client_Level_Sentinel_One_Token_EDF_NameSentinelOne_SITE_TOKENTrueThe name of the client-level EDF storing the SentinelOne Site Token.

EDF Configuration

Do not encrypt the EDF used in the Global Variable Client_Level_Sentinel_One_Token_EDF_Name.

Incorrect Configuration:

Incorrect Configuration

Correct Configuration:

Correct Configuration

Output

TicketCreationCategory

The script will use the ticket creation category mentioned in the monitor CWM - Automate - Internal Monitor - Execute Script - Sentinel One Settings Verification.

TicketCreationCategory

Ticket

Ticket

Example:

Subject: Unmatching SentinelOne Token for %LocationName% / %ComputerName%

Body:

The machine details do not match the correct client details.
The agent reports the following details:
SentinelOne URL is: <URL>
SentinelOne Site key is: <LicenseKey>

Automate is configured to install as follows:
SentinelOne URL should be: <URL>
SentinelOne Site key should be: <LicenseKey>
To resolve a license key mismatch in SentinelOne, you must uninstall and then reinstall the software using the correct license key.