Offline Discovery with chctl

Overview

chctl provides simple mechanism to support CloudHedge Offline Discovery functionality from the local workstation

OmniDeq Offline Discovery Architecture

Offline discovery can be done inside an air-gapped environment which may be completely isolated and disconnected from the OmniDeq portal. The cloud practitioner can use the OmniDeq command line utility (chctl) to trigger the offline discovery for the Linux/Windows systems within the air-gapped environment.

The Offline discovery information is captured from the Linux/Windows systems and the captured metadata is transferred to the OmniDeq portal when the internet connectivity is available.

Pre-Requisites

sudo pwsh -Command 'Install-Module -Name PSWSMan -Force'
pwsh -Command 'find-module -Name PSWSMan'

Output of this command should be something like below:

Version   Name      Repository   Description
-------   ----      ----------   -----------
2.3.1     PSWSMan   PSGallery    Module to install and manage the forked WSMan client libraries for Linux and macOS.…
chctl utils login --username user@email --password password --server https://app.cloudhedge.io 

Offline Discovery process

Scenarios

Scenario 1: Discover Linux System with password based authentication

System hostname: node1
System username: ch
System password: base64encpassword

chctl discover local --node node1 --osType linux --userName remoteuser --secret R0hUIzAK --waveName offline-wave

Scenario 2: Discover Linux System with key based authentication

System hostname: node1
System username: ch
System key: base64enckey

chctl discover local --node node1 --osType linux --userName remoteuser --secret GDRE454WWx --waveName offline-wave

Scenario 3: Discover Windows System with password based authentication

System hostname: winnode1
System username: ch
System key: base64enckey

chctl discover local --node winnode1 --osType windows --userName remoteuser --secret R0hUIzAK --waveName offline-wave

Scenario 4: Uploading locally available discovered data to the OmniDeq portal

chctl discover upload --osType windows --waveName offline-wave