Cisco 7200 router and SNMP

Posted on 2004-08-26
Last Modified: 2006-11-17
Hi All,
Please figure me for my stupidity but i do not have a clue when it comes to routers.

We have a Cisco router 7204. I am trying to figure out if SNMP is up and working. I have a perl script that will query the router but when run the script, I do not receive a response from the router.

How can I tell if SNMP is working?  Do I need exec "snmp-server manager" to be able to poll the router? How can I list the communities?


show snmp command displayes the following info:
Chassis: 31412513
902800 SNMP packets input
    0 Bad SNMP version errors
    1592 Unknown community name
    0 Illegal operation for community name supplied
    15 Encoding errors
    4120991 Number of requested variables
    0 Number of altered variables
    646006 Get-request PDUs
    255187 Get-next PDUs
    0 Set-request PDUs
901193 SNMP packets output
    0 Too big errors (Maximum packet size 1500)
    1602 No such name errors
    0 Bad values errors
    0 General errors
    901193 Response PDUs
    0 Trap PDUs

SNMP logging: disabled
Question by:angelmoon
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 79

Accepted Solution

lrmoore earned 250 total points
ID: 11906953
From the router, use the following command:

router#show run | include snmp

If you see something like this:

  snmp-server community <community> RO
  snmp-server community <community> RW

Then the server is running, and the community strings will be what you will need to program into your perl script..

> 1592 Unknown community name
Tells me that you might be trying to use the incorrect community name in your script...

Author Comment

ID: 11907002
I received this error
show run | include snmp
% Invalid input detected at '^' marker.

LVL 79

Expert Comment

ID: 11907054
You have to be in enable mode.
Does your prompt look like:


Enable mode:
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.


Author Comment

ID: 11907104
it looks like the first router>
LVL 79

Expert Comment

ID: 11907177
You need to be in enable mode:



I hope you have the enable password.....

Author Comment

ID: 11931065
Thanks very much for your help :)


Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (, 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…
After creating this article (, 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…

730 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