Cisco NX-OS CLI Tip – Feature Enabled, License and CLI Syntax

When working on NX-OS 1 it’s kind of annoying to attempt to use a feature that hasn’t been enabled and get an error message.

For example:

N7K2-POD2(config)# sh vpc ^ % Invalid command at '^' marker.

This doesn’t actually tell you that the feature isn’t enabled and that’s why it doesn’t work. Once the feature is enabled:

N7K2-POD2(config)#sh vpc
^ % Invalid command at '^' marker.
N7K2-POD2(config)# feature vpc
N7K2-POD2(config)# show vpc
Legend: (*) - local vPC is down, forwarding via vPC peer-link
vPC domain id : Not configured
Peer status : peer link not configured
vPC keep-alive status : Disabled

Then the commands starts to work. Why not throw a “feature not enabled” or “not licensed” message ? Would that not make more sense ?

Or is there something that I’m seeing here.

  1. at time of writing, I’m using NX-OS V6.01. ↩
  • wmckain

    I believe there is a license fee for the
    “feature not enabled” feature.

    • Simonga

      I laughed :)

  • Markku Leiniö

    I think the explanation is in the modular nature of the OS: The commands are not found *anywhere* until you load the actual module. There is no module that contains the commands for all the possible other modules (to enable CLI to show “enable this feature” error message). Just guessing.

  • will

    version 6.x – you’re brave