From 6d1e79b8eb898d12fd5e2fa83489fc26f956bb8e Mon Sep 17 00:00:00 2001 From: Alvaro Neira Ayuso Date: Thu, 2 Jan 2020 20:25:47 +0100 Subject: Add software command to inventory the machine software ogAdmClient has a support to inventory the software in a machine. This new command allows the new ogClient to execute the same script to inventory the sw. The arguments will be received from the server as a json message. Format: { "disk" : "0", "partition" : "1"} --- src/linux/ogOperations.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/linux') diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 34ba400..c11ee30 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -27,3 +27,7 @@ def execCMD(cmd): def procsession(disk, partition): result = subprocess.check_output([OG_PATH + 'interfaceAdm/IniciarSesion', disk, partition], shell=True) return result.decode('utf-8') + +def procsoftware(disk, partition, path): + result = subprocess.check_output([OG_PATH + 'interfaceAdm/InventarioSoftware', disk, partition, path], shell=True) + return result.decode('utf-8') -- cgit v1.2.3-18-g5258