I have a small problem when I want to develop more extensive extensions that interact with a gateway. For example, I want to read information on the gateway and use it in my code.
Every time I call and execute the following function
smxProxy.sendRequest("request-commit", {"commands" : ["run-script script-name 'HA Test' script '…
so I always get the following windows to approve the action.
![p_approve_1_655654.png p_approve_1_655654.png](https://community.checkpoint.com/t5/image/serverpage/image-id/19506i6AA444986B492C4A/image-dimensions/466x176?v=v2)
When the script is executed on the gateway, I still get the success window.
![p_approve_2_655654.png p_approve_2_655654.png](https://community.checkpoint.com/t5/image/serverpage/image-id/19507iD10A13B8FC2DD898/image-dimensions/298x174?v=v2)
This makes interactive communication with the gateway impossible because I have to keep closing the windows.
I understand that this makes sense from a safety point of view. However, it does prevent you from writing interactive javascript code.
Now my question:
- Is there already a switch in the function "smxProxy.sendRequest " to prevent the windows from being displayed?
- Is there another way around this?
If there is no solution:
- Will you integrate this in the future?
- Or can I make a feature request here?
➜ CCSM Elite, CCME, CCTE ➜ www.checkpoint.tips