We are trying to upload some files through ftp. The problem we have is that we can’t create new folders using ftp commands (restriction issues). We have tried with WS_FTP and command-line in ms-dos (win).
oh.. i see
realy.... i never try to make folder to routing system. i don't want cause any files complicated with system files. and i must keep clean it
yes. normally all my files keep in APPLE server. and central remote logs in windows for all my RBs and x86-router.
again i love clean on routing system. this's my suggestion.
thanks n@rmis good for your suggestion..
regards Hasbullah.com
Assuming we can´t use mikrotik as a server we would like to figure out something to massively update or change the welcome webpage of the huge amount of hotspots that we have spread in our network. That is actually the reason because we were interesting on using batch code plus ftp commands.
We know some other systems are able to host their welcome webpages on remote but we don’t think that is the case of mikrotik.
you would have to set the html directory parameter on all of the routers, then the directories would be automatically created. then your FTP batch job would work.
Yes, I create the Hotspot and with the subfolders are created automatically. The problem is that the ftp batch job can’t create subfolders inside that one.
I will explain the entire process:
Create and setup the hotspot with default parameters. Ok, I have the “hotspot” folder now.
I use drad-and-drop and create another folder, “akiwifi”.
I change the “html directory” parameter to link to the new folder (“akiwifi”).
Now I want to update the akiwifi folder via ftp batch job, but the problem is that it can’t create subfolders inside “akiwifi”. I do can create files, but not folders.
Yes, we know that could be a solution…but there isn’t any alternative?? We use the same structure that the default folder created by the MT… Doesn’t make sense we have to do a non-folder webpage.
I paste the problem here:
C:\Documents and Settings\NOC\Escritorio>ftp 192.168.6.2
Conectado a 192.168.6.2.
220 MT1 FTP server (MikroTik 2.9.24) ready
Usuario (192.168.6.2:(none)): admin
331 Password required for admin
Contraseña:
230 User admin logged in
ftp> dir
200 PORT command successful
150 Opening data connection
drw-rw---- 1 root root 2048 Jan 2 01:01 as
drw-rw---- 1 root root 2048 Jan 1 00:04 hotspot
226 Transfer complete
ftp: 123 bytes recibidos en 0,05 segundos 2,62 a KB/s.
ftp> mkdir d
500 ‘XMKD’: command not understood
ftp> cd hotspot
250 CWD command successful
ftp> mkdir ejemplo
500 ‘XMKD’: command not understood
ftp>
you have to use only the same files as RouterOS creates in the HTML-Directory. You will not be able to use different file structure. This is all about modification of existing pages.
actually, it seems that windows command line ftp client is at fault. making directories works with any normal ftp client. the error that you received means that windows uses ftp mkdir command according to specifications from 1980 (google it up and you will see