[c-nsp] pingalias with a variable
Tassos Chatzithomaoglou
achatz at forthnet.gr
Fri Apr 24 04:39:50 EDT 2009
Not the most elegant solution....
event manager applet PING
event cli pattern "ping" sync no skip yes
action 1.0 cli command "enable"
action 2.0 cli command "$_cli_msg source loopback0"
action 3.0 syslog msg "$_cli_result"
!
If you have latest IOS, you can use "puts" instead of "syslog" for the output, so you
don't need to have "term mon" turned on.
Probably Ivan could come out with a better solution based on TCL ;)
--
Tassos
Brian Foulks wrote on 24/04/2009 08:12:
> Hello,
>
> We have a Cisco network that utilizes DMVPN. When
> our operators use ping, they have to use the
> extended ping command because ping tries to go out
> the T1 interface instead of the tunnel. Is there a
> way to make an alias command for ping that would
> allow us to type any IP and it automatically be set
> with the source of the router's loopback?
>
> Thanks,
>
> Brian
> _______________________________________________
> cisco-nsp mailing list cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
More information about the cisco-nsp
mailing list