Re: monitoring cisco via snmpget




davide.papagno@xxxxxxxxx wrote:
Hi all.
I need to monitor my cisco 2600 router with simple snmp cli command.
I just wanna know if is this the correct way:

fastethernet input and output traffic
I use:

snmpget -v 2c -c public -Oqv router IF-MIB::ifInOctets.2
snmpget -v 2c -c public -Oqv router IF-MIB::ifOutOctets.2

what I get is:

3143069294
3275366667

are they bytes?
How can I have in kb/s?

I have to type this command every 60 seconds for 2 hours, is it
dangerous for my router?
I just tryied mrtg, infovista and others.. but I really need every one
minute monitor statistics.
Really thanx all

These are bytes. Octet is another (better?) word for byte.

mrtg can do what you want if you have the time and skill to set it up.

http://www.wtcs.org/snmp4tpc/getif.htm
Is very quick and easy but not neaqrly so capable.
I think you just run the exe.

It displays Octets/Bytes per second. Multiply by 8 to get bits
per second. I usually multiply by 10 since that is good enough
in almost all situations.

Getting graphs is slightly non-intuitave.

You have to select the mib, press start, then select the instance
THEN Add to Graph.

It is a bit clunky and unless you have a very fast computer
is slow but I use it a lot.

Be aware that many MIBS are 16 bit values and they wrap
at about 4,000,000,000. getif doe not handle this well.

You cannot save the data except by screenshot either.

It is FREE.

Getting 2 MIBs every 60 seconds will not affect the router.
Getting 100 every second may well.

sh proc cpu
is your friend.

.



Relevant Pages

  • monitoring cisco via snmpget
    ... I need to monitor my cisco 2600 router with simple snmp cli command. ... fastethernet input and output traffic ...
    (comp.dcom.sys.cisco)
  • Re: The unlikely case of the router and the television!
    ... >> The wireless router is sited on top of the television, ... >> 45 minutes of switching off the television the wireless network fails. ... >was going to return the monitor and removed a clock sitting on top of it, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Connecting 2 computers together
    ... Connect both to the router, and then set up a simple home network.. ... or thru my Linksys 4 port switch router. ... Also would I require another monitor? ...
    (microsoft.public.windowsxp.newusers)
  • Re: How to block AIM with Linksys router and Zone Alarm
    ... You could monitor all activity on ports and IPto and from the Interne ... Then you can tell the router by MAC address to block access to the Internet. ... > can I block one of the 5 PCs from using AIM? ...
    (comp.security.firewalls)
  • Re: monitor outgoing traffic
    ... >how can i monitor all outgoing traffic requests? ... >i think my router shows what goes through it from a pc, ... >monitor all outgoing requests from the computer to wherever they ... these log programs and see how it goes. ...
    (comp.security.firewalls)