deactivate multiple virtualports at once #310
-
How can i activate or deactivate multiple virtualinput-ports at once? i created an small exe, which actually set virtualiput-ports via: http://user:password@IP/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=10 with an headless browser. → for 20 devices is it possible to set every port at once? i tried ..../deactivate.cgi?schemaversion=1&port=10&port11 for now it opens 20+ browsertabs in headless-mode, which is not that optimal xD |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @DerAffenkoenig , VAPIX documentation for Virtual input API You can try to this using script or batch file like below: Activate_20_virtual_inputs.sh#!/bin/bash
for ((i=1; i <= 20; i++))
do
echo "$i"
curl -s --anyauth -u "root:pass" "http://169.254.212.55/axis-cgi/virtualinput/activate.cgi?schemaversion=1&port=$i"
done Deactivate_20_virtual_inputs.sh#!/bin/bash
for ((i=1; i <= 20; i++))
do
echo "$i"
curl -s --anyauth -u "root:pass" "http://169.254.212.55/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=$i"
done |
Beta Was this translation helpful? Give feedback.
Hi @DerAffenkoenig ,
I don't think there is any API available currently to merge all port activation and deactivation from single API.
VAPIX documentation for Virtual input API
You can try to this using script or batch file like below:
Activate_20_virtual_inputs.sh
Deactivate_20_virtual_inputs.sh
Output: