Need cisco commands output over SNMP!

Unanswered Question
Nov 24th, 2008
User Badges:

HI ALL!


Please, help me.

I have snmp software HP NNM and RO access to 50 routers.


How to give output of the following commands by SNMP?

Is it possible?


commands:

2. sh version

3. sh cdp neighbors det

4. sh interfaces

5. sh standby

6. sh atm map

7. sh ip route

8. sh ip route vrf *

9. sh mpls traffic-eng tunnels

10. sh vlan

11. sh module

12. sh redundancy


----

Regards!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Mon, 11/24/2008 - 09:00
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Are you looking for the literal output of these commands as they would be seen from the CLI, or are you looking for the SNMP MIBs that provide equivalent data?

e_kniazev1974 Mon, 11/24/2008 - 09:01
User Badges:

Yes, I looking for the literal output of these commands as they would be seen from the CLI.

Joe Clarke Mon, 11/24/2008 - 09:03
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This is not possible with only SNMP RO access.

e_kniazev1974 Mon, 11/24/2008 - 09:08
User Badges:

Ok, if I have RW access?

Is it possible with RW access?

And how to setup this?

Joe Clarke Mon, 11/24/2008 - 09:21
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

It's very complex to do with RW access. If the procedure is messed up, you will have to reboot the device to recover. This only works with IOS devices which support the redirect pipe command.


Essentially, you'll use http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml to deploy a configuration snippet to a device using SNMP and TFTP. The configuration snippet will be something like the following:


do show ver | redirect tftp://10.1.1.1/show_ver.txt

end


Essentially, this will run the "show ver" command from config mode, and redirect the output to a TFTP server. Most TFTP servers will require that this show_ver.txt file is created first. If all works, this file should hold the output of the show ver command.

Actions

This Discussion