show tech-support/show logging - could I retrieve via SNMP?

Unanswered Question
Jul 31st, 2008
User Badges:

hello guys,


Do you know if there is a way to retrieve the output of of 'show tech-support' and 'show logging' via snmpget or snmpwalk?


Thanks,


Daniel

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Thu, 07/31/2008 - 08:50
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

There is a dangerous way to do this. You can use the CISCO-CONFIG-COPY-MIB to copy a "do" command into the running-config which will trigger a TFTP transfer of the show command output. See http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml on how to use the CISCO-CONFIG-COPY-MIB.


Your config snippet which will trigger the TFTP will be something like:


do show logg | redirect tftp://10.1.1.1/show_logg.txt

end


You will probably need to pre-create the show_logg.txt file on your TFTP server. The big caution with this approach is that any interactive command will cause SNMP and the config to lock up forcing a reload.

Actions

This Discussion