Follow us on...
Follow us on G+ Follow us on Twitter Follow us on Facebook Watch us on YouTube
Register
Results 1 to 8 of 8
  1. #1
    Status
    Offline
    zdienos's Avatar
    Forum Guru
    Join Date
    Feb 2010
    Location
    ~/makasar
    Posts
    1,252
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0

    [Share] Reset Time User Hotspot (bukan userman) yang session time-nya sudah habis

    Sedikit modifikasi script

    oleh bro

    Digunakan untuk mereset user hotspot (bukan userman), biasanya untuk user paket quota perbulan, yang session time-nya sudah habis...
    Daripada harus manual satu-satu resetnya
    Code:
    /ip hotspot user reset-counters namauser
    Mending dibuatin script automatisnya... Click here to enlarge

    Code:
    :foreach item in=[/ip hotspot user find] do={:if ([/ip hotspot user get $item uptime]=[/ip hotspot user get $item limit-uptime]) do={
    :log warning ("resetting user $[/ip hotspot user get $item name]...")
    /ip hotspot user reset-counters [/ip hotspot user get $item name]
    }
    }


    tested on v4.6

    nb: REPOST gak yah, kalo kayak gitu ???? Click here to enlarge
    Last edited by zdienos; 16-04-2011 at 11:09.

  2. The Following 4 Users Say Thank You to zdienos For This Useful Post:


  3. #2
    Status
    Offline
    Yudhiez's Avatar
    Member Senior
    Join Date
    Sep 2008
    Location
    Solohadiningrat
    Posts
    302
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Thank's Bro,...it's work...
    ini yang saya cari, saya butuh manual aja.

  4. #3
    Status
    Offline
    tyang_dusun's Avatar
    Member Super Senior
    Join Date
    Jun 2008
    Location
    Klaten, Jawa Tengah, Indonesia, Indonesia
    Posts
    521
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    itu berjalan di versi berapa breuw .... ???

    ikutan nyoba ...

  5. #4
    Status
    Offline
    zdienos's Avatar
    Forum Guru
    Join Date
    Feb 2010
    Location
    ~/makasar
    Posts
    1,252
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by tyang_dusun Click here to enlarge
    itu berjalan di versi berapa breuw .... ???
    ikutan nyoba ...
    tested on ROS v4.6

  6. #5
    Status
    Offline
    Vandal's Avatar
    Member
    Join Date
    May 2011
    Location
    Port 3128
    Posts
    107
    Reviews
    Read 0 Reviews
    Downloads
    2
    Uploads
    0
    Feedback Score
    0
    Tested 5.11 Working.. makasi gan.. hahahahhaha... Thankz meluncur gan..

    Click here to enlargeClick here to enlarge

  7. #6
    Status
    Offline
    mustikanet's Avatar
    Member Senior
    Join Date
    Oct 2010
    Location
    http://mustikanet.com
    Posts
    445
    Reviews
    Read 0 Reviews
    Downloads
    4
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by zdienos Click here to enlarge
    Sedikit modifikasi script

    oleh bro

    Digunakan untuk mereset user hotspot (bukan userman), biasanya untuk user paket quota perbulan, yang session time-nya sudah habis...
    Daripada harus manual satu-satu resetnya
    Code:
    /ip hotspot user reset-counters namauser
    Mending dibuatin script automatisnya... Click here to enlarge

    Code:
    :foreach item in=[/ip hotspot user find] do={:if ([/ip hotspot user get $item uptime]=[/ip hotspot user get $item limit-uptime]) do={
    :log warning ("resetting user $[/ip hotspot user get $item name]...")
    /ip hotspot user reset-counters [/ip hotspot user get $item name]
    }
    }


    tested on v4.6

    nb: REPOST gak yah, kalo kayak gitu ???? Click here to enlarge
    Bos yang untuk USERMAN ada gak scriptnya...

  8. #7
    Status
    Offline
    Poer's Avatar
    Newbie
    Join Date
    Sep 2009
    Posts
    25
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Maaf bos kalau untuk mereset user hotspot yang pakai userman, caranya gimana?
    sudah saya coba pakai cek list user, terus saya reset counter, tapi masih kelimit juga.
    mohon bantuannya. Terimakasih.
    Last edited by Poer; 15-04-2012 at 08:48.

  9. #8
    Status
    Offline
    zdienos's Avatar
    Forum Guru
    Join Date
    Feb 2010
    Location
    ~/makasar
    Posts
    1,252
    Reviews
    Read 0 Reviews
    Downloads
    0
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by mustikanet Click here to enlarge
    Bos yang untuk USERMAN ada gak scriptnya...
    Click here to enlarge Originally Posted by Poer Click here to enlarge
    Maaf bos kalau untuk mereset user hotspot yang pakai userman, caranya gimana?
    sudah saya coba pakai cek list user, terus saya reset counter, tapi masih kelimit juga.
    mohon bantuannya. Terimakasih.
    wahh, gak dibaca nih pejwannya..
    situ kan ada link, awalnya emang utk userman, dan sy modifikasi sedikit untuk penggunaan user hotspot yang bukan userman


 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Buat time scheduler berdasarkan user profile
    By 3c1 in forum Scripting @ Mikrotik
    Replies: 25
    Last Post: 06-02-2015, 14:45
  2. need help !! session time left ngk keluar !!
    By wie_chang81 in forum HotSpot, The Dude & User Manager
    Replies: 5
    Last Post: 31-10-2012, 12:44
  3. RB750, masalah Date dan Time yg auto-reset
    By ahmad210993 in forum Beginner Basics
    Replies: 11
    Last Post: 07-04-2012, 13:51
  4. User Manager session Time & date
    By maone032 in forum HotSpot, The Dude & User Manager
    Replies: 3
    Last Post: 10-08-2009, 21:29
  5. [ask] hotspot set time
    By gundala in forum Wireless Networking
    Replies: 0
    Last Post: 19-04-2009, 08:38

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •