solarwinds  |  thwack
in
Search 44,481 posts and 621 resources contributed by 21,475 members or post a topic.

Already Joined? Sign in
Add commands only to interfaces that have an IP address?

rated by 0 users
Not Answered This post has 0 verified answers | 3 Replies | 2 Followers


5 Posts
Points 15
ciscorlando posted on 08-21-2008 1:16 PM
rated by 0 users

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

All Replies


1,207 Posts
Points 4,311
Moderator
SolarWinds Employee
chris.lapoint replied on 08-25-2008 10:38 AM
rated by 0 users
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

5 Posts
Points 15
ciscorlando replied on 08-25-2008 11:00 AM
rated by 0 users

 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

1,207 Posts
Points 4,311
Moderator
SolarWinds Employee
chris.lapoint replied on 08-25-2008 2:00 PM
rated by 0 users

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) | RSS