Page 1 of 1

How can I zero the amount of user usage by "SetUser"?

Posted: Tue Mar 12, 2024 6:43 pm
by heydariomid4
How can I zero the amount of user usage by "SetUser"?
"Ex.Recv.BroadcastBytes_u64": 617050966,
"Ex.Recv.BroadcastCount_u64": 4269721,
"Ex.Recv.UnicastBytes_u64": 149804008518,
"Ex.Recv.UnicastCount_u64": 129767970,
"Ex.Send.BroadcastBytes_u64": 90559536,
"Ex.Send.BroadcastCount_u64": 284149,
"Ex.Send.UnicastBytes_u64": 10503150177,
"Ex.Send.UnicastCount_u64": 47767761,

Re: How can I zero the amount of user usage by "SetUser"?

Posted: Tue Mar 12, 2024 10:10 pm
by solo
Modify this GetUser code for SetUser.

Re: How can I zero the amount of user usage by "SetUser"?

Posted: Wed Mar 13, 2024 3:41 pm
by heydariomid4
What is the problem with the code below zero?

Http::withBasicAuth('', 'password')->get('localhost/api/SetUser', [
'HubName_str' => 'VPN',
'Name_str' => 'user',
'Note_utf' => '',
'AuthType_u32' => 1,
'Auth_Password_str' => '1234',
'UsePolicy_bool' => 'true',
'policy:Access_bool' => 'true',
'Recv.BroadcastBytes_u64' => 0,
'Recv.BroadcastCount_u64' => 0,
'Recv.UnicastBytes_u64' => 0,
'Recv.UnicastCount_u64' => 0,
'Send.BroadcastBytes_u64' => 0,
'Send.BroadcastCount_u64' => 0,
'Send.UnicastBytes_u64' => 0,
'Send.UnicastCount_u64' => 0,

]);