Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Fixing of the design flaw in the SSHTELNET MP (concerns the command list)

Subject: perfsonar development work

List archive

Re: [pS-dev] Fixing of the design flaw in the SSHTELNET MP (concerns the command list)


Chronological Thread 
  • From: Stijn Melis <>
  • To: Guilherme Fernandes <>
  • Cc: "" <>, Mario Reale <>, Alessandro Inzerilli <>, Nicolas Simar <>, Panagiotis Prokopiou <>,
  • Subject: Re: [pS-dev] Fixing of the design flaw in the SSHTELNET MP (concerns the command list)
  • Date: Tue, 10 Jun 2008 14:23:37 +0200

These can be split into two groups: in one group, the Cisco command expects a
parameter (mostly an IP address), while on Juniper it doesn't. An example of
this is the IPv6_ROUTE command. On Cisco it is the following:

show IPv6 route <IPv6 address>

while on Juniper it is this:

show route table inet6

Maybe these Cisco commands give a response without a parameter as well, but
I'm not sure about that. Could someone shed some light on this, please?
On all of the red cases, the arguments specified for cisco are
optional "qualifiers", and I believe the same happens for the Juniper
ones. So on your example above, the actual equivalent for the juniper
command in cisco is "show IPv6 route", and passing the IPv6 address
would just narrow the information to that specific address.

OK, so this should be changed to show IPv6 route [<IPv6 address>] then, right?

Would you mind taking a look at the list of commands, and changing the optional parameters to include the [] brackets, please?

I am no network administrator myself, so I based my implementation of the commands completely on the information I received from others.

Either way, this could be fixed by not using the parameter for the Juniper
command, and maybe adding a note to the response saying that the parameter
wasn't used.

The other group has either a different syntax, or one or more parameters. For
example, the IPv6_MULTICAST_BGP_TABLE command on Cisco is the following:

show bgp IPv6 multicast <IPv6-prefix/prefix-length>

while on Juniper it is:

show route protocol bgp table inet6.2 <IPv6-prefix>[<prefix-length>]

Are you sure this is the actual syntax for the Juniper command? I was
under the impression Juniper also used the "IPv6-prefix/prefix-length"
syntax (I don't have access to a Juniper right now to test it).

This is what was given to me as information. If it isn't the correct one, feel free to change it.

I can see this also happens for Cisco in the commands list:
"show bgp IPv6 unicast <IPv6 prefix network> [<length>]" is actually
<network>/<length>, so I believe the syntax for the parameter is the
same for the Juniper equivalent...

Again, I am no network administrator, so feel free to correct any mistakes which might be in the lists.

Hope that helps,

It does, yes :) Thanks,

Stijn

Guilherme

The problem here lies within the fact that the user can enter his parameters
using either syntax, so it's a bit difficult to parse this. A possible
solution would be to define a common syntax for these parameters, and then
change this to the needed syntax when sending the command to the device.
However, this would require a lot of hardcoded info in the MP with regards to
the commands, and I would prefer to keep that to a minimum (otherwise I'd
have to change the source code for the MP every time something changes about
the commands).
Does anyone have any ideas about this, or do I keep this as it is at the
moment (the last group that is, the rest is easy to fix)?

Cheers,

Stijn



Archive powered by MHonArc 2.6.16.

Top of Page