Splunk AppDynamics

Install-Agent not working

Leandro_Borges
Explorer

Hello

I'm trying to install a .NET agent using the script. I generated the template and now, when trying to install it in the local machine I have the following error:

PS C:\Users\RBOL122\Desktop> Install-Agent .\dotNetAgentSetup64-4.5.15.0.msi
Carte de performance WMI service is already started
Application système COM+ service is already started
Agent install file is not found.
Au caractère C:\Users\RBOL122\Desktop\appdynamics.psm1:1131 : 17
+ Throw "Agent install file $setup_file is not found."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Agent install file is not found.:String) [], RuntimeException
+ FullyQualifiedErrorId : Agent install file is not found.

PS C:\Users\RBOL122\Desktop> Install-Agent C:\Users\RBOL122\Desktop\dotNetAgentSetup64-4.5.15.0.msi .\SavedSetupConfiguration.xml
Carte de performance WMI service is already started
Application système COM+ service is already started
Agent install file is not found.
Au caractère C:\Users\RBOL122\Desktop\appdynamics.psm1:1131 : 17
+ Throw "Agent install file $setup_file is not found."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Agent install file is not found.:String) [], RuntimeException
+ FullyQualifiedErrorId : Agent install file is not found.

PS C:\Users\RBOL122\Desktop>

The installation and xml file are inside the directory in which I'm tryng to install.

Labels (1)
0 Karma
1 Solution

Leandro_Borges
Explorer

Hello

I fixed that: 

changed 

function Get-64ArchitectureShared()
{
    Write-Verbose "Checking OS architecture"
    $architecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture
    return $architecture.OSArchitecture -eq "64-bit"
}
for 
function Get-64ArchitectureShared()
{
    Write-Verbose "Checking OS architecture"
    $architecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture
    return $architecture.OSArchitecture -like "*64*"
}
Thanks
 

View solution in original post

millerep
Contributor

I'm not sure you're specifying the path to the setup configuration correctly: https://docs.appdynamics.com/display/PRO45/Unattended+Installation+for+.NET

msiexec /i dotNetAgentSetup64.msi /q /norestart /lv %TEMP%\AgentInstaller.log AD_SetupFile=<absolute path to setup config.xml>

Leandro_Borges
Explorer

Hello

I fixed that: 

changed 

function Get-64ArchitectureShared()
{
    Write-Verbose "Checking OS architecture"
    $architecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture
    return $architecture.OSArchitecture -eq "64-bit"
}
for 
function Get-64ArchitectureShared()
{
    Write-Verbose "Checking OS architecture"
    $architecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture
    return $architecture.OSArchitecture -like "*64*"
}
Thanks
 

Leandro_Borges
Explorer
0 Karma

millerep
Contributor

Ahh I see, I haven't messed with the extension, but it looks as if you're trying to install it locally off a .msi on your desktop and it's not finding the Agent Install command? A couplet things to check maybe?

Did you import the module? Import-Module .\AppDynamics.psm1

Do you have permissions to write to the RemoteShare/RemotePath?

Is the .msi file you're running Install-Agent in the C:\Users\RBOL122\Desktop> directory?

Leandro_Borges
Explorer

Hello Eric,

I think the result of the property

$architecture.OSArchitecture 

changed according to the Power Shell version since the creation of the script. The developer was expecting "64-bit" but the acresult is "64 bits".

Thanks

Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...