My goal is to have a wad of text where I can put two schedules and two
scripts created.

I want to ssh in.  Paste.  Logout.  Next router.  For 30 or so routers.

On 7/15/09, Casey Mills <wkm...@gmail.com> wrote:
> Josh
>
>   What is your real goal.  Do you want to be able to backup and
> restore or do you want to be able to restore from a script.  If you
> just want to be able to backup and restore I suggest doing a real
> backup (/system backup save name=RouterBackup).  If you want to
> automate it I'm pretty sure it is on the wiki.  Otherwise you need to
> start at line 8 column 26.
>
> Casey
>
>
>
>
> On Wed, Jul 15, 2009 at 8:31 PM, Josh
> Luthman<j...@imaginenetworksllc.com> wrote:
>> Hmm.  Any suggestions how to batch that backup script?
>>
>> On 7/15/09, Keith Barber <ke...@reliablevi.com> wrote:
>>> The export files always need love and care.  Aka. You have to peicemail
>>> it.
>>>
>>> A straigh importr never works.
>>>
>>>
>>> -Keith-
>>>
>>> >From my phone...
>>>
>>> -----Original Message-----
>>> From: Josh Luthman <j...@imaginenetworksllc.com>
>>>
>>> Date: Wed, 15 Jul 2009 20:20:35
>>> To: Mikrotik discussions<mikrotik@mail.butchevans.com>
>>> Subject: Re: [Mikrotik] Exporting and Importing system scripts
>>>
>>>
>>> Still doesn't do the import -
>>>
>>> /import scripts.rsc
>>> Opening script file scripts.rsc
>>>
>>> Script file loaded successfullysyntax error (line 8 column 26)
>>>
>>> Josh Luthman
>>> Office: 937-552-2340
>>> Direct: 937-552-2343
>>> 1100 Wayne St
>>> Suite 1337
>>> Troy, OH 45373
>>>
>>> "When you have eliminated the impossible, that which remains, however
>>> improbable, must be the truth."
>>> --- Sir Arthur Conan Doyle
>>>
>>>
>>> On Wed, Jul 15, 2009 at 9:43 AM, Casey Mills <wkm...@gmail.com> wrote:
>>>
>>>> Specify a file name on the export.  That way you aren't copying and
>>>> pasting.  I think you can drag and drop files from Winbox right?  Then
>>>> you can use a text editor to edit the file where needed.
>>>>
>>>> Casey
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Jul 15, 2009 at 9:20 AM, Josh
>>>> Luthman<j...@imaginenetworksllc.com> wrote:
>>>> > Let me explain it differently.
>>>> >
>>>> > Using the Winbox created a system script with these commands:
>>>> >
>>>> > :log info "Starting Backup Script..."
>>>> > :global backupfiletext ([/system identity get name])
>>>> > /file rem $backupfiletext
>>>> > :delay 2s
>>>> > /export file=$backupfiletext
>>>> > :log info "Waiting 5s for backup to complete..."
>>>> > :delay 5s
>>>> > :log info "Backup being emailed..."
>>>> > /tool e-mail send to="yath...@imaginenetworksllc.com"
>>>> > subject=([/system
>>>> > identity get name] . " Backup")
>>>> > from=mtback...@imaginenetworksllc.comfile=$backupfiletext
>>>> > body=[/system identity get name] server=4.2.2.2
>>>> > :log info "Finished Backup Script!"
>>>> >
>>>> > Now type /sys script export
>>>> >
>>>> > Now copy/paste the output from/to the same prompt
>>>> >
>>>> > Watch it error out (probably invalid argument name)
>>>> >
>>>> > There doesn't look to be anything unique, but even if there were it
>>>> should
>>>> > not cause an issue importing it to the same MikroTik from which it was
>>>> > exported!
>>>> >
>>>> > Josh Luthman
>>>> > Office: 937-552-2340
>>>> > Direct: 937-552-2343
>>>> > 1100 Wayne St
>>>> > Suite 1337
>>>> > Troy, OH 45373
>>>> >
>>>> > "When you have eliminated the impossible, that which remains, however
>>>> > improbable, must be the truth."
>>>> > --- Sir Arthur Conan Doyle
>>>> >
>>>> >
>>>> > On Wed, Jul 15, 2009 at 3:32 AM, Hilton Ralphs <hil...@think.co.za>
>>>> wrote:
>>>> >
>>>> >> Firstly the order of items in an export is not ideal for an import.
>>>> >>
>>>> >> You have to juggle sections around in a logical orderl pretend you
>>>> >> are
>>>> >> actually typing the commands.
>>>> >>
>>>> >> So effectively you need to remove all references to MAC addresses as
>>>> this
>>>> >> buggers things up. Import the interface section first.
>>>> >>
>>>> >> Hope this helps.
>>>> >>
>>>> >> --
>>>> >> Regards
>>>> >> Hilton J Ralphs
>>>> >> Think Technologies
>>>> >>
>>>> >> -----Original Message-----
>>>> >> From: Josh Luthman
>>>> >>
>>>> >> Has anyone tried importing a system script before?
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >> _______________________________________________
>>>> >> Mikrotik mailing list
>>>> >> Mikrotik@mail.butchevans.com
>>>> >> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>> >>
>>>> >> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>>> >> RouterOS
>>>> >>
>>>> > -------------- next part --------------
>>>> > An HTML attachment was scrubbed...
>>>> > URL: <
>>>> http://www.butchevans.com/pipermail/mikrotik/attachments/20090715/53c432fb/attachment.html
>>>> >
>>>> > _______________________________________________
>>>> > Mikrotik mailing list
>>>> > Mikrotik@mail.butchevans.com
>>>> > http://www.butchevans.com/mailman/listinfo/mikrotik
>>>> >
>>>> > Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>>> RouterOS
>>>> >
>>>> _______________________________________________
>>>> Mikrotik mailing list
>>>> Mikrotik@mail.butchevans.com
>>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>>
>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>>> RouterOS
>>>>
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL:
>>> <http://www.butchevans.com/pipermail/mikrotik/attachments/20090715/e9ec2a8c/attachment.html>
>>> _______________________________________________
>>> Mikrotik mailing list
>>> Mikrotik@mail.butchevans.com
>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>
>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>> RouterOS
>>> _______________________________________________
>>> Mikrotik mailing list
>>> Mikrotik@mail.butchevans.com
>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>
>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>> RouterOS
>>>
>>
>>
>> --
>> Josh Luthman
>> Office: 937-552-2340
>> Direct: 937-552-2343
>> 1100 Wayne St
>> Suite 1337
>> Troy, OH 45373
>>
>> "When you have eliminated the impossible, that which remains, however
>> improbable, must be the truth."
>> --- Sir Arthur Conan Doyle
>> _______________________________________________
>> Mikrotik mailing list
>> Mikrotik@mail.butchevans.com
>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>
>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>> RouterOS
>>
> _______________________________________________
> Mikrotik mailing list
> Mikrotik@mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS
>


-- 
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle
_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to