beautypg.com

Expr commands, 325 example: related commands – Technicolor - Thomson ST585 V6 User Manual

Page 349

background image

E-DOC-CTC-20061027-0004 v1.0

Expr Commands

325

EXAMPLE:

RELATED COMMANDS:

=>expr list
name

type

use flags expression

------------------------------------------------------------------------------------------
_myPPP_ppp

intf

0 D

1. intf=myPPP_ppp

_eth0

intf

0 D

1. intf=eth0

wan

intf

0

1. intfgroup=0

lan

intf

28

1. intfgroup=2

local

intf

0

1. intfgroup=1

notwan

intf

1

1. intfgroup=2
2. intfgroup=1

myEXPR

intf

0

1. intf=Internet intfgroup=2

_10.0.0.138

ip

0 D

1. addr=10.0.0.138

_192.168.1.254

ip

0 D

1. addr=192.168.1.254

...

DiffServ

serv

0

1. dscp=!0

sip

serv

1

1. proto=17 dst-prt=5060
2. proto=6 dst-prt=5060

h323

serv

1

1. proto=6 dst-prt=1720
2. proto=17 dst-prt=1718
3. proto=17 dst-prt=1719

=>expr delete name=myEXPR
=>expr list
name

type

use flags expression

------------------------------------------------------------------------------------------
_myPPP_ppp

intf

0 D

1. intf=myPPP_ppp

_eth0

intf

0 D

1. intf=eth0

wan

intf

0

1. intfgroup=0

lan

intf

28

1. intfgroup=2

local

intf

0

1. intfgroup=1

notwan

intf

1

1. intfgroup=2
2. intfgroup=1

_10.0.0.138

ip

0 D

1. addr=10.0.0.138

_192.168.1.254

ip

0 D

1. addr=192.168.1.254

...

DiffServ

serv

0

1. dscp=!0

sip

serv

1

1. proto=17 dst-prt=5060
2. proto=6 dst-prt=5060

h323

serv

1

1. proto=6 dst-prt=1720
2. proto=17 dst-prt=1718
3. proto=17 dst-prt=1719

=>

expr add

Add a subexpression to an expression.

expr list

List the expressions.