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

Check for err-disabled ports

Last post 11-14-2008 6:30 PM by sdaniels. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-14-2008 2:55 PM

    Check for err-disabled ports

     Script:
        Port in Err-Disabled mode

    Script-Description:
        This script generates an issue that marks which interfaces are in mode: err-disabled
        If the "Script-Schedule" is uncommented, the script will run at 6AM everyday.
        
    #Script-Schedule:
    #    0 6 * * *

    Script-Filter:
        $Vendor eq "Cisco" and $sysDescr like /Catalyst/

    #########################################################################
    Action:
        Show Interface Status

    Action-Description:
        This action executes the "show int status" command to
        retrieve the status of each interface on the device.  
        The Issue will match on "err-disabled" from the output
        and generate an issue in the health report.

    Action-Commands:
        show int status

    Output-Triggers:
        Port in ErrDisabled

    #########################################################################
    Issue:
        Port in ErrDisabled

    Issue-ID:
        ErrDisabledDetected

    Issue-Severity:
        error

    Issue-Description:
        The following ports are in mode err-disabled

    Issue-Variables:
        $ifPort  string
        $vlanNum  int

    Issue-Template:
        [[$ifPort]] err-disabled [[$vlanNum]]

    Issue-Filter:
        true

    Issue-Details:
        Host        $IPAddress
        Name        $Name
        Port        $ifPort
        VLAN        $vlanNum

    #########################################################################

    Mike Griffin
    Netcordia TAC
    support@netcordia.com
    Filed under: , ,
  • 10-24-2008 8:36 AM In reply to

    Re: Check for err-disabled ports

    I'm new to scripts so I just figured I would copy this and paste it into the 'new script' dialog.  When I tried that I get a compilation error that says 'Unknown Issue ID - ErrDisabledDetected'.  Any help would be greatly appreciated as I'm not sure what I am doing wrong here?

     Thanks,

    Scott

  • 11-14-2008 6:17 PM In reply to

    Re: Check for err-disabled ports

     

    When a script generates an issue, you need to create the issue itself under the results - Command Scripts - Issue Mgmt.  The script is looking for an associated issue ID of ErrDisabledDetected  

     

    For the Detail Columns in the issue mgmt screen you need to define the Issue-Details variables:

    Host,string
    Name,string
    Port,string
    VLAN,integer

  • 11-14-2008 6:30 PM In reply to

    Re: Check for err-disabled ports

    Thanks for the reply, worked like a champ!

    Big Smile

Page 1 of 1 (4 items)