How discovery Agents can export to Cloud instance

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Cloud、Server、および Data Center - この記事はすべてのプラットフォームに等しく適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く


要約

Assets Discovery agents can transfer their local scan results file using File Copy or SFTP export where they will be picked up by a Collector or by Assets Discovery tool.

There is a suggestion  JSDCLOUD-11802 - Getting issue details... STATUS where it will be more efficient if a Discovery Agent can upload its local scan directly to a cloud instance and trigger the import.
Until the feature request gets prioritised and worked on, to export the Agents results to Cloud, you can use a Discovery Collector

Here we will show how to export Discovery Agents results to Cloud using a Collector.

環境

Discovery Agent is installed locally, Assets is running in a Jira Cloud Instance

ソリューション

Let's assume the following scenario:

  • Remote laptops cannot be scanned by the discovery tool
  • Discovery Agents results should be uploaded to Assets in Cloud

要件 

  • Discovery agents installed in each of the devices (Only available Windows Environment)
  • Discovery Collector installed on a Windows device or on a Linux system.  The latter, you need to install the latest Mono packages on your Linux System and it should be done from the native linux GUI. Please refer to Using Discovery on Linux 
  • A shared path folder needs to be available where the Discovery Agent and Collector can access
    • Shared path folder could also be a SFTP directory

Let's begin

  1. Install the Discovery Agents
    1. 「Discovery_x.x.x.zip」の中には「Discovery_Agent_Setup.msi」インストーラー パッケージが入っています。
    2. By default, scan result will be stored in the local device within the Agent installation directory\scans directory

  2. Manually edit the Agent.cfg within the Agent installation directory and ensure you set DirectCopyPath element with the shared path where results will be exported. In this KB, we use as an example:
    C:\Program Files\Atlassian\Discovery Agent Installer\export

    Example - Agent.cfg
    <?xml version="1.0" encoding="utf-8"?>
    <Settings
    	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    	<ScanLogLevel>Debug</ScanLogLevel>
    	<NextScanDate>2022-10-24T19:40:39.0555278+02:00</NextScanDate>
    	<ScanInterval>24</ScanInterval>
    	<AgentPort>51337</AgentPort>
    	<JustUseFirstIP>false</JustUseFirstIP>
    	<DeleteLogsAfter>7</DeleteLogsAfter>
    	<DisableTCPListener>false</DisableTCPListener>
    	<DirectCopyPath>C:\Program Files\Atlassian\Discovery Agent Installer\export</DirectCopyPath>
    	<SFTPSettings>
    		<TransferReties>5</TransferReties>
    		<TranserRetryInterval>30</TranserRetryInterval>
    	</SFTPSettings>
    </Settings>

    In the above example, we use a local path but it could also be a remote path or even a SFTP as long as the Discovery Agent can access it as well as the collector host.

    1. Discovery Agents run a scan every 24 hours (by default). This setting can also be changed.

  3. Install Discovery Collector on a different device
    1. Run the Command Prompt with Administrator Privileges. You need to be within the Discovery Installation directory
    2.  Install the Collector tool as a service

      Collector.exe -i
  4. Open the Collector-Tool Settings.  You need to be within the Discovery Installation directory

    Collector.exe -s


    1. In the "Import Folder" field, set the share path where the Agents scan results are being exported. See Step #2



    2. Go to Export tab and set Export Type to Cloud

      1. Add Auth token. You must generate a key that allows the external app to securely transfer the data into Assets. This is called a Single Sign-On (SSO) token, or just token.

      2. Please refer to Generate a token for importing


  5. Close the collector-Tool Settings
  6. Discovery Collector will run every 30 minutes (by default) and if any Agent scan results are found in the Import Folder, it will export them to Cloud.

その他

Other Discovery Agents and Collector settings can be found on:




最終更新日 2023 年 11 月 24 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.