Solved

How do I enable SNMP on a Cisco 2620 for bandwidh monitoring?

Posted on 2004-04-15
5
1,529 Views
Last Modified: 2012-06-27
Hi,

I'd like to use PRTG to monitor bandwidth on several segments. I need to enable SNMP on my Cisco 2620 routers. I can log into the router but don't know to much about what to do next. I do on the other hand, know enough to be dangerous. I have an idea of what to do but I'm afraid I'll mess something up in the process. Also, will I have any trouble monitoring the traffic of 192.168.x.x if I'm on the 192.168.y.y segment?

Thanks,

-Norris
0
Comment
Question by:Norris04
  • 2
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
pseudocyber earned 125 total points
ID: 10833827
In global exec mode, enter config mode by typing "config t".

In config mode, configure SNMP paramaters by typing: "snmp-server" followed by a space and parameters.

Router>en
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#snmp-server ?
  chassis-id        String to uniquely identify this chassis
  community         Enable SNMP; set community string and access privs
  contact           Text for mib object sysContact
  enable            Enable SNMP Traps or Informs
  engineID          Configure a local or remote SNMPv3 engineID
  group             Define a User Security Model group
  host              Specify hosts to receive SNMP notifications
  ifindex           Enable ifindex persistence
  inform            Configure SNMP Informs options
  location          Text for mib object sysLocation
  manager           Modify SNMP manager parameters
  packetsize        Largest SNMP packet size
  queue-length      Message queue length for each TRAP host
  system-shutdown   Enable use of the SNMP reload command
  tftp-server-list  Limit TFTP servers used via SNMP
  trap              SNMP trap options
  trap-source       Assign an interface for the source address of all traps
  trap-timeout      Set timeout for TRAP message retransmissions
  user              Define a user who can access the SNMP engine
  view              Define an SNMPv2 MIB view

hth
0
 
LVL 79

Assisted Solution

by:lrmoore
lrmoore earned 125 total points
ID: 10833984
To expand on what pseudocyber posted...

all you really need is a Read-Only community string and snmp enabled. This is accomplished with just one line:

snmp-server community <string> RO

Replace <string> with whatever you like. Treat snmp communities as passwords and use strong password practices. i.e.

snmp-server community Go0DPa$$Word! RO

No problems reading the snmp statistics from any other subnet with this config.

0
 

Author Comment

by:Norris04
ID: 10841914
OK, It looks like the command was accepted, but my monitoring package will not connect with the router. When I do a sh snmp I get:

26 SNMP packets input
    0 Bad SNMP version errors
    26 Unknown community name
    0 Illegal operation for community name supplied
    0 Encoding errors
    0 Number of requested variables
    0 Number of altered variables
    0 Get-request PDUs
    0 Get-next PDUs
    0 Set-request PDUs
0 SNMP packets output
    0 Too big errors (Maximum packet size 4096)
    0 No such name errors
    0 Bad values errors
    0 General errors
    0 Response PDUs
    0 Trap PDUs

SNMP logging: disabled

Does this indicate that snmp is enabled? If not, what command should I give to show the snmp status.

Thanx!

-Norris

0
 
LVL 27

Expert Comment

by:pseudocyber
ID: 10841947
The error looks like they're not agreeing on the community string.  I would set it for something simple until you get it working, and then change it to be more secure.
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 10842197
>  26 Unknown community name

Looks like your PRTG package is trying to use something like "public" as the community string. Whever you see "public" in the PRTG config files, replace that with your Go0DPa$$Word!

"public" is typically the well-knnown default read-only community string and the first thing that anyone would try. "private" is the default read-write community string for most equipment.
0

Featured Post

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Join & Write a Comment

Article by: IanTh
Hi Guys After a whole weekend getting wake on lan over the internet working, I thought I would share the experience. Your firewall has to have a port forward for port 9 udp to your local broadcast x.x.x.255 but if that doesnt work, do it to a …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now