Solved

Cisco 7200 router and SNMP

Posted on 2004-08-26
6
1,592 Views
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?

Thanks,
Angelmoon

PS
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
0
Comment
Question by:angelmoon
  • 3
  • 3
6 Comments
 
LVL 79

Accepted Solution

by:
lrmoore earned 250 total points
Comment Utility
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...
0
 

Author Comment

by:angelmoon
Comment Utility
I received this error
show run | include snmp
            ^
% Invalid input detected at '^' marker.

0
 
LVL 79

Expert Comment

by:lrmoore
Comment Utility
You have to be in enable mode.
Does your prompt look like:

Usermode:
router>

or
Enable mode:
router#
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:angelmoon
Comment Utility
it looks like the first router>
0
 
LVL 79

Expert Comment

by:lrmoore
Comment Utility
You need to be in enable mode:

router>enable
password:

router#

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

Author Comment

by:angelmoon
Comment Utility
Thanks very much for your help :)

Angelmoon
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
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…
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…

772 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

11 Experts available now in Live!

Get 1:1 Help Now