Wildcard Characters in Interface Names
In the
show interfacesandclear interfacescommands, you can use wildcard characters in theinterface-nameoption to specify groups of interface names without having to type each name individually. Table 5 lists the available wildcard characters. You must enclose all wildcard characters except the asterisk (*) in quotation marks (" ").
List of Sample Output
show interfaces terse (SONET/SDH Interfaces)show interfaces terse (SONET/SDH Interfaces in Slot 1)show interfaces terse (All Interface Types Starting with "S" or "G")show interfaces terse (SONET/SDH Interfaces)
user@host>show interfaces terse so*Interface Admin Link Proto Local Remoteso-1/0/0 up upso-1/0/0.0 up up inet 192.168.8.192 --> 192.168.2.250isoso-1/1/0 up downso-1/1/0.0 up down inet 192.168.8.109/30isoso-1/1/1 up upso-1/1/1.0 up down inet 192.168.8.113/30isompls...so-1/3/3 up downso-5/0/0 up upso-5/0/0.0 up down inet 192.168.8.208 --> 192.168.8.209isomplsso-5/0/1 down downso-5/0/2 up down...show interfaces terse (SONET/SDH Interfaces in Slot 1)
user@host>show interfaces terse so-"[1]"*Interface Admin Link Proto Local Remoteso-1/0/0 up upso-1/0/0.0 up up inet 192.168.2.125 --> 192.168.2.250isoso-1/1/0 up downso-1/1/0.0 up down inet 192.168.2.150/30isoso-1/1/1 up upso-1/1/1.0 up down inet 192.168.2.175/30isomplsso-1/1/2 up upso-1/1/2.0 up down inet 192.168.2.110/30isoso-1/2/0 up downshow interfaces terse (All Interface Types Starting with
"S" or "G")user@host>show interfaces terse "[sg]"*Interface Admin Link Proto Local Remoteso-1/0/0 up upso-1/0/0.0 up up inet 192.168.2.125 --> 192.168.2.250isoso-1/1/0 up downso-1/1/0.0 up down inet 192.168.2.150/30isoso-1/1/1 up upso-1/1/1.0 up down inet 192.168.2.175/30isomplsso-1/1/2 up up...so-5/1/3 up downgre up up