AppD Archive

Check JavaAgent Version

CommunityUser
Splunk Employee
Splunk Employee

Is there a way to check the Java Agent version from the client host without actually starting the agent?

I know when the agent starts it logs this information, but I'd like to be able to detrmine the version via a shell command so that I can manage agent installations via configuration management.

Tags (2)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

Thanks. I came up with this one liner to extract the version info:

$ unzip -p javaagent.jar META-INF/MANIFEST.MF | grep Implementation-Version | awk {'print $4, $5'}

View solution in original post

Tags (2)
0 Karma

Arun_Dasetty
Super Champion

Hi,

You could see the agent version artifact details in MANIFEST.MF file under AppServerAgent.zip/javaagent.jar/META-INF/ path Or AppServerAgent.zip/lib/appagent.jar/META-INF/ path for field "Implementation-Version" value, Hope that information helps.

You can open jar file using 7-zip as such tool.

Regards,

Arun

Tags (2)

CommunityUser
Splunk Employee
Splunk Employee

Thanks. I came up with this one liner to extract the version info:

$ unzip -p javaagent.jar META-INF/MANIFEST.MF | grep Implementation-Version | awk {'print $4, $5'}
Tags (2)
0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

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

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