Unfortunatly, i am not sure why you need this, something to do with the file copy command not being compatible with the default XML format. Says that this command is not to be converted into XML. Which deletes the log file we are going to use, then it just basically pauses for 20 seconds so that the link has had time to properly as in testing i have found that just because pp0.0 is up, the named process has not reloaded thus DNS resolution will not work yet, so 20 seconds after the interface has come up its all reloaded and ready to go. Says that if we do find a SNMP_TRAP_LINK_UP event that does have an interface-name of pp0.0 that we are going to execute an operationals command of "file delete /var/tmp/dyndnsupdate.log" When the trap is logged it also says what interface it is talking about so here we are just saying that we only care about the pp0.0 interface which in my case is a simple ADSL PPPOE connection which i want to update when the link goes down and comes back up again (possibly with a new IP address) Says that in that event we are looking for the interface-name of pp0.0. Says to the event engine that we are looking for the SNMP_TRAP_LINK_UP event So for example your URL could look likeĪs opposed to file copy /var/tmp/dyndnsupdate.logĪs for what the script does, I'll explain each line so that us newbies out there who are not experts like a lot of the people around here, can make sense of it rather than just copying and pasting it and not understanding what it actually does. It makes it a little easier too if rather than using your email address for the username you avail yourself of the option from no-ip to give yourself a proper username. So all you need to to are substitute, and with your relevant details. Snmp_trap_link_up.interface-name matches pp0.0 there has to be a simpler way that you can follow as a newbie such as myself, so here is my option that I use that show configuration event-options Once I changed it to write to /var/tmp it worked just fine, but i was thinking. There is a good generic script out there that I too used but i am not sure when it broke but i tried it on the latest JTAC recommended 12.1X46 release and found that it was not working because you could not write to the /var/log directory directory. I know over the years there has been a few threads about using no-ip and updating ones dynamic host address.
0 Comments
Leave a Reply. |