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 in advance.
Adding audit data from an external tool (console plugin)
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 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 functionality does not exist yet (we've already thought of this need), then we should find a way soon for the functionality 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 functionality does not exist yet (we've already thought of this need), then we should find a way soon for the functionality 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
-
Olivier Schmitt
- Messages: 44
- Registration: Oct 22, 2024 - 1:25 p.m.
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.
