Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Need cisco commands output over SNMP!

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!

5 REPLIES
Cisco Employee

Re: Need cisco commands output over SNMP!

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?

New Member

Re: Need cisco commands output over SNMP!

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

Cisco Employee

Re: Need cisco commands output over SNMP!

This is not possible with only SNMP RO access.

New Member

Re: Need cisco commands output over SNMP!

Ok, if I have RW access?

Is it possible with RW access?

And how to setup this?

Cisco Employee

Re: Need cisco commands output over SNMP!

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.

350
Views
0
Helpful
5
Replies
CreatePlease login to create content