Hello,
I'd like to know if it's possible to run an external script from the console and then retrieve its output to inject it into the console's audit data from a computer.
For example, I'd like to use a script to retrieve a machine's warranty end date via an external tools menu in a console plugin and inject it into the console's audit data from a computer.
Thanks by advance.
Adding audit data from an external tool (plugin console)
Règles du forum
Règles du forum communautaire
* English support on www.reddit.com/r/wapt
* Le support communautaire en français se fait sur ce forum
* Merci de préfixer le titre du topic par [RESOLU] s'il est résolu.
* Merci de ne pas modifier un topic qui est taggé [RESOLU]. Ouvrez un nouveau topic en référençant l'ancien
* Préciser version de WAPT installée, version complète ET numéro de build (2.2.1.11957 / 2.2.2.12337 / etc.) AINSI QUE l'édition Enterprise / Discovery
* Les versions 1.8.2 et antérieures ne sont plus maintenues. Les seules questions acceptées vis à vis de la version 1.8.2 sont liés à la mise à jour vers une version supportée (2.1, 2.2, etc.)
* Préciser OS du serveur (Linux / Windows) et version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019)
* Préciser OS de la machine d'administration/création des paquets et de la machine avec l'agent qui pose problème le cas échéant (Windows 7 / 10 / 11 / Debian 11 / etc.)
* Eviter de poser plusieurs questions lors de l'ouverture de topic, sinon il risque d'être ignorer. Si plusieurs sujet, ouvrir plusieurs topic, et de préférence les uns après les autres et pas tous en même temps (ie ne pas spammer le forum).
* Inclure directement les morceaux de code, les captures d'écran et autres images directement dans le post. Les liens vers les pastebin, les bitly et autres sites tierces seront systématiquement supprimés.
* Comme tout forum communautaire, le support est fait bénévolement par les membres. Si vous avez besoin d'un support commercial, vous pouvez contacter le service commercial Tranquil IT au 02.40.97.57.55
Règles du forum communautaire
* English support on www.reddit.com/r/wapt
* Le support communautaire en français se fait sur ce forum
* Merci de préfixer le titre du topic par [RESOLU] s'il est résolu.
* Merci de ne pas modifier un topic qui est taggé [RESOLU]. Ouvrez un nouveau topic en référençant l'ancien
* Préciser version de WAPT installée, version complète ET numéro de build (2.2.1.11957 / 2.2.2.12337 / etc.) AINSI QUE l'édition Enterprise / Discovery
* Les versions 1.8.2 et antérieures ne sont plus maintenues. Les seules questions acceptées vis à vis de la version 1.8.2 sont liés à la mise à jour vers une version supportée (2.1, 2.2, etc.)
* Préciser OS du serveur (Linux / Windows) et version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019)
* Préciser OS de la machine d'administration/création des paquets et de la machine avec l'agent qui pose problème le cas échéant (Windows 7 / 10 / 11 / Debian 11 / etc.)
* Eviter de poser plusieurs questions lors de l'ouverture de topic, sinon il risque d'être ignorer. Si plusieurs sujet, ouvrir plusieurs topic, et de préférence les uns après les autres et pas tous en même temps (ie ne pas spammer le forum).
* Inclure directement les morceaux de code, les captures d'écran et autres images directement dans le post. Les liens vers les pastebin, les bitly et autres sites tierces seront systématiquement supprimés.
* Comme tout forum communautaire, le support est fait bénévolement par les membres. Si vous avez besoin d'un support commercial, vous pouvez contacter le service commercial Tranquil IT au 02.40.97.57.55
Hello Olivier, your plan is exactly the functionality that the personalized audit data is intended for, using WAPT to store for example :
If the functionnality does not exist yet (we've already thought of this need), then we should find a way soon for the functionnality to exist.
And while we're at it, me bing curious, what is the primary key that you plan to use to match existing records in the WAPT database with the information you wish to import and manage with WAPT?
- warranty information
- the person the equipment was loaned to and on what date
- the asset tag number if the hostname of the computer is not the asset tag id
- etc.
If the functionnality does not exist yet (we've already thought of this need), then we should find a way soon for the functionnality to exist.
And while we're at it, me bing curious, what is the primary key that you plan to use to match existing records in the WAPT database with the information you wish to import and manage with WAPT?
Vincent CARDON
Tranquil IT
Tranquil IT
-
- Messages : 24
- Enregistré le : 22 oct. 2024 - 13:25
Unfortunately, I am only a user of the solution. I do not have direct access to the solution's databases, only through the console.
I had simply thought of using a script that would take the machine's serial number from the BIOS as an argument, query the manufacturer via an API to get the warranty status, and then inject it into an audit data entry, similar to WAPT.write_audit_data_if_changed("xxxx", "computer-is-under-warranty", "OK") WAPT.write_audit_data_if_changed("xxxx", "computer-warranty-end-date", date).
Finally, I would have displayed it in a column of the console.
I know that I could easily do this via a WAPT package, but that would mean sending the API key in a package, which I do not want to do.
I had simply thought of using a script that would take the machine's serial number from the BIOS as an argument, query the manufacturer via an API to get the warranty status, and then inject it into an audit data entry, similar to WAPT.write_audit_data_if_changed("xxxx", "computer-is-under-warranty", "OK") WAPT.write_audit_data_if_changed("xxxx", "computer-warranty-end-date", date).
Finally, I would have displayed it in a column of the console.
I know that I could easily do this via a WAPT package, but that would mean sending the API key in a package, which I do not want to do.