1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Tomato] SNMP-ish

Discussion in 'Tomato Firmware' started by bokh, Sep 19, 2006.

  1. bokh

    bokh LI Guru Member

    I just "discovered" there is some SNMP-like data being recorded in "Tomato".
    When you telnet or ssh in, there is this:
    # cat /proc/net/snmp
    Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates
    Ip: 1 64 346988 0 0 319984 0 0 22007 22574 184 0 0 0 0 0 0 0 0
    Icmp: InMsgs InErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutDestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps
    Icmp: 1 0 1 0 0 0 0 0 0 0 0 0 0 203 0 19 0 0 0 184 0 0 0 0 0 0
    Tcp: RtoAlgorithm RtoMin RtoMax MaxConn ActiveOpens PassiveOpens AttemptFails EstabResets CurrEstab InSegs OutSegs RetransSegs InErrs OutRsts
    Tcp: 0 0 0 0 3 446 0 0 2 10321 10986 28 0 4
    Udp: InDatagrams NoPorts InErrors OutDatagrams
    Udp: 11413 19 0 11566
    This is AFAIK used for the bandwidth-logging, but there must be some more that can be done with it.
    Any ideas (like nice scripts) here?
  2. pablito

    pablito Network Guru Member

    Without looking into what tomato is doing SNMP wise I'm guessing it is like any other SNMP. You would normally use another machine to query and plot the data (mrtg etc). I think internally tomato uses the data for the bandwidth plots and trafic data it presents.

    It can likely run scripts to do other tricks but if you have an SNMP setup on another box (any linux box for example) you can find tons of scripts and apps for SNMP.

    If running all defaults:
    "snmpwalk -Os -c public -v 1 system"
    Obviously you'd want to change defaults..
  3. bokh

    bokh LI Guru Member

    Nope... that won't work - I've tried that before posting here.
    It's not SNMP as we know it like listening on ports 161/162, hence the title of this thread "SNMP-ish".

Share This Page