NSXCLI minor change
Preamble
With VCF9 and in more detail NSX9 I noticed a small change in NSXCLI. Maybe it's not a change and more an expected behavior, but for daily business it seems that I need to adjust.
What am I talking about?
Observation
If you SSH into an edge (short for NSX edge) you login with admin and password to access the NSXCLI immediately. I use it a lot to analyze routing tables because the download option in the UI is to lengthy and awkward for my thinking.
After the login I start with 'get logical-router' command to display available VRF IDs to change context to collect needed information. I did not fat-finger the command listed. In the past it always worked, because it seemed that 'get logical-router' and 'get logical-routers' were synonyms. In NSX9 they aren't anymore. Honestly, now it makes a lot more sense to me, but I am as lazy as anybody else, if I can save a single character I do ;-).
Now I need to adjust to use the correct command to get the expected result.
Difference of the two commands
Here is the difference I observed:
get logical-router

As you can see, the singular of the command displays available options to access detailed information by appending the uuid of the logical router object.
get logical-routers

The plural of the command displays available logical router objects with needed additional information to change the context in the NSXCLI to gain more detailed information of the object itself.
As I mentioned I like the change, even I need to adjust, because the result reflects the command from a language perspective. The difference between singular and plural.
Thanks for reading, have a great day.





