05-27-2011 07:00 AM
Hi all,
I have been reading the following documentation:
Cisco MDS 9000 Family CLI Configuration Guide, Release 4.x
My question is more to do with CLI commands, so if I have posted to the wrong forum let me know where I should have posted my question and I'll imediately take action.
Question: Can CLI commands be performed on one line?
For example, to create a a VSAN the documentation shows a number of separate rules:
1) vsan database
2) vsan 2
3) vsan 2 name TechDoc
It seems rule 3 is dependent on having entered into a specifc submode from entering rules 1 and 2 first.
Could a single rule have been written?
vsan database vsan 2 name TechDoc
Similarly, to create a Zone:
1) zone name Zone1 vsan 3
2) member ip-address 10.15.0.0 255.255.0.0
Could the following have been written?
zone name Zone1 vsan 3 member ip-address 10.15.0.0 255.255.0.0
The reason I ask, is that I am also looking at the following documentation:
Cisco MDS 9000 Family Command Reference, Release 5.x
and it appears to suggest rules can be defined in one swoop. For example with the vsan database command it seems to also have the vsan-id and interfaces, ports and so forth all included:
vsan database vsan vsan-id [interface fc slot/port | fcip fcip-id | fv slot/dpp-number/fv-port | iscsi
slot/port | port-channel portchannel-number.subinterface-number} | interop [mode]
[loadbalancing {src-dst-id | src-dst-ox-id}] | loadbalancing {src-dst-id | src-dst-ox-id} |
name name [interop [mode] [loadbalancing {src-dst-id | src-dst-ox-id}] | loadbalancing
{src-dst-id | src-dst-ox-id} | suspend [interop [mode] [loadbalancing {src-dst-id |
src-dst-ox-id}] | loadbalancing {src-dst-id | src-dst-ox-id}] | suspend [interop [mode]
[loadbalancing {src-dst-id | src-dst-ox-id}] | loadbalancing {src-dst-id | src-dst-ox-id}]]
I also notice that there seems to be multile commands that can be used to achieve the same thing:
For example, command "vsan database" has an option to specify an interface:
Again aplogies for perhaps ridiculus questions, but I am just starting out with this area. Any inights are greatly welcomed.
regards,
Brian
05-27-2011 08:37 AM
Hello,
On the switch you can run command "which". it is list all comand and its submode
you will need to follow the command structure
05-30-2011 06:41 AM
Hi Vu Phan,
Thanks for responding.
Would it be possible for someone to run such a command on a MDS 9000 switch and send me the output.
I actually do not have access to a physical switch (academic budget constrains). I am an academic who wishes to construct a formal model and would like to be able to model the CLI in real world terms and not from a typical academic view of the world (often an abstraction of an already abstracted view of the world) :-)
Jumping back to my original question, is it possible to perform two or three rules in one rule? Presumably there will be cases where it is and is not possible.
Many thanks,
Brian.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide