Advertisement
sopyanx

Rubah max limit sesuai quota

Oct 5th, 2017
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. ###########################################
  2. # Script by Agus Ramadhani
  3. # fb.com/buananet.pangkalanbun
  4. ###########################################
  5. :local INTMon (ether masing2)
  6. :local RXByteCur [/interface get $INTMon rx-byte];
  7. :local RXByte [/system scheduler get RXByte.log on-event];
  8. :local TXByteCur [/interface get $INTMon tx-byte];
  9. :local TXByte [/system scheduler get TXByte.log on-event];
  10. :local RXTot ($RXByte+$RXByteCur);
  11. :local TXTot ($TXByte+$TXByteCur);
  12. :local RXTotGIG ($RXTot / 1024 / 1024 / 1024);
  13. :local TXTotGIG ($TXTot / 1024 / 1024 / 1024);
  14. :local RXTXGIG ($RXTotGIG+$TXTotGIG);
  15. if (($RXTXGIG >= 300) and ($RXTXGIG <= 400)) do={
  16. /queue tree set "6.contoh" max-limit=7000k;
  17. }
  18. if (($RXTXGIG >= 500) and ($RXTXGIG <= 1000)) do={
  19. /queue tree set "6.contoh" max-limit=4000k;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement