> Hello,
>
> I am trying to use the traceroute command in extended mode, it doesn't
> seem to work under Vyatta:
>
> traceroute -q 1 127.0.0.1
> ERROR: no matching command:
> tracroute -q 1 127.0.0.1
>              ^
>
> When trying this same command under the vyatta debian OS, it's working
> fine.

Hi Troopy,

I haven't tested this, but I believe if you apply the following patch it
will allow you to pass a parameter to traceroute from the xorp shell:

diff --git a/etc/templates/misc.cmds b/etc/templates/misc.cmds
index cbf4364..80ed938 100644
--- a/etc/templates/misc.cmds
+++ b/etc/templates/misc.cmds
@@ -39,6 +39,11 @@ traceroute <host> {
     %nomore_mode;
 }

+traceroute <option> <host> {
+    %command: "traceroute $2 $3" %help: "Give a hostname or IP address to
trace+    %nomore_mode;
+}
+


Note: template file changes don't require a recompile and will take effect
on the next reboot.  Also note that one should be very careful when making
template changes as a syntax error will cause rtrmgr to not start up, so
it's a good idea to keep a backup copy on any template that you change on
the router.

stig


>
> REgards
>
> TRoopy
>
>
>
>
>
> ______________________________________________________
> Désirez vous une adresse éléctronique @suisse.com?
> Visitez la Suisse virtuelle sur http://www.suisse.com
>
> _______________________________________________
> Vyatta-users mailing list
> Vyatta-users@mailman.vyatta.com
> http://mailman.vyatta.com/mailman/listinfo/vyatta-users

_______________________________________________
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users

Reply via email to