12.07.2015 Views

BROCADE IP PRIMER

BROCADE IP PRIMER

BROCADE IP PRIMER

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6: The Brocade CLIHere are some other characters that are useful:Table 5. CLI Characters: Regular ExpressionsCharacter Purpose Examples. Period. Any singlecharacter.“1.3” matches “123,” “1A3,” “1/3”^Caret. The beginningof the line.“^int” matches “interface e 3”but not “ip interface”$ Dollar sign. The endof the line.“3/1$” matches “interface e 3/1”but not “untagged e 3/1 to 3/2”_Underscore. Anycharacters used toseparate a word (e.g.,space, comma,parenthesis, etc.)“list_” matches “access-list”but not “web-management list-menu”;“_ip_” matches “ip address” and “ip route”but not “router rip”[ ] Brackets. Used tospecify a range, or aset of characters.[^ ] A caret as the firstcharacter inside thebrackets is an inverse(e.g., match everycharacter exceptthese).| Vertical bar or “pipe”.A choice (e.g.,boolean “OR”)( ) Parenthesis. Used toenclose a pattern.? Question mark.Matches zero or oneinstance of thepreceding characteror pattern.* Asterisk. Matcheszero or moreinstances of thepreceding characteror pattern.+ Plus sign. Matchesone or moreinstances of thepreceding characteror pattern.“[135]” matches “1,” “3,” or “5”;“[1-3]” matches “1,” “2,” or “3”“[^135]” matches any character as long asit is not “1,” “3,” or “5”; “[^1-3]” matchesany character as long as it is not “1,” “2,” or“3”“123|132” matches either “123” or “132”;“_ip_|_ipx_” matches the whole word “ip” or“ipx”Used in conjunction with “?” “*” and “+”“123?” matches “12” and “123”but not “1233”;“(321)?” matches “321” and “321321”but not “321321321”“123*” matches “12,” “123,” “1233,”“1233333,” etc.;“(321)*” matches “”(nothing), “321,”“321321,” “321321321,” etc.;“.*” matches any number of any characters“123+” matches “123,” “1233,” “123333,”etc. but not “12”;“(321)+” matches “321,” “321321,” etc.140 Brocade <strong>IP</strong> Primer

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!