SYNC

code: 253

# set
SYNC <on_off>

Description

Some query commands e.g. P_FULLCONFIG ?, PR_ALL ?, etc. return multiple lines, each of which terminated by a \r\n. It can be hard for the client to know which line is the end of the response. By SYNC ON, the CLI server on the chassis will send <SYNC> at the end of the response so the client and rely on it to mark the end of the response. This can be useful when you want to use CLI for automation.

Note

<SYNC> is designed to mark the end of query responses. For set operation, you should rely on the status message e.g. <OK> as the end of the operation.

Actions

get

Parameters

  1. on_off: byte, turning on/off the sync.

  • OFF = 0

  • ON = 1

Example

input:  SYNC ON
output: <OK>

input:  3/1  P_FULLCONFIG ?
output: 3/1  P_SPEEDSELECTION  F100G
output: 3/1  P_COMMENT  "Port number 1"
output: 3/1  P_TXENABLE  ON
output: 3/1  P_INTERFRAMEGAP  20
output: 3/1  P_FLASH  OFF
output: 3/1  PP_LINKFLAP_PARAMS  100 1000 INFINITE
output: 3/1  PP_LINKFLAP_ENABLE  OFF
output: 3/1  PP_PMAERRPUL_PARAMS  100 1000 0 100 -4
output: 3/1  PP_PMAERRPUL_ENABLE  OFF
output: 3/1  P_SPEEDREDUCTION  -1
output: 3/1  P_MACADDRESS  0x04F4BCCE9C31
output: 3/1  P_IPADDRESS  0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0
output: 3/1  P_MULTICAST  0.0.0.0 OFF 25
output: 3/1  P_MULTICASTEXT  0.0.0.0 OFF 25 IGMPV2
output: 3/1  P_MULTICASTHDR  0 NOHDR 0 0 DEI_OFF
output: 3/1  P_MCSRCLIST  0.0.0.0
output: 3/1  P_ARPREPLY  OFF
output: 3/1  P_PINGREPLY  OFF
output: 3/1  P_IPV6ADDRESS  0x00000000000000000000000000000000 0x00000000000000000000000000000000 128 128
output: 3/1  P_ARPV6REPLY  OFF
output: 3/1  P_PINGV6REPLY  OFF
output: 3/1  P_ARPRXTABLE
output: 3/1  P_NDPRXTABLE
output: 3/1  P_PAUSE  OFF
output: 3/1  P_PFCENABLE  OFF OFF OFF OFF OFF OFF OFF OFF
output: 3/1  P_RANDOMSEED  0
output: 3/1  P_LATENCYOFFSET  0
output: 3/1  P_LATENCYMODE  LAST2LAST
output: 3/1  P_TXTIMELIMIT  0
output: 3/1  P_TXBURSTPERIOD  0
output: 3/1  P_TXPACKETLIMIT  0
output: 3/1  P_TXMODE  NORMAL
output: 3/1  P_MAXHEADERLENGTH  128
output: 3/1  P_AUTOTRAIN  0
output: 3/1  P_LOOPBACK  NONE
output: 3/1  P_CHECKSUM  OFF
output: 3/1  P_GAPMONITOR  0 0
output: 3/1  P_MIXWEIGHTS  0 0 0 0 57 3 5 1 2 5 1 4 4 18 0 0
output: 3/1  P_TXDELAY  0
output: 3/1  P_TPLDMODE  NORMAL
output: 3/1  P_DYNAMIC  OFF
output: 3/1  P_PAYLOADMODE  NORMAL
output: 3/1  PEC_INDICES
output: 3/1  PS_INDICES
output: 3/1  PM_INDICES
output: 3/1  PL_INDICES
output: 3/1  PF_INDICES
output: 3/1  PC_TRIGGER  ON 0 FULL 0
output: 3/1  PC_KEEP  ALL 0 -1
output: 3/1  PD_INDICES
output: 3/1  PP_TXLANECONFIG  [0]  0 0
output: 3/1  PP_TXPRBSCONFIG  [0]  0 PRBSOFF ERRORSOFF
output: 3/1  PP_TXLANECONFIG  [1]  1 0
output: 3/1  PP_TXLANECONFIG  [2]  2 0
output: 3/1  PP_TXLANECONFIG  [3]  3 0
output: 3/1  PP_TXERRORRATE  0
output: 3/1  PP_PHYAUTONEG  1 0 0 0 0
output: 3/1  PP_FECMODE  ON
output: 3/1  PP_PRBSTYPE  PHY_LINE PRBS31 NON_INVERTED ACCUMULATIVE
output: 3/1  PP_PHYSETTINGS  0 0 1 0
output: 3/1  PP_AUTONEG  ANEG_OFF IEEE_100GBASE_KR1 DEFAULT_FEC 16 NO_PAUSE
output: 3/1  PP_LINKTRAIN  DISABLE P16K_FRAME NO_INIT NRZ_NO_PRESET DEFAULT_TIMEOUT
output: <SYNC>