• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1579
  • Last Modified:

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

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
Norris04
Asked:
Norris04
  • 2
  • 2
2 Solutions
 
pseudocyberCommented:
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
 
lrmooreCommented:
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
 
Norris04Author Commented:
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
 
pseudocyberCommented:
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
 
lrmooreCommented:
>  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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now