Customize heartbeat packets – Net Optics iBypass HD User Manual

Page 33

Advertising
background image

29

iBypass HD

Customize Heartbeat Packets

You can define a custom Heartbeat packet for each of the eight segments. The packet contents can be specified using

the heartbeat set command. In addition, the timeout, retries can also be changed.

A default Heartbeat packet is available for all segments. The default Heartbeat packet is:
00 50 c2 3c 60 00 (source address)

00 50 c2 3c 60 01 (destination address)

81 37 ff ff (packet type)

00 30 00 00

00 00 40 04

ec a2 c6 13

01 02 c6 13

01 01 00 00

00 00 00 00 (payload bytes)

00 00 00 00

00 00 00 00

00 00 00 00

00 00 00 00

00 00 00 00

a0 07 37 99 (CRC)

To specify a custom Heartbeat packet, use the heartbeat set command. The syntax of the heartbeat set command is:
heartbeat set index=<1-8> value=<hex string>

The argument value=, if present, must be the last argument in the command, enabling the <hex string> to have

embedded spaces.

The following example shows the Heartbeat packet for the first DBM being set to the same value as the default packet.

If you customize a Heartbeat packet and subsequently want to return to the default packet, type this command.

Net Optics> heartbeat set index=1 value=00 50 c2 3c 60 00 00 50 c2 3c 60 01

81 37 ff ff 00 30 00 00 00 00 40 04 ec a2 c6 13 01 01 00 00 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

a0 07 37 99

Net Optics>

If you enter a Heartbeat packet with less than the minimum Ethernet packet size of 64 bytes, it is automatically padded

with zeros to 64 bytes. The maximum size allowed for the Heartbeat packet is 128 bytes. Be sure to include valid CRC

bytes for your packet.

The use of spaces in the value field is optional and can be used for readability. The value cannot contain newline

characters. (In the example, the command is one long line that wraps on the screen.)

To see the settings of the custom Heartbeat packets, type heartbeat show.

The heartbeat set command accepts three additional optional arguments (not shown in the systax definition on

the previous page: These arguments are: mode=<port1|port2|both||disable> retries=<1..10> interval=<1..65535>

timeout=<1..65535>

Advertising