Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Assets Discovery - Distribute configuration to client agents without VPN connection

Mike Guwak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 14, 2023


Here is our configuration, which works.

Linux Collector Server
Windows Agent Clients which do Work from Home without any VPN connection.

The collector server runs an sftp server. The agent client also transfers its files to the server every day.

The scans of the client are also imported into the Atlassian Cloud.
So far so good.

Now we want to distribute the client agent automatically, via software, to the Windows clients.

The problem I have is that I always have to configure the clients with

Discovery_Agent.exe -setupsftp

once. After that the connection works.
Now I thought, I just copy the

Agent.bak
Agent.cfg

into an installed client. Only if I then create a

Discovery_Agent.exe -s

I get this error message. 


14.04.2023 10:16:01 : saving file: 564BB_Hosts_2023-04-14_1016_0241.xml to folder C:\Program Files\Atlassian\Discovery Agent\scans | binary = False
14.04.2023 10:16:01 : Old encrypt algorithm
14.04.2023 10:16:01 : Exceptions:
14.04.2023 10:16:01 : mac check in GCM failed
14.04.2023 10:16:01 : Decrypt credentials by old algorithm was failed
14.04.2023 10:16:01 : Exceptions:
14.04.2023 10:16:01 : Der Pfad darf nicht NULL sein.
Parametername: path
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
bei Insight.Discovery.Tools.Crypter.DecryptOldFile(String fileIn, String password) in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Crypter.cs:Zeile 298.
14.04.2023 10:16:01 : Error transfer data via sftp.
14.04.2023 10:16:01 : Exceptions:
14.04.2023 10:16:01 : Das Array darf nicht NULL sein.
Parametername: bytes
bei System.Text.Encoding.GetString(Byte[] bytes)
bei Insight.Discovery.Agent.Logic.AgentService.SFTPFileTransfer(String file) in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\Discovery_Agent\Logic\AgentService.cs:Zeile 312.

C:\Program Files\Atlassian\Discovery Agent>


 

If I afterwards again

Discovery_Agent.exe -setupsftp

it works after that. How can I now give a configuration with an automated software, so that all clients have the same configuration.

As I said, because the users have no VPN connection, I also have no IP range that I can use for the collector or discovery. At home everyone has his own internal IPs.



3 answers

1 accepted

1 vote
Answer accepted
Mike Guwak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 18, 2023

We have solved this now.

With Intune, we distribute the agent to all systems.
Then a script creates the files and copies them to the original location.

Each client gets the correct *.cfg 

Lahcen June 8, 2023

Hello Mike,
I don't know how to set up this script and I have the same configuration as you.
but can you share it with me Or help me create my own script ?
Thank you

Khawar Qaisar November 1, 2023

Hi I am trying to achieve the same thing, could you kindly share the script if possible.

Simen Vågsæter
Contributor
November 24, 2023

Hi @Mike Guwak could you please share the script with me? I'm having issues replacing those Agent.cfg and Agent.bak files with Intune.

Baldeep Gill December 18, 2023

@Mike Guwak are you able to share the steps taken in intune for this deployment? 

0 votes
Rafal Binkowski July 3, 2023

Hello @Mike Guwak it looks like I have exactly the same problem now and wondering how to make it working with SCCM. What does exactly Intune do for you?

Christian Schneider
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2023

Hi @Rafal Binkowski

have you been able to do this with SCCM? I have asked the same question on the community: How to install Assets Discovery Agent via SCCM? (atlassian.com). If you have something useful, I would be very thankful for any inputs.

Chris

 

 

EDIT: vote for this: [JSDSERVER-12441] improve Discovery tool in order to fully support the deployment of agents through SCCM - Create and track feature requests for Atlassian products.

Rafal Binkowski December 8, 2023

Hi @Christian Schneider

Thanks for reaching out, please find my reply in your thread.

Cheers,

Rafal

0 votes
Lahcen June 8, 2023

Hello,
I don't know how to set up this script and I have the same configuration as you.
but can you share it with me Or help me create my own script ?
Thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events