[Contents] [Prev] [Next] [Index] [Report an Error]

Using Wildcard Characters in Interface Names

You can use wildcard characters in the JUNOS software operational commands to specify groups of interface names without having to type each name individually. Table 17 lists the available wildcard characters. You must enclose all wildcard characters except the asterisk (*) in quotation marks (“ ”).

Table 17: Wildcard Characters for Specifying Interface Names

Wildcard Character

Description

* (asterisk)

Match any string of characters in that position in the interface name. For example, so* matches all SONET/SDH interfaces.

"[character<character...>]"

Match one or more individual characters in that position in the interface name. For example, so-“[03]”* matches all SONET/SDH interfaces in slots 0 and 3.

"[!character<character...>]"

Match all characters except the ones included in the brackets. For example, so-“[!03]”*matches all SONET/SDH interfaces except those in slots 0 and 3.

"[character1-character2]"

Match a range of characters. For example, so-“[0-3]” * matches all SONET/SDH interfaces in slots 0, 1, 2, and 3.

"[!character1-character2]"

Match all characters that are not in the specified range of characters. For example, so-”[!0-3]”* matches all SONET/SDH interfaces in slots 4, 5, 6, and 7.


[Contents] [Prev] [Next] [Index] [Report an Error]