summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
diff options
context:
space:
mode:
authorAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-02 20:25:47 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit6d1e79b8eb898d12fd5e2fa83489fc26f956bb8e (patch)
tree2a81ec9f949fa835b7cccdf1db4e91b9ff9ad22f /src/linux/ogOperations.py
parent2fa8aa4ff7deaf92c5b69be0c69fee95ce18ac37 (diff)
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"}
Diffstat (limited to 'src/linux/ogOperations.py')
-rw-r--r--src/linux/ogOperations.py4
1 files changed, 4 insertions, 0 deletions
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')