in More Search Options

Add commands only to interfaces that have an IP address?

Last post 08-25-2008 2:00 PM by chris.lapoint. 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
  • 08-21-2008 1:16 PM

    • ciscorlando
    • Not Ranked
    • Joined on 08-21-2008
    • Orlando, FL
    • Posts 5
    • Points 15

    Add commands only to interfaces that have an IP address?

    I want to add the commands 'no ip unreachables' and 'no ip redirects' to all interfaces on my Cisco devices that currently have an IP address, whether its a physical interface or an SVI (VLAN).  Can I automate the task to avoid touching 200 devices personally? 

    Senior Network Engineer
    Industry: Healthcare
    Location: Florida
    • Post Points: 3
  • 08-25-2008 10:38 In reply to

    Re: Add commands only to interfaces that have an IP address?

    Yes, this is possible using a command script.

    ${EnterConfigMode}
    interface <interface name>
    no ip unreachables
    no ip redirects
    end

    ${SaveConfig}
    Chris LaPoint
    Sr. Product Manager
    NCM (Cirrus), ipMonitor, LANsurveyor
    SolarWinds
    Austin, TX
    • Post Points: 3
  • 08-25-2008 11:00 In reply to

    • ciscorlando
    • Not Ranked
    • Joined on 08-21-2008
    • Orlando, FL
    • Posts 5
    • Points 15

    Re: Add commands only to interfaces that have an IP address?

     So I still have to manually go through each device and cut/paste that command into each interface that has an IP address... which will take two hours.

    Senior Network Engineer
    Industry: Healthcare
    Location: Florida
    • Post Points: 3
  • 08-25-2008 2:00 PM In reply to

    Re: Add commands only to interfaces that have an IP address?

    We currently do not expose the interface name as a variable in scripts, but this is absolutely on our roadmap.   Today you can use the inventory report to pull a list of interface names for each node, export, and use that to generate your command scripts.   

    Chris LaPoint
    Sr. Product Manager
    NCM (Cirrus), ipMonitor, LANsurveyor
    SolarWinds
    Austin, TX
    • Post Points: 1
Page 1 of 1 (4 items)