Command object patterns

Last Updated : Dec 24, 2021 |

You can use the following patterns to specify object range in your commands:

Object entry

Example

Result

Single object

mtc list stations 100

The command displays endpoint details for the endpoint with extension 100.

Multiple objects

mtc list stations 100 105

The command displays endpoint details for the endpoints with extensions 100 and 105.

Object range

mtc list stations 100-105

The command displays endpoint details for the endpoints with extensions 100 through 105.

Range with a wildcard character

mtc list stations 10?

A question sign (?) matches a single character in a specific position.

The command displays endpoint details for the endpoints with extensions 100 through 109.

mtc list stations 1*

An asterisk (*) matches any number of characters.

The command displays endpoint details for the endpoints with extensions that start with 1.

Combination of object patterns

mtc list stations 100 108-112 13?

The command displays endpoint details for extensions 100, 108 through 112, and 130 through 139.