What's new

CIFS support for saving logs externally?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Moogle Stiltzkin

Regular Contributor
Hi Merlin,

Was wondering if the firmware will add CIFS support in the future?

Previously in tomato i would save my log files to my QNAP NAS device using the CIFS method. This method is great because it does not use any ram or flash space to store the data. Instead the log gets saved remotely on a CIFS share on my qnap which has ample storage space.

Also since it's a proper storage solution, i can rest easy that my logs are safely backed up.

The process is really simple to setup and use too. Just create a share on QNAP. Then in router just input the CIFS share location and login credentials, thats it. Even if the router gets factory reset, the logs will load backup with all your data once you finish re-adding the CIFS details.

This feature would be great if you decide to add it in the future :}

2011-09-20_135613.jpg


2011-09-20_142416.jpg


CIFS 1/2: Tomato has a small CIFS (Common Internet File System) client built in. Essentially this allows Tomato to access a Samba/Windows Share share and mount it like a drive. If you want to archive your logs without worrying about running out of space this is your best option. It requires minimal configuration which we’ll delve into in the next section.
http://www.howtogeek.com/74881/how-to-monitor-and-log-your-bandwidth-usage-with-tomato/



also why the current option is not sufficient
JFFS2: The Journaling Flash File System is a portion of NVRAM specifically formatted for file writing. It’s still not very big but for month-by-month logging it should be adequate.The problem with both the NVRAM/JFFS2 is that neither system was designed for frequent writing. There’s no sense prematurely wearing out a component in your router when there are alternatives, like CIFS.
 
Last edited:
according to features says it supports CIFS client but i could not find it in the firmware settings

  • CIFS client support (for mounting remote SMB share on the router)
http://asuswrt.lostrealm.ca/features


*update

i went to tools > other settings

traffic history location > custom location

that is the CIFS setting?
Save history location
Directory must end with a '/'.

but CIFS is \\ isn't it? Also there doesn't seem to be any credential login info to input :/

checked a guide it says thats for USB flash drive though


    • To log stats, insert a USB thumb drive. It can be tiny and slow if you want. Navigate to "System Log->General Log" hit "Refresh". Copy the contents down and search them for the mount messages. In my case, the only message was "Jan 3 18:47:16 hotplug[1032]: USB vfat fs at /dev/sda mounted on /tmp/mnt/1GB", and that corresponds to @ /mnt/1GB for short since /mnt is a symlink to /tmp/mnt. Write this down.
    • Navigate to "Tools->Other Settings" and set "Traffic history location" to "Custom location".
    • Set "Save history location" to the value you wrote down in step 8, select "Create or reset data files" (if this is the first time you have done this on this disk) and hit "Apply".


http://blog.ittoby.com/2013/01/setup-and-tweak-your-new-asus-rt-ac66u.html


 
Last edited:
in the readme it says
** Mounting remote CIFS shares on the router **
You can mount remote SMB shares on your router. The syntax will
be something like this:

mount \\\\192.168.1.100\\ShareName /cifs1 -t cifs -o "username=User,password=Pass"

(backslashes must be doubled.)

where do i enter this? also will this setting be saved to work after reboot? or do i need to re-enter everytime after reboot?

also once doing this, what do i enter under remote log for external location ?
 
You need to create a user script to mount your shares. See the Wiki for more information on user scripts.

https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts

The remote logging requires a syslog server running on the remote end, and you provide that syslog server's IP address there. It's not for file-based logging.
 
hi merlin ty for your feedback.

i'll try read into that and figure it out. at least i got a lead :}

PS: i'm a new RT-Merlin convert using a new Asus RT-AC68U. Before this i was using Shibby Tomato on a E2400V1 Linksys router. i liked your approach to firmware ;)


*update

found your old post

automount can be done through a user script (see the README on how to use them). For this case, I would probably put it in services-start so to ensure that your network is already up and running. Keep in mind that you won't have to escape slashes in the script (so // instead of //// for example).

There's no real way to display mounted shares on the webui unfortunately.

I might eventually implement CIFS/SMB mounting on the webui, at which point I would report mount status and space usage on the Sysinfo page. No promise tho, got too much on my plate already.

http://www.snbforums.com/threads/mo...usb-asus-tools-for-downloads.7827/#post-46844

+1 :D
 
Last edited:

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top