Welcome to Netcordia Connection Sign in | Join | Help
in Search

Clean Up Cisco Debug commands

Last post 12-12-2008 11:38 AM by pvogelsang. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-14-2008 3:23 PM

    Clean Up Cisco Debug commands

     Script:
        Clean Up Cisco Debug commands

    Script-Description:
        This script executes a show debug command, and if any debug
        commands are running, issues a 'no debug all' and opens a NetMRI
        issue stating the debug commands that were running.

    Script-Filter:
        $Vendor eq "Cisco"
        and $Type eq "Router"

    #Script-Schedule:
    #    15 2 * * 1-5
        
    Script-Groups:  
        Routing

    #######################################################################
    Action:
        Show Debug

    Action-Description:
        Execute the "show debug" command.

    Action-Commands:
        show debug

    Output-Triggers:
        Process debug

    #######################################################################
    Trigger:
        Process debug

    Trigger-Description:
        Determine which interfaces have debugging turned 'on', from the above output,
        and turn the debugging off by issuing the command "no debug all".

    Trigger-Variables:
        $ifDebug string

    Trigger-Template:
        [[$ifDebug]] is on.*

    Trigger-Commands:
        DEBUG: no debug all
        
    Output-Triggers:
        Debug Left Running

    #######################################################################
    Issue:
        Debug Left Running
        
    Issue-ID:
        DebugLeftRunning
        
    Issue-Severity:
        Error
        
    Issue-Description:
        The following devices had debugging left "on"
            
    Issue-Filter:
        true
        
    Issue-Details:
        Host    $IPAddress
        Name    $Name
        ifdebug $ifDebug
        
    #######################################################################

    Mike Griffin
    Netcordia TAC
    support@netcordia.com
    Filed under: , ,
  • 12-12-2008 11:38 AM In reply to

    Re: Clean Up Cisco Debug commands

      Clean Up Cisco Debug commands

    Patrick Voglesang
    VP Operations, Netcordia, Inc.
    (T) +1 410 266 6161 x309 (M) +1 724 272 1042 (F) +1 410 573 9779
    (E) pvogelsang@netcordia.com www.netcordia.com

Page 1 of 1 (2 items)