Save Bandwidth Monitoring on CIFS. But what if the PC is off?

Discussion in 'Tomato Firmware' started by rioachim, May 17, 2008.

  1. rioachim

    rioachim Addicted to LI Member

    Hello. I managed just fine to save the Bandwidth logs on a CIFS mounted share.
    The thing is that the shared folder is on my laptop. So, if I turn the laptop off, when the router will try to save the history, I get:

    May 17 00:14:54 user.err kernel: CIFS VFS: Error 0xffffff6d or on cifs_get_inode_info in lookup

    and of course the CIFS1 gets unmounted. When I turn the laptop back on I have to re-mount the folder in the router's CIFS client. My questions are: is it necessary for me to do this every time, or will the router re-mount it by itself (if my laptop is available) the next time it tries to save the log? Also does the history get lost in the meantime?

    Thank you.
  2. rioachim

    rioachim Addicted to LI Member

    well, I tried it and it seems it works just fine. The bandwidth log is saved into RAM and the CIFS share is mounted automatically if the computer is available. Afterwards the log gets saved on the specified computer.

    Since there are not so many posts about mounting a CIFS share from a Vista computer, I'll briefly tell how I did it. Even if it's trivial.

    On the target computer, first go to Control Panel -> Administrative Tools -> Computer Management -> Local Users and Groups -> Users. We will create a new user, let's name it Linksys. The reason to create a new user is that maybe you don't want to let the router use your local administrator account. Or maybe your administrator account has special characters in its name (e.g. mine was Rãzvan) which didn't work in Tomato's CIFS client. So, right click, choose "New User", "User Name": Linksys, "Full Name"/"Description" are optional. Enter a password, untick "User must change password at next logon" and tick "Password never expires" and CREATE.

    If we would leave it that way, it would appear on the logon screen. We do not want that, do we? So, right click on it, properties, (delete "Full name" entry if you want) and go to "Member of" tab. It will be listed as a member of Users group. Select that entry and press Remove and OK.

    The next step is to create a folder you want to share on your local drive. Right click, select Share and add Linksys user as a co-owner (or add Linksys user with full read/write permissions set in "Sharing" and "Security" Properties tabs if you like to do it the old-school way).

    Now we move to your router. Administration -> CIFS Client is the way to go. We enable /cifs1 and fill in UNC, Username and Password (e.g. UNC: \\\Bandwidth ; Username: Linksys). We save the settings. From Bandwidth -> Configure we change the "Save History Location" from RAM to CIFS1. I use a "save frequency" of 9 hours, because I'm working during the day and the computer would be probably off on a 12/24hours save plan :). Next it is VERY important that we tick "Create New File/Reset Data" for this first time, so that a new file is created. We save the settings and enjoy our permanent Bandwidth monitor.

    Have fun, thanks' for reading, and thank Jonathan Zarate for Tomato.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice