aboutsummaryrefslogtreecommitdiff
path: root/e3372-clear-traffic-stats.sh
blob: 9b902d96f746719408dd54259a04260fcb0a7359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
. "$DIR/config.sh"

get_token

curl -s -X POST "http://$MODEM_IP/api/monitoring/clear-traffic" \
    -H "Cookie: $COOKIE" \
    -H "__RequestVerificationToken: $TOKEN" \
    -H "Content-Type: text/xml" \
    -d "<request><ClearTraffic>1</ClearTraffic></request>" >modem_status.xml

cat modem_status.xml