Files
FemaTests/tests/check-ips.sh
2025-08-08 19:45:10 +03:00

6 lines
471 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# List all extra fields
#ssh root@62.217.183.88 -t 'cd /var/lib/docker/volumes/fema_storage/_data; find -name params.json | while read file; do echo "$file - $(cat $file | jq ".EXTRA")"; done'
# List ips for volgabus
ssh root@62.217.183.88 -t 'cd /var/lib/docker/volumes/fema_storage/_data; find -name params.json | while read file; do echo "$file - $(cat $file | jq "if (.SYSTEM.REG_NUMBER | contains(\"АВТ\")) then .EXTRA else \"NONE\" end")"; done | grep -v NONE'