Follow us on...
Follow us on G+ Follow us on Twitter Follow us on Facebook Watch us on YouTube
Register
Results 1 to 7 of 7
  1. #1
    Status
    Offline
    Noeg Waskito's Avatar
    Member Senior
    Join Date
    Aug 2012
    Location
    Jogja
    Posts
    405
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0

    Apa yang salah dari script ini?

    :local cu1IP;
    :local cu2IP;

    :local ne1IP [/ip address get [find where interface="ether1"] address];
    :local ne2IP [/ip address get [find where interface="ppp-out1"] address];

    :if ($ne1IP != $cu1IP || $ne2IP != $cu2IP) do={
    :set cu1IP $ne1IP;
    :set cu2IP $ne2IP;
    }

    kok error di syntax :if ($ne1IP != $cu1IP || $ne2IP != $cu2IP)?

  2. #2
    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
    gak error koq... Click here to enlarge

    Click here to enlarge

  3. #3
    Status
    Offline
    Noeg Waskito's Avatar
    Member Senior
    Join Date
    Aug 2012
    Location
    Jogja
    Posts
    405
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    ane pake rb751u2hnd error Gan

  4. #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
    saya pake RB750
    ROS v4.11

  5. #5
    Status
    Offline
    dhopack's Avatar
    Forum Guru
    Join Date
    Dec 2010
    Location
    KUDUS
    Posts
    1,919
    Reviews
    Read 0 Reviews
    Downloads
    2
    Uploads
    0
    Feedback Score
    0
    sori oot dikit
    ini script untuk apa ya?kok kyae keren(gak mudeng blas tentang script menyecript Click here to enlarge )

  6. #6
    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 dhopack Click here to enlarge
    sori oot dikit
    ini script untuk apa ya?kok kyae keren(gak mudeng blas tentang script menyecript Click here to enlarge )
    kayaknya untuk mengetahui berapa IP Address untuk suatu interface,
    kalau contoh di atas, untuk mengetahui IP Address untuk interface ether1 dan ppp-out1.
    mungkin karena IP Addressnya dynamic, dan sering berubah-ubah.

    kenapa sy bilang dinamis ?
    karena ada metode "pencocokan" pada skrip tersebut, di mana jika IP yang baru tidak sama dengan IP yang lama, maka ambil IP yang baru tersebut, simpan ke variabel..

    Code:
    :if ($ne1IP != $cu1IP || $ne2IP != $cu2IP) do={
    :set cu1IP $ne1IP;
    :set cu2IP $ne2IP;
    }
    dan tak lupa, CMIIW

  7. The Following User Says Thank You to zdienos For This Useful Post:


  8. #7
    Status
    Offline
    Noeg Waskito's Avatar
    Member Senior
    Join Date
    Aug 2012
    Location
    Jogja
    Posts
    405
    Reviews
    Read 0 Reviews
    Downloads
    1
    Uploads
    0
    Feedback Score
    0
    Click here to enlarge Originally Posted by zdienos Click here to enlarge
    saya pake RB750
    ROS v4.11
    saya pake 751u2hnd ROS 5.20
    anehnya,saya pasang di 450G ROS 5.20 lancar jaya

    ntu script buat cek IP WAN yg dinamis,ntar bawahnya bisa ditambahin kirim ke email kita

 

 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. script send email bila salah satu gateway down
    By bimo2700mf in forum Scripting @ Mikrotik
    Replies: 4
    Last Post: 13-03-2013, 16:22
  2. Apa yang salah di Mangle?
    By sujudku in forum Beginner Basics
    Replies: 2
    Last Post: 14-08-2011, 11:10
  3. Settingan ini ada yang salah gak ya,
    By azteric in forum Scripting @ Mikrotik
    Replies: 9
    Last Post: 18-02-2010, 21:19
  4. [ask] setingan queue tree nya apa ada yang salah ?
    By botakedan in forum General Networking
    Replies: 13
    Last Post: 23-08-2008, 17:40

Posting Permissions

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