(ddr configuration command).pdf

Upload: wankhama

Post on 02-Apr-2018

229 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 (DDR Configuration Command).PDF

    1/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform Table of Contents

    i

    Table of Contents

    Chapter 1 DDR Configuration Commands.............. ......... ......... ........ ......... ........ ......... ........ . 1-11.1 dialer autodial-interval ............................................................................................... 1-1

    1.2 dialer callback-server ................................................................................................ 1-21.3 dialer caller............................................................................................................... 1-31.4 dialer enable-timeout.. ......... ........ ......... ........ ......... ......... ........ ......... ........ ......... ........ . 1-3

    1.5 dialer fast-idle........................................................................................................... 1-41.6 dialer hold-queue...................................................................................................... 1-51.7 dialer idle-timeout .....................................................................................................1-5

    1.8 dialer in-band............................................................................................................ 1-61.9 dialer isdn-leased...................................................................................................... 1-71.10 dialer load-threshold........ ......... ........ ......... ......... ........ ......... ........ ......... ........ ......... .. 1-7

    1.11 dialer map .............................................................................................................. 1-8

    1.12 dialer pool............................................................................................................... 1-91.13 dialer pool-member ............................................................................................... 1-10

    1.14 dialer priority......................................................................................................... 1-111.15 dialer remote-name............................................................................................... 1-121.16 dialer rotary-group................................................................................................. 1-12

    1.17 dialer string........................................................................................................... 1-131.18 dialer wait-for-carrier-time ......... ........ ......... ......... ........ ......... ........ ......... ........ ......... 1-141.19 dialer-group..........................................................................................................1-15

    1.20 dialer-list............................................................................................................... 1-161.21 interface dialer...................................................................................................... 1-171.22 show dialer........................................................................................................... 1-17

    Chapter 2 Modem Configuration Commands......... ......... ........ ......... ........ ......... ........ ......... .. 2-1

    2.1 chat-script ................................................................................................................ 2-12.2 modem..................................................................................................................... 2-32.3 modem-autoanswer ..................................................................................................2-4

    2.4 script activation......................................................................................................... 2-42.5 script connection....................................................................................................... 2-52.6 script dialer............................................................................................................... 2-6

    2.7 script init-string ......................................................................................................... 2-62.8 script reset ............................................................................................................... 2-72.9 script startup............................................................................................................. 2-8

    2.10 start-chat ................................................................................................................ 2-92.11 show script ............................................................................................................. 2-92.12 show script-event ....................................................................................................2-9

  • 7/27/2019 (DDR Configuration Command).PDF

    2/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-1

    Chapter 1 DDR Configuration Commands

    DDR (Dial-on-Demand Routing) configuration commands include:

    l dialer autodial-interval

    l dialer callback-serverl dialer callerl dialer enable-timeout

    l dialer fast-idlel dialer hold-queuel dialer idle-timeout

    l dialer in-bandl dialer load-thresholdl dialer map

    l dialer pooll dialer pool-memberl dialer priority

    l dialer remote-namel dialer rotary-groupl dialer string

    l dialer wait-for-carrier-timel dialer isdn-leasedl dialer-list

    l dialer-groupl interface dialerl show dialer

    1.1 dialer autodial-interval

    To set the interval for the auto-dial attempted by DDR, use the dialer autodial-interval

    command together with the key word autodial in the dialer map command. To return tothe default, use the no form of this command.

    dialer autodial-intervalseconds

    no dialer autodial-interval

    Syntax Description

    seconds Time interval for the next call attempt in the second, ranging 1 to 604800seconds.

    Default

    Default DDR auto-dial interval: 300 seconds.

    Command Mode

    Interface configuration mode

    Example

    ! Set the DDR auto-dial interval to 60 seconds

  • 7/27/2019 (DDR Configuration Command).PDF

    3/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-2

    Quidway(config-if-Serial0)# dialer autodial-interval 60

    Related Command

    dialer map

    1.2 dialer callback-server

    To implement PPP callback, use the dialer callback-servercommand. It is configured

    at the Server, and is used for DDR to determine if callback to the remote isimplemented via the callback-dialstringconfigured by the user in the usercommand orif it is implemented via the dialermap configured by the user. To return to the default,use the no form of this command.

    dialer callback-server{username [dialstring] | dialstring [username]}

    no dialer callback-server

    Syntax Description

    username Callback is implemented via dialer map configured by the user; in the

    corresponding dialermap, the name option must be configured.

    dialstring Callback is made to the remote end through callback-dialstringin user.

    Default

    no dialer callback-server.

    Command Mode

    Interface configuration mode

    Usage Guideline

    This command must be configured when PPP callback is applied.

    When the username and dialstring parameters are applied at the same time, the router

    should call back according to the requirement of the first parameter. When the callbackfails, then try the second parameter for callback.

    Example

    ! Configure the remote username, and set a user matching this username for callback

    Quidway(config)# user quidwayb password 0 quidwayb

    Quidway(config-if-Serial0)# dialer map ip 100.1.1.2 name quidwayb 8810052

    Quidway(config-if-Serial0)# dialer callback-server username

    Quidway(config-if-Serial0)# ppp authentication pap

    Quidway(config-if-Serial0)# ppp callback accept

  • 7/27/2019 (DDR Configuration Command).PDF

    4/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-3

    Related Command

    dialer callback accept, ppp authentication, username name callback-dialstring

    1.3 dialer caller

    To decide if callback is implemented according to the input number in the ISDN caller

    ID callback application, use the dialer callercommand. To return to the default, usethe no form of this command.

    dialer callerremote-number[callback]

    no dialer callerremote-number[callback]

    Syntax Description

    remote-number Character string for matching the remote incoming number. * is usedto stand for any character.

    Default

    no dialer caller.

    Command Mode

    Interface configuration mode

    Example

    ! Set callback to the user whose caller number is 8810152

    Quidway(config-if-Bri0)# dialer map ip 100.1.1.2 8810152

    Quidway(config-if-Bri0)# dialer caller 8810152 callback

    1.4 dialer enable-timeout

    To set the time interval for the next call when a call completes or fails, use the dialerenable-timeout command. To return to the default, use the no form of this command.

    dialer enable-timeoutseconds

    no dialer enable-timeout

    Syntax Description

    seconds Time interval for the next call attempt in the second, ranging 0 to 65535.

    Default

    Default DDR call time interval: 20 seconds.

    Command Mode

    Interface configuration mode

  • 7/27/2019 (DDR Configuration Command).PDF

    5/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-4

    Usage Guideline

    If the link keeps busy or fails to be connected when calling the remote end, set this

    interval before the next call so as to avoid overload on the switching equipment.

    Example

    ! Set the DDR call duration to 5 seconds

    Quidway(config-if-Serial0)# dialer enable-timeout 5

    Command Mode

    dialer in-band

    1.5 dialer fast-idle

    To set a new idle time for the interface when call competition occurs at an interface, use

    the dialer fast-idle command. To return to the default, use the no form of thiscommand.

    dialer fast-idle seconds

    no dialer fast-idle

    Syntax Description

    seconds Fast idle time value in the second, ranging 1 to 65535.

    Default

    Fast idle time: 20 seconds.

    Command Mode

    Interface configuration mode

    Usage Guideline

    Normally, when a link is set up, idle-timeout will play a decisive rule. But if there is a callto another destination address, then DDR uses fast-idle in the place of idle-timeout.

    Example

    ! Set idle-timeout to 50 seconds, and fast-idle to 10 seconds.

    Quidway(config-if-Serial0)# dialer idle-timeout 50

    Quidway(config-if-Serial0)# dialer fast-idle 10

    Related Command

    dialer idle-timeout, dialer in-band

  • 7/27/2019 (DDR Configuration Command).PDF

    6/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-5

    1.6 dialer hold-queue

    To set the number of interesting packets in the buffer before a link is set up, use the

    dialer hold-queue command. To return to the default, use the no form of thiscommand.

    dialer hold-queuepackets

    no dialer hold-queue

    Syntax Description

    packets Number of packets that can be buffered at this interface, ranging 0 to 100.

    Default

    Default number of buffered packets: 0.

    Command Mode

    Interface configuration mode

    Usage Guideline

    When setting up a link, interesting packets are saved to the queue, whose size isdecided by packets. If the size is 0, then data packets will be dumped.

    Example

    ! Set the number of packets that can be buffered at Serial 1 to 10

    Quidway(config-if-Serial1)# dialer hold-queue 10

    Related Command

    dialer-group, dialer in-band

    1.7 dialer idle-timeout

    To set the idle time for the interface after setting up a call at an interface, use the dialeridle-timeout command. To return to the default, use the no form of this command.

    dialer idle-timeout seconds

    no dialer idle-timeout

    Syntax Description

    seconds Idle timeout in second, ranging 0 to 65535.

    Default

    Timeout: 120 seconds.

  • 7/27/2019 (DDR Configuration Command).PDF

    7/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-6

    Command Mode

    Interface configuration mode

    Usage Guideline

    When a link is set up, idle-timeout will play a decisive role. If no interesting packets are

    sent from this link in a set time, DDR will suspend this link. If idle-timeout is set to 0,then when a corresponding link is set up, it will never be suspended (even if nointeresting data are sent from this link).

    Example

    ! Set idle-timeout at Serial 0 to 50 seconds

    Quidway(config-if-Serial0)# dialer idle-timeout 50

    Related Command

    dialer fast-idle, dialer-group

    1.8 dialer in-band

    To enable the legacy DDR configuration, use the dialer in-band command. To return to

    the default, use the no form of this command.

    dialer in-band

    nodialer in-band

    Default

    Legacy DDR enabled at the ISDN interface; legacy DDR disabled at other interfaces.

    Command Mode

    Interface configuration mode

    Usage Guideline

    If the user adopts the legacy DDR configuration, this command must be used to enable

    it.

    Example

    ! Enable legacy DDR

    Quidway(config-if-Serial0)# dialer in-band

    Related Command

    dialer map, dialer string, dialer rotary-group

  • 7/27/2019 (DDR Configuration Command).PDF

    8/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-7

    1.9 dialer isdn-leased

    To configure the ISDN B channel connected to the leased line, includingBRI and PRI,

    use the dialer isdn-leased command. To return to the default, use the no form of thiscommand.

    dialer isdn-leased number

    no dialer isdn-leased number

    Syntax Description

    number ISDN B channel number for the leased line. Ranging 1 to 2 in BRI interface,

    ranging 0 to 30 in PRI interface.

    Default

    No ISDN B channel connected to the leased line is configured.

    Command Mode

    Interface configuration mode

    Usage Guideline

    Any ISDN B channel can be configured to be the leased line, and this configuration will

    not influence the settings of other B channels.

    Example

    ! Set the first B channel of BRI0 as the leased line

    Quidway(config-if-Bri0)# dialer isdn-leased 1

    1.10 dialer load-threshold

    To start another link to call the same destination address when the traffic on a link at the

    DDR interface exceeds the set percentage (threshold), use the dialer load-thresholdcommand. To return to the default, use the no form of this command.

    dialer load-threshold load[ either| inbound | outbound ]

    no dialer load-threshold

    Syntax Description

    load Percentage of actual traffic over the bandwidth of the link, ranging 0 to 99.

    either Only counting the larger one of inbound and outbound traffic when calculatingactual traffics.

    inbound Only counting the inbound traffic when calculating actual traffics.

    outbound Only counting the outbound traffic when calculating actual traffics.

  • 7/27/2019 (DDR Configuration Command).PDF

    9/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-8

    Default

    loadis 0, that is, no traffic control is started.

    Command Mode

    Interface configuration mode

    Usage Guideline

    All of the usable links will be started when loadis 0.

    When the ratio of traffic on a link to bandwidth on a DDR interface link exceeds a set

    threshold, a second link is started to implement MP bounding with the first one. When

    the ratio of traffic on two links to bandwidth exceeds a set threshold, a third link isstarted, and so on. On the contrary, when the ratio of the traffic on N (N is an integergreater than or equal to 2) links to bandwidth of N-1 links less than a set threshold, turn

    off one link. In Legacy DDR, this command can be used on interface corresponding toDialer rotary-group (including ISDN BRI/PRI interface and Dialer interface). In DialerProfile, this command can only be used on Dialer interface. In addition, this commandshould be used together with ppp multilink.

    Example

    ! Set the traffic threshold of Dialer 1 to 80%.

    Quidway(config-if-Dialer1)# dialer load-threshold 80

    Related Command

    dialer rotary-group, dialer remote-name, ppp multilink

    1.11 dialer map

    To enable a DDR interface to call one or multiple destination addresses or receive calls

    from multiple remote addresses, use the dialer map command. To return to the default,use the no form of this command.

    dialer map protocol next-hop-address [name hostname] [broadcast] [dial-string

    [:isdn-subaddress]] [autodial] [lin logic-channel-number]

    no dialer mapprotocol next-hop-address

    Syntax Description

    protocolKey word for network protocol; ip and ipx supported.

    next-hop-address Next hop address.

    hostname Host name for authentication when a call is received; optional.

    broadcast Broadcast packet can be sent along this link; optional.

    dial-string[:isdn-subaddress] Dial string of the remote address; isdn-subaddress isused for the sub-address for an ISDN call, which is optional.

  • 7/27/2019 (DDR Configuration Command).PDF

    10/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-9

    autodial If this parameter is configured for a dialer map, then the router will

    automatically attempt to dial via this dialer map every time interval, which is configuredthrough the dialer autodial-interval command; default: 300 seconds.

    logic-channel-numberLogic channel number at a backup center.

    Default

    no dialer map.

    Command Mode

    Interface configuration mode

    Usage Guideline

    To originate a call only, use the dialer-stringparameter.

    If use the key word name, it is necessary to configure PPP authentication. A dialer port

    can be configured with multiple dialer map, and a destination address can also beconfigured with multiple dialer map.

    & Note:

    If no dialer-group command, then DDR will not dial.

    Example

    ! Set a dialer map at Serial 0

    Quidway(config-if-Serial0)# dialer map ip 131.108.2.5 name ZZZ 14155553434

    Related Command

    dialer in-band, dialer-group, dialer string dialer autodial-interval

    1.12 dialer pool

    To determine which dialer pool a Dialer port uses for connecting with a subnet in aflexible DDR configuration, use the dialer pool command. To return to the default, usethe no form of this command.

    dialer poolnumber

    no dialer pool

    Syntax Description

    numberDialer pool sequence number, ranging 1 to 255.

    Default

    no dialer pool.

  • 7/27/2019 (DDR Configuration Command).PDF

    11/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-10

    Command Mode

    Dialer interface configuration mode

    Usage Guideline

    This command can be used at the Dialer interface only, and one Dialer interface can

    only correspond to one dialer pool.

    Example

    ! Set the interface Dialer 1 as using dialer pool 3

    Quidway(config-if-Dialer1)# ip address 1.1.1.1 255.255.255.0

    Quidway(config-if-Dialer1)# encapsulation ppp

    Quidway(config-if-Dialer1)# dialer remote-name Smalluser

    Quidway(config-if-Dialer1)# dialer string 4540

    Quidway(config-if-Dialer1)# dialer pool 3

    Quidway(config-if-Dialer1)# dialer-group 1

    Related Command

    dialer pool-member, dialer remote-name

    1.13 dialer pool-member

    To determine which dialer pool a physical interface belongs to, use the dialer pool-membercommand. To return to the default, use the no form of this command.

    dialer pool-membernumber[prioritypriority]

    no dialer pool-membernumber

    Syntax Description

    numberDialer pool sequence number, ranging 1 to 255.

    priorityPriority of the physical interface in this dialer pool, ranging 1 to 127. A physical

    interface with a higher priority is used first. This is an option.

    Default

    Priority is 1. Physical interface does not belong to any dialer pool.

    Command Mode

    Interface configuration mode

    Usage Guideline

    This command can be used at the physical interface only. A physical interface can be

    used in more than a dialer pool.

  • 7/27/2019 (DDR Configuration Command).PDF

    12/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-11

    Example

    ! Set Bri 1 as belonging to dialer pools 1 and 2, with a priority of 50

    Quidway(config)# interface bri 1

    Quidway(config-if-Bri1)# encapsulation ppp

    Quidway(config-if-Bri1)# dialer pool-member 1 priority 50

    Quidway(config-if-Bri1)# dialer pool-member 2 priority 50

    Quidway(config-if-Bri1)# ppp authentication chap

    Related Command

    dialer pool, dialer remote-name

    1.14 dialer priority

    To set the priority for an interface when a physical interface belongs to a dialer rotary-

    group in a standard DDR configuration, use the dialer priority command. To return tothe default, use the no form of this command.

    dialer prioritypriority

    no dialer priority

    Syntax Description

    priorityPriority of the physical interface in the dialer rotary-group, ranging 1 to 127.

    Default

    Priority: 1.

    Command Mode

    Interface configuration mode

    Usage Guideline

    This command is used to set the sequence where an idle physical interface is used in a

    dialer rotary-group. A physical interface with a higher priority is used by preference.

    Example

    ! Set the priority of Serial 3 in dialer rotary-group 0 to 5

    Quidway(config-if-Serial3)# dialer rotary-group 0

    Quidway(config-if-Serial3)# dialer priority 5

    Related Command

    dialer rotary-group

  • 7/27/2019 (DDR Configuration Command).PDF

    13/29

  • 7/27/2019 (DDR Configuration Command).PDF

    14/29

  • 7/27/2019 (DDR Configuration Command).PDF

    15/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-14

    & Note:

    If the dialer-group command is not configured, then DDR will not dial.

    This command is valid only when one of the following conditions is met:

    l No dialer map is configured at the interface.

    l The corresponding command in the dialer map can not be identified for the next-hop address to which the packet is sent.

    Example

    ! Set the dial string of dialer 1 to the destination as 11111

    Quidway(config)# interface dialer 1

    Quidway(config-if-Dialer1)# dialer map ip 131.108.2.5 name YYY 14155553434

    Quidway(config-if-Dialer1)# dialer string 11111

    Related Command

    dialer map, dialer-group, dialer in-band

    1.18 dialer wait-for-carrier-time

    To set the maximum time DDR waits for call setup when a call starts, use the dialer

    wait-for-carrier-time command. To return to the default, use the no form of thiscommand.

    dialer wait-for-carrier-time seconds

    no dialer wait-for-carrier-time

    Syntax Description

    seconds Wait time in second, ranging 0 to 65535.

    Default

    Wait time: 60 seconds.

    Command Mode

    Interface configuration mode

    Usage Guideline

    DDR terminates the call if it is not set up within the set time.

    Example

    ! Set the wait time at Serial 0 to 100 seconds

    Quidway(config-if-Serial0)# dialer wait-for-carrier-time 100

  • 7/27/2019 (DDR Configuration Command).PDF

    16/29

  • 7/27/2019 (DDR Configuration Command).PDF

    17/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-16

    1.20 dialer-list

    To control the condition for a DDR call, use the dialer-list command is used. To return

    to the default, use the no form of this command.

    dialer-list dialer-groupprotocolprotocol-name { permit | deny }

    dialer-list dialer-grouplistaccess-list-number

    no dialer-listdialer-group

    Syntax Description

    dialer-group Sequence number of the dialer access group, corresponding to the

    dialer-groupgroup-numberin the DDR interface configuration.

    protocol-name Network protocol name, ip or ipx.

    permit Packets of a corresponding protocol permitted.

    deny Packets of a corresponding protocol denied.

    access-list-number Access list number corresponding to the dialer access group.

    Default

    no dialer-list.

    Command Mode

    Global configuration mode

    Usage Guideline

    To set packet transmission control corresponding to a dialer access group, use he

    dialer-group command to make an interface belong to a dialer access group so as tocomplete packet transmission control at a DDR interface.

    If a dialer-group fails to identify a corresponding dialer-list, DDR will treat the packet as

    an uninteresting one.

    Example

    ! Set dialer access list

    Quidway(config-if-Serial1)# dialer-group 1

    Quidway(config)# access-list 101 deny igrp 0.0.0.0 255.255.255.255 255.255.255.255

    0.0.0.0

    Quidway(config)# access-list 101 permit ip 0.0.0.0 255.255.255.255 0.0.0.0

    255.255.255.255

    Quidway(config)# dialer-list 1 list 101

    Related Command

    dialer-group

  • 7/27/2019 (DDR Configuration Command).PDF

    18/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 1DDR Configuration Commands

    1-17

    1.21 interface dialer

    To create a dialer rotary group in a standard DDR configuration or to define a dialer

    interface in a flexible DDR configuration, use the interface dialercommand. To returnto the default, use the no form of this command.

    interface dialernumber

    no interface dialernumber

    Syntax Description

    number Interface sequence number, ranging 1 to 255.

    Default

    no interface dialer.

    Command Mode

    Global configuration mode

    Usage Guideline

    Dialer rotary groups allow a dialer interface configuration to be used in a group ofphysical interfaces, which can be used to call different destinations.

    Dialer rotary groups are very effective when it is necessary to call multiple destination

    addresses at the same time. All the commands are configured at the dialer interface,and each physical interface only needs to execute the dialer rotary-group command.

    The physical interfaces in a Dialer rotary group do not have their own networkaddresses; instead, they use the addresses in the dialer interface.

    Example

    ! Define dialer1 as a dialer interface

    Quidway(config)# interface dialer 1

    Related Command

    dialer map, dialer rotary-group, dialer string, dialer remote-name

    1.22 show dialer

    To show the DDR interface information, use the show dialercommand.

    show dialer[ interface interface-type interface-number]

    Syntax Description

    interface-type Interface type.

    interface-number Interface sequence number.

  • 7/27/2019 (DDR Configuration Command).PDF

    19/29

  • 7/27/2019 (DDR Configuration Command).PDF

    20/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2Modem Configuration Commands

    2-1

    Chapter 2 Modem Configuration Commands

    Modem configuration commands include:

    l chat-script

    l modeml script startupl script activation

    l script connectionl script dialerl script init-string

    l script resetl script startupl start-chat

    l show scriptl show script-event

    2.1 chat-script

    To define the Modem script in global mode, use the chat-script command. To return tothe default, use the no form of this command.

    chat-scriptscript-name expect-send

    no chat-scriptscript-name

    Syntax Description

    script-name Name of the script.

    expect-sendContent of the script.

    Default

    no chat-script.

    Command Mode

    Global configuration mode

    Usage Guideline

    The Quidway series of routers provides the Modem script, which is mainly used for:

    l Flexibly controlling Modems of different models. For example, differentinitialization strings are used to ensure interoperability and good coordinationbetween routers of different suppliers and models.

    l For carrying out remote interactive logging and switching to different states via theinteractive negotiation between scripts. When async serial interfaces of bothrouters set up a connection via the Modem, for example, the protocol

    encapsulated on this physical link and the working parameters of the protocol canbe determined via mutual negotiation.

    Normal Modem script formats are shown as follows:

  • 7/27/2019 (DDR Configuration Command).PDF

    21/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2Modem Configuration Commands

    2-2

    send-string1receive-string1send-string2receive-string2......

    In the above formats:

    l send-stringsends character string

    l receive-stringreceives character stringl send-string and receive-stringnormally appear in pair, and script sending should

    begin with character string, such as send-string1 receive-string1 ...... , whichrepresents the following process: send-string1 is sent to the Modem, expecting toreceive receive-string1. If the received string successfully matches receive-string1,

    then continues executing the following script, otherwise stops executing the script.l If the last string is a sending string, this indicates that after this string is sent, the

    execution of the script can be terminated, and it is no longer necessary to wait for

    the receiving string.l If it is unnecessary to send a string at the beginning of a script, and you can

    directly wait for the receiving string, then you can set the first send string as ,

    whose meaning will be expounded later.l The sending string ends with \c, and an Enter sign is added to its end automatically

    when it is sent.l The receiving string is matched via the location-independent matching method,

    that is, the matching is considered successful as long as the received contentscontain the string expected to be received.

    l As for receiving string matching, there can be multiple strings expected to bereceived, which are interconnected with -; as long as one of them matches, thematching is considered successful.

    l The default wait-for-string timeout is 5 seconds. TIMEOUT seconds can beinserted at any point in the script to adjust the timeout value of the string, andremains valid until the next setting of TIMEOUT in the same script. Its meaning is

    shown in the following table.

    Table DC-2-1 List of script key words

    Key word Description

    ABORT receive-string ABORT is followed by a receive string, which is used to match the string from theModem or the remote DTE. The full matching method is used, that is, a script can

    contain multiple ABORT settings, each of which is valid during the whole period ofscript execution.

    TIMEOUT seconds TIMEOUT is followed by a number. It is used to set the timeout for the receive string. Ifno expected string is received within this time, then the execution of this script fails.This timeout value is valid after it is set until the next TIMEOUT setting.

    l All the strings and keywords in the script are case sensitive.l The strings and key words are separated with a space. If a string contains a space,

    this space should be contained in " ". If there is nothing between the quotation

    marks (that is, ""), then this string may have two meanings:a) if "" is located at the beginning of the script, then this indicates that no string needs tobe forwarded, and you can just directly wait for the string;

    b) if it is located in any place, then the content of this string is considered as "".

    l ABORT receive-string can be inserted into the script to change the executionprocess of the script, indicating that if the received string fully matches receive-string, then the execution of this script is terminated. ABORT receive-strings can

    appear for many times, and they will work interactively. As long as one of themmatches, the execution of the script will stop. No matter where ABORT receive-string appears, it functions during the whole process of script execution.

    l An escape character can be inserted into the script so as to achieve better controlover the script and increase the flexibility of the script. In addition, all escapecharacters are also string separators. For detail, please refer to the following table.

  • 7/27/2019 (DDR Configuration Command).PDF

    22/29

  • 7/27/2019 (DDR Configuration Command).PDF

    23/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2Modem Configuration Commands

    2-4

    2.3 modem-autoanswer

    To set the external Modem at the async interface to autoanswer, use the modem-

    autoanswercommand. To set the non-auto answer mode at the async interface, usethe no modem-autoanswercommand.

    modem-autoanswer

    nomodem-autoanswer

    Default

    no modem-autoanswer.

    Command Mode

    Interface configuration mode

    Usage Guideline

    This command is executed according to the answer status of the external Modem of the

    router. When the status of the Modem is set to autoanswer (the AA light of the Modemis on), modem-autoanswer must be executed in the corresponding interfaceconfiguration mode. If it is in the non-auto answer mode, then no modem-autoanswercan be executed.

    Executing this command will not change the status of the Modem, but will reflect its

    status. You should decide whether to execute the modem-autoansweraccording tothe answer status (AA light) of the current external Modem.

    Example

    ! Set the external Modem at Serial0 to autoanswer

    Quidway(config-if-Serial0)# modem-autoanswer

    Related Command

    modem

    2.4 script activation

    To specify the Modem script executed when an outgoing call connection is successfully

    set up on the line, use the script activation command. To return to the default, use theno form of this command.

    script activationregexp

    no script activation

    Syntax Description

    regexp Script in the script set.

  • 7/27/2019 (DDR Configuration Command).PDF

    24/29

  • 7/27/2019 (DDR Configuration Command).PDF

    25/29

  • 7/27/2019 (DDR Configuration Command).PDF

    26/29

  • 7/27/2019 (DDR Configuration Command).PDF

    27/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2Modem Configuration Commands

    2-8

    Usage Guideline

    If this configuration is made, the specified Modem script will be executed during line

    reset. If a call is disconnected at the interface, then the Modem is reset.

    Example

    ! Specify the Modem script executed during line reset

    Quidway(config)# chat-script drop-line "" +++ OK ATH OK "ATS0=1" OK

    Quidway(config-if-Serial0)# script reset drop-line

    Related Command

    chat-script, start-chat, script activation, script connection, script dialer, script

    startup, show script show script-event

    2.9 script startup

    To specify the Modem script executed when the system is powered on or rebooted, use

    the script startup command. To return to the default, use the no form of thiscommand.

    script startupregexp

    no script startup

    Syntax Description

    regexp Script in the script set.

    Default

    no script startup.

    Command Mode

    Interface configuration mode

    Usage Guideline

    If this configuration is made, then the specified Modem script is executed when thesystem is powered on and rebooted. This is to initialize the async device that connectsto the interface.

    Example

    ! Execute the specified example when the system is powered on or rebooted

    Quidway(config-if-Serial0)# script startup example

    Related Command

    chat-script, start-chat, script activation, script connection, script dialer, script

    reset, show script show script-event

  • 7/27/2019 (DDR Configuration Command).PDF

    28/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2Modem Configuration Commands

    2-9

    2.10 start-chat

    To execute the specified Modem script at the interface, use the start-chat command.

    start-chatregexp

    Syntax Description

    regexp Script in the script set.

    Command Mode

    Interface configuration mode

    Usage Guideline

    This command provides the method for executing the Modem script commandimmediately. If a script is being executed at a corresponding interface, then thiscommand will not be executed, and an error message will be reported.

    Example

    ! Execute the Modem script example at the interface.

    Quidway(config-if-Serial0)# start-chat example

    Related Command

    chat-script show script show script-event

    2.11 show script

    To show the Modem script, use the show script command.

    show script

    Command Mode

    Privileged user mode

    Usage Guideline

    According to the information output via this command, you can make sure if the Modem

    script is correctly configured.

    Related Command

    chat-script

    2.12 show script-event

    To show the Modem script associated with the events, use the show script-event

    command.

  • 7/27/2019 (DDR Configuration Command).PDF

    29/29

    User Manual Command Reference (Volume 3)

    Versatile Routing Platform

    Chapter 2Modem Configuration Commands

    show script-event

    Command Mode

    Privileged user mode

    Usage Guideline

    According to the information output via this command, you can make sure if a correctModem script has been specified for a certain event.

    Related Command

    chat-script script activation script connection script dialer script reset script

    startup