How to check a import file prior to importing it?

Hi Gurus,

Is there a way to check if a file is ok before importing it?

Thank you,

Chem

open it in a text editor and see if it looks fine :slight_smile:

Hi Normis,

I am afraid that I upload a broken import file and service would screw up…
No way to do that?

to make sure that everything is ok with your file:

  1. create export file that contains the configuration
  2. download it to your PC and edit to your liking
  3. upload back the file to the router
  4. download file from router to new location and run diff on that and upload file
  5. if there is no difference run the file.
  6. check if router is reachable and working correctly

more simple way - check the file size on router and original file.

Hi,

The problem is that the file to be imported is generated automatically, and it delete then creates interface address, dhcp leases, networks, fireall rules and queues. So I cant check against other files.

Thank you,

ChemiChon

you do not have to check against different files, and if you are using linux it is very easy:

first, upload, then download the same file again in new location, diff it, with original you just uploaded if it returns something - you have to upload that file again as it failed to upload completely.

What if file is correct but commands are messed up?

It would be nice if MT script can turn safe mode on and off. That way, each script could start fwith turning save mode on, and end with safemode of. If everything is ok, script wil reach it’s end. otherwise it will stop in middle of the job, and safe mode will save the day.