Hi Jabez,
there's already a script that does this job for you. If you really want to run your own python script, I guess that you could call this bash script within your own script, and grab the outputs.
Run:
[root@console ~]#
/opt/qradar/bin/myver7.3.1.20190228154648
For the short version, you can run:
[root@console ~]#
/opt/qradar/bin/myver -siv7.3.1.9
In this exemple, 7.3.1.9 = 7.3.1 patch 8.
For more information on the version terminology, you can check out this page:
https://www-01.ibm.com/support/docview.wss?uid=swg27008656Here's the options available with the 'myver' command.
[root@hostname ~]# /opt/qradar/bin/myver -h
There's also an option to export the info in a python dictionnary. You should have a look.
[root@console ~]#
/opt/qradar/bin/myver -dictRegards,
------------------------------
Anthony Gayadeen
Analyst
Videotron
Montreal QC
------------------------------
Original Message:
Sent: Wed July 10, 2019 06:15 AM
From: Jabez Daniel
Subject: Check QRadar Version Using Python Code
Hi All,
Is there a way to find the QRadar Version using Python code?
------------------------------
Jabez Daniel
------------------------------