About the Netvisor ONE CLI > Specifying a Switch or Fabric for Command Scope
Was this helpful?
Specifying a Switch or Fabric for Command Scope
Netvisor ONE uses the switch as the building block of a fabric, and the goal of the Netvisor ONE design is an easy to manage fabric of switches managed as a single switch. The CLI runs commands on the local switch, a cluster of switches, other switches in the fabric, or the entire fabric. You do not log into each switch to run commands.
By default, commands run on the switch you logged into and for example, the command port-config-modify port 5 disable disables port 5 on the switch you logged into on the network.
To specify a different switch for a single command, use the switch prefix. For example, switch pleiades23 port-config-modify port 28 enable enables port 28 on pleiades23, even if the CLI connects to a different switch in the fabric.
To specify a different switch for a series of commands, use the switch prefix with no command. For example, type switch pleiades24 <return>. The CLI prompt changes to indicate that pleiades24 executes the commands. Run additional commands on pleiades24 rather than the physically connected switch.
For most CLI show commands, the command displays results from all switches in the fabric by default. For example, when you enter the CLI command port-show on the switch, Netvisor ONE displays all ports on all switches in the fabric.
To specify that a CLI show command applies to a specific switch, use the switch prefix to the CLI command.
For example, to display only ports on switch pleiades24, type the command switch pleiades24 port-show.