<html><head></head><body><div class="ydp2ea3a335yahoo-style-wrap" style="font-family:verdana, helvetica, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">Thank you for very prompt responses, and two workable suggestions.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I appreciate the help.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Rob</div><div dir="ltr" data-setdir="false">K7QJ<br></div><div><br></div>
</div><div id="ydp75adb1c7yahoo_quoted_9953153282" class="ydp75adb1c7yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Wednesday, November 23, 2022 at 12:00:21 PM PST, psdr-request@hamwan.org <psdr-request@hamwan.org> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Send PSDR mailing list submissions to<br></div><div dir="ltr"> <a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a><br></div><div dir="ltr"><br></div><div dir="ltr">To subscribe or unsubscribe via the World Wide Web, visit<br></div><div dir="ltr"> <a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr">or, via email, send a message with subject or body 'help' to<br></div><div dir="ltr"> <a href="mailto:psdr-request@hamwan.org" rel="nofollow" target="_blank">psdr-request@hamwan.org</a><br></div><div dir="ltr"><br></div><div dir="ltr">You can reach the person managing the list at<br></div><div dir="ltr"> <a href="mailto:psdr-owner@hamwan.org" rel="nofollow" target="_blank">psdr-owner@hamwan.org</a><br></div><div dir="ltr"><br></div><div dir="ltr">When replying, please edit your Subject line so it is more specific<br></div><div dir="ltr">than "Re: Contents of PSDR digest..."<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Today's Topics:<br></div><div dir="ltr"><br></div><div dir="ltr"> 1. RouterOS question (Rob Martin)<br></div><div dir="ltr"> 2. Re: RouterOS question (Tom Hayward)<br></div><div dir="ltr"> 3. Re: RouterOS question (Jamie Owens)<br></div><div dir="ltr"> 4. Re: RouterOS question (Bart Kus)<br></div><div dir="ltr"> 5. Re: RouterOS question (Stephen Kangas)<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">----------------------------------------------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 1<br></div><div dir="ltr">Date: Wed, 23 Nov 2022 03:00:30 +0000 (UTC)<br></div><div dir="ltr">From: Rob Martin <<a href="mailto:rgmrob@yahoo.com" rel="nofollow" target="_blank">rgmrob@yahoo.com</a>><br></div><div dir="ltr">To: Puget Sound Data Ring <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>><br></div><div dir="ltr">Subject: [HamWAN PSDR] RouterOS question<br></div><div dir="ltr">Message-ID: <<a href="mailto:735986746.3846576.1669172430587@mail.yahoo.com" rel="nofollow" target="_blank">735986746.3846576.1669172430587@mail.yahoo.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">I am trying to achieve something using RouterOS scripting, and I'm hoping that here I might find the appropriate expertise.<br></div><div dir="ltr"><br></div><div dir="ltr">>From a script running in a Mikrotik router I wish to pull in a copy of a file from an attached Windows computer. The computer is on the same subnet as the router.<br></div><div dir="ltr"><br></div><div dir="ltr">By way of illustration: <br></div><div dir="ltr"><br></div><div dir="ltr"> A file called test.xxx exists on a Windows computer in the folder c:\aaa\<br></div><div dir="ltr"> I want a copy of this file to appear in the attached router /file list. This copy "event" could be either a push from the computer, or a pull from the router.<br></div><div dir="ltr"><br></div><div dir="ltr">When using Winbox, this function is achieved easily using "drag and drop", but I need to automate the function.<br></div><div dir="ltr">Thanks.<br></div><div dir="ltr">RobK7QJ<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://mail.hamwan.net/pipermail/psdr/attachments/20221123/1180a0cf/attachment-0001.html" rel="nofollow" target="_blank">http://mail.hamwan.net/pipermail/psdr/attachments/20221123/1180a0cf/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 2<br></div><div dir="ltr">Date: Tue, 22 Nov 2022 21:46:48 -0800<br></div><div dir="ltr">From: Tom Hayward <<a href="mailto:tom@tomh.us" rel="nofollow" target="_blank">tom@tomh.us</a>><br></div><div dir="ltr">To: Rob Martin <<a href="mailto:rgmrob@yahoo.com" rel="nofollow" target="_blank">rgmrob@yahoo.com</a>>, Puget Sound Data Ring<br></div><div dir="ltr"> <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>><br></div><div dir="ltr">Subject: Re: [HamWAN PSDR] RouterOS question<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr"> <CAFXO5Z0rA1R+9ixw6+JrGVVpHf+AkYegjGb=<a href="mailto:OYiFDHdFxpEzig@mail.gmail.com" rel="nofollow" target="_blank">OYiFDHdFxpEzig@mail.gmail.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Sounds like you just need /tool fetch.<br></div><div dir="ltr"><a href="https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch" rel="nofollow" target="_blank">https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch</a><br></div><div dir="ltr"><br></div><div dir="ltr">The blacklist script is a thorough example:<br></div><div dir="ltr"><a href="https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc" rel="nofollow" target="_blank">https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc</a><br></div><div dir="ltr"><br></div><div dir="ltr">On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>> wrote:<br></div><div dir="ltr"><br></div><div dir="ltr">> I am trying to achieve something using RouterOS scripting, and I'm hoping<br></div><div dir="ltr">> that here I might find the appropriate expertise.<br></div><div dir="ltr">><br></div><div dir="ltr">> From a script running in a Mikrotik router I wish to pull in a copy of a<br></div><div dir="ltr">> file from an attached Windows computer. The computer is on the same subnet<br></div><div dir="ltr">> as the router.<br></div><div dir="ltr">><br></div><div dir="ltr">> By way of illustration:<br></div><div dir="ltr">><br></div><div dir="ltr">> A file called test.xxx exists on a Windows computer in the folder<br></div><div dir="ltr">> c:\aaa\<br></div><div dir="ltr">><br></div><div dir="ltr">> I want a copy of this file to appear in the attached router /file<br></div><div dir="ltr">> list. This copy "event" could be either a push from the computer, or a pull<br></div><div dir="ltr">> from the router.<br></div><div dir="ltr">><br></div><div dir="ltr">> When using Winbox, this function is achieved easily using "drag and drop",<br></div><div dir="ltr">> but I need to automate the function.<br></div><div dir="ltr">><br></div><div dir="ltr">> Thanks.<br></div><div dir="ltr">><br></div><div dir="ltr">> Rob<br></div><div dir="ltr">> K7QJ<br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> PSDR mailing list<br></div><div dir="ltr">> <a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a><br></div><div dir="ltr">> <a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr">><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://mail.hamwan.net/pipermail/psdr/attachments/20221122/e7ca8bce/attachment-0001.html" rel="nofollow" target="_blank">http://mail.hamwan.net/pipermail/psdr/attachments/20221122/e7ca8bce/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 3<br></div><div dir="ltr">Date: Wed, 23 Nov 2022 00:59:11 -0800<br></div><div dir="ltr">From: Jamie Owens <<a href="mailto:jlowens76@gmail.com" rel="nofollow" target="_blank">jlowens76@gmail.com</a>><br></div><div dir="ltr">To: Puget Sound Data Ring <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>><br></div><div dir="ltr">Cc: Rob Martin <<a href="mailto:rgmrob@yahoo.com" rel="nofollow" target="_blank">rgmrob@yahoo.com</a>><br></div><div dir="ltr">Subject: Re: [HamWAN PSDR] RouterOS question<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr"> <CABTA65cZqS1kv3tiKBDB-HOFLYq0j+A04=<a href="mailto:C82GZm1byLANdjNg@mail.gmail.com" rel="nofollow" target="_blank">C82GZm1byLANdjNg@mail.gmail.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Yep just use fetch with mpde=ftp and setup ftp server on windows box,<br></div><div dir="ltr">problem solved<br></div><div dir="ltr"><br></div><div dir="ltr">On Wed, Nov 23, 2022 at 12:57 AM Tom Hayward <<a href="mailto:tom@tomh.us" rel="nofollow" target="_blank">tom@tomh.us</a>> wrote:<br></div><div dir="ltr"><br></div><div dir="ltr">> Sounds like you just need /tool fetch.<br></div><div dir="ltr">> <a href="https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch" rel="nofollow" target="_blank">https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch</a><br></div><div dir="ltr">><br></div><div dir="ltr">> The blacklist script is a thorough example:<br></div><div dir="ltr">> <a href="https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc" rel="nofollow" target="_blank">https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc</a><br></div><div dir="ltr">><br></div><div dir="ltr">> On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">>> I am trying to achieve something using RouterOS scripting, and I'm hoping<br></div><div dir="ltr">>> that here I might find the appropriate expertise.<br></div><div dir="ltr">>><br></div><div dir="ltr">>> From a script running in a Mikrotik router I wish to pull in a copy of a<br></div><div dir="ltr">>> file from an attached Windows computer. The computer is on the same subnet<br></div><div dir="ltr">>> as the router.<br></div><div dir="ltr">>><br></div><div dir="ltr">>> By way of illustration:<br></div><div dir="ltr">>><br></div><div dir="ltr">>> A file called test.xxx exists on a Windows computer in the folder<br></div><div dir="ltr">>> c:\aaa\<br></div><div dir="ltr">>><br></div><div dir="ltr">>> I want a copy of this file to appear in the attached router /file<br></div><div dir="ltr">>> list. This copy "event" could be either a push from the computer, or a pull<br></div><div dir="ltr">>> from the router.<br></div><div dir="ltr">>><br></div><div dir="ltr">>> When using Winbox, this function is achieved easily using "drag and<br></div><div dir="ltr">>> drop", but I need to automate the function.<br></div><div dir="ltr">>><br></div><div dir="ltr">>> Thanks.<br></div><div dir="ltr">>><br></div><div dir="ltr">>> Rob<br></div><div dir="ltr">>> K7QJ<br></div><div dir="ltr">>><br></div><div dir="ltr">>><br></div><div dir="ltr">>> _______________________________________________<br></div><div dir="ltr">>> PSDR mailing list<br></div><div dir="ltr">>> <a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a><br></div><div dir="ltr">>> <a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr">>><br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> PSDR mailing list<br></div><div dir="ltr">> <a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a><br></div><div dir="ltr">> <a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr">><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">-- <br></div><div dir="ltr">Thanks,<br></div><div dir="ltr">Jamie Owens<br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://mail.hamwan.net/pipermail/psdr/attachments/20221123/96d9d3fa/attachment-0001.html" rel="nofollow" target="_blank">http://mail.hamwan.net/pipermail/psdr/attachments/20221123/96d9d3fa/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 4<br></div><div dir="ltr">Date: Wed, 23 Nov 2022 10:52:57 -0800<br></div><div dir="ltr">From: Bart Kus <<a href="mailto:me@bartk.us" rel="nofollow" target="_blank">me@bartk.us</a>><br></div><div dir="ltr">To: Puget Sound Data Ring <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>>, Jamie Owens<br></div><div dir="ltr"> <<a href="mailto:jlowens76@gmail.com" rel="nofollow" target="_blank">jlowens76@gmail.com</a>><br></div><div dir="ltr">Cc: Rob Martin <<a href="mailto:rgmrob@yahoo.com" rel="nofollow" target="_blank">rgmrob@yahoo.com</a>><br></div><div dir="ltr">Subject: Re: [HamWAN PSDR] RouterOS question<br></div><div dir="ltr">Message-ID: <<a href="mailto:9447e7d4-f7bd-04c4-0867-7ffb90a1245d@bartk.us" rel="nofollow" target="_blank">9447e7d4-f7bd-04c4-0867-7ffb90a1245d@bartk.us</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"; Format="flowed"<br></div><div dir="ltr"><br></div><div dir="ltr">Alternatively, you can push from Windows, by having an SSH key installed <br></div><div dir="ltr">and using SCP:<br></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://stackoverflow.com/questions/35292681/pscp-file-from-windows-to-linux-using-private-public-keys" rel="nofollow" target="_blank">https://stackoverflow.com/questions/35292681/pscp-file-from-windows-to-linux-using-private-public-keys</a><br></div><div dir="ltr"><br></div><div dir="ltr">--Bart<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">On 11/23/2022 12:59 AM, Jamie Owens wrote:<br></div><div dir="ltr">> Yep just use fetch with mpde=ftp and setup ftp server on windows box, <br></div><div dir="ltr">> problem solved<br></div><div dir="ltr">><br></div><div dir="ltr">> On Wed, Nov 23, 2022 at 12:57 AM Tom Hayward <<a href="mailto:tom@tomh.us" rel="nofollow" target="_blank">tom@tomh.us</a>> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">> Sounds like you just need /tool fetch.<br></div><div dir="ltr">> <a href="https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch" rel="nofollow" target="_blank">https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch</a><br></div><div dir="ltr">><br></div><div dir="ltr">> The blacklist script is a thorough example:<br></div><div dir="ltr">> <a href="https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc" rel="nofollow" target="_blank">https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc</a><br></div><div dir="ltr">><br></div><div dir="ltr">> On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>><br></div><div dir="ltr">> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">> I am trying to achieve something using RouterOS scripting, and<br></div><div dir="ltr">> I'm hoping that here I might find the appropriate expertise.<br></div><div dir="ltr">><br></div><div dir="ltr">> From a script running in a Mikrotik router I wish to pull in a<br></div><div dir="ltr">> copy of a file from an attached Windows computer. The computer<br></div><div dir="ltr">> is on the same subnet as the router.<br></div><div dir="ltr">><br></div><div dir="ltr">> By way of illustration:<br></div><div dir="ltr">><br></div><div dir="ltr">> A file called test.xxx exists on a Windows computer in<br></div><div dir="ltr">> the folder c:\aaa\<br></div><div dir="ltr">><br></div><div dir="ltr">> I want a copy of this file to appear in the attached<br></div><div dir="ltr">> router /file list. This copy "event" could be either a push<br></div><div dir="ltr">> from the computer, or a pull from the router.<br></div><div dir="ltr">><br></div><div dir="ltr">> When using Winbox, this function is achieved easily using<br></div><div dir="ltr">> "drag and drop", but I need to automate the function.<br></div><div dir="ltr">><br></div><div dir="ltr">> Thanks.<br></div><div dir="ltr">><br></div><div dir="ltr">> Rob<br></div><div dir="ltr">> K7QJ<br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> PSDR mailing list<br></div><div dir="ltr">> <a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a><br></div><div dir="ltr">> <a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr">><br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> PSDR mailing list<br></div><div dir="ltr">> <a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a><br></div><div dir="ltr">> <a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> -- <br></div><div dir="ltr">> Thanks,<br></div><div dir="ltr">> Jamie Owens<br></div><div dir="ltr">><br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> PSDR mailing list<br></div><div dir="ltr">> <a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a><br></div><div dir="ltr">> <a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://mail.hamwan.net/pipermail/psdr/attachments/20221123/aac81338/attachment-0001.html" rel="nofollow" target="_blank">http://mail.hamwan.net/pipermail/psdr/attachments/20221123/aac81338/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 5<br></div><div dir="ltr">Date: Wed, 23 Nov 2022 11:17:03 -0800<br></div><div dir="ltr">From: "Stephen Kangas" <<a href="mailto:stephen@kangas.com" rel="nofollow" target="_blank">stephen@kangas.com</a>><br></div><div dir="ltr">To: "'Puget Sound Data Ring'" <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>>, "'Jamie Owens'"<br></div><div dir="ltr"> <<a href="mailto:jlowens76@gmail.com" rel="nofollow" target="_blank">jlowens76@gmail.com</a>><br></div><div dir="ltr">Cc: 'Rob Martin' <<a href="mailto:rgmrob@yahoo.com" rel="nofollow" target="_blank">rgmrob@yahoo.com</a>><br></div><div dir="ltr">Subject: Re: [HamWAN PSDR] RouterOS question<br></div><div dir="ltr">Message-ID: <31e5201d8ff70$2de768b0$89b63a10$@kangas.com><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Bart’s suggestion is a better way as it is much more secure. Allowing FTP to be run at any time in RouterOS is asking for trouble, as it can be potentially be used for a bad actor to infect your device. SCP (Secure Copy Protocol) is not only encrypted but using Secure Shell (SSH) to access it helps prevent problems.<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">Stephen W9SK<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">From: PSDR <<a href="mailto:psdr-bounces@hamwan.org" rel="nofollow" target="_blank">psdr-bounces@hamwan.org</a>> On Behalf Of Bart Kus<br></div><div dir="ltr">Sent: Wednesday, November 23, 2022 10:53 AM<br></div><div dir="ltr">To: Puget Sound Data Ring <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>>; Jamie Owens <<a href="mailto:jlowens76@gmail.com" rel="nofollow" target="_blank">jlowens76@gmail.com</a>><br></div><div dir="ltr">Cc: Rob Martin <<a href="mailto:rgmrob@yahoo.com" rel="nofollow" target="_blank">rgmrob@yahoo.com</a>><br></div><div dir="ltr">Subject: Re: [HamWAN PSDR] RouterOS question<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">Alternatively, you can push from Windows, by having an SSH key installed and using SCP:<br></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://stackoverflow.com/questions/35292681/pscp-file-from-windows-to-linux-using-private-public-keys" rel="nofollow" target="_blank">https://stackoverflow.com/questions/35292681/pscp-file-from-windows-to-linux-using-private-public-keys</a><br></div><div dir="ltr"><br></div><div dir="ltr">--Bart<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">On 11/23/2022 12:59 AM, Jamie Owens wrote:<br></div><div dir="ltr"><br></div><div dir="ltr">Yep just use fetch with mpde=ftp and setup ftp server on windows box, problem solved<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">On Wed, Nov 23, 2022 at 12:57 AM Tom Hayward <<a href="mailto:tom@tomh.us" rel="nofollow" target="_blank">tom@tomh.us</a> <mailto:<a href="mailto:tom@tomh.us" rel="nofollow" target="_blank">tom@tomh.us</a>> > wrote:<br></div><div dir="ltr"><br></div><div dir="ltr">Sounds like you just need /tool fetch. <br></div><div dir="ltr"><br></div><div dir="ltr"><a href="https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch" rel="nofollow" target="_blank">https://wiki.mikrotik.com/wiki/Manual:Tools/Fetch</a><br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">The blacklist script is a thorough example: <a href="https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc" rel="nofollow" target="_blank">https://github.com/kd7lxl/blacklist-service/blob/master/block-address.rsc</a><br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">On Tue, Nov 22, 2022, 19:00 Rob Martin via PSDR <<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a> <mailto:<a href="mailto:psdr@hamwan.org" rel="nofollow" target="_blank">psdr@hamwan.org</a>> > wrote:<br></div><div dir="ltr"><br></div><div dir="ltr">I am trying to achieve something using RouterOS scripting, and I'm hoping that here I might find the appropriate expertise.<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">>From a script running in a Mikrotik router I wish to pull in a copy of a file from an attached Windows computer. The computer is on the same subnet as the router.<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">By way of illustration: <br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr"> A file called test.xxx exists on a Windows computer in the folder c:\aaa\<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr"> I want a copy of this file to appear in the attached router /file list. This copy "event" could be either a push from the computer, or a pull from the router.<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">When using Winbox, this function is achieved easily using "drag and drop", but I need to automate the function.<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">Thanks.<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">Rob<br></div><div dir="ltr"><br></div><div dir="ltr">K7QJ<br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">PSDR mailing list<br></div><div dir="ltr"><a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a> <mailto:<a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a>> <br></div><div dir="ltr"><a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">PSDR mailing list<br></div><div dir="ltr"><a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a> <mailto:<a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a>> <br></div><div dir="ltr"><a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">-- <br></div><div dir="ltr"><br></div><div dir="ltr">Thanks,<br></div><div dir="ltr"><br></div><div dir="ltr">Jamie Owens<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">PSDR mailing list<br></div><div dir="ltr"><a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a> <mailto:<a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a>> <br></div><div dir="ltr"><a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr"><br></div><div dir="ltr"> <br></div><div dir="ltr"><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://mail.hamwan.net/pipermail/psdr/attachments/20221123/0d4d6d51/attachment-0001.html" rel="nofollow" target="_blank">http://mail.hamwan.net/pipermail/psdr/attachments/20221123/0d4d6d51/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Subject: Digest Footer<br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">PSDR mailing list<br></div><div dir="ltr"><a href="mailto:PSDR@hamwan.org" rel="nofollow" target="_blank">PSDR@hamwan.org</a><br></div><div dir="ltr"><a href="http://mail.hamwan.net/mailman/listinfo/psdr" rel="nofollow" target="_blank">http://mail.hamwan.net/mailman/listinfo/psdr</a><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">End of PSDR Digest, Vol 117, Issue 1<br></div><div dir="ltr">************************************<br></div></div>
</div>
</div></body></html>