Example usage
In this example, the Exec Probe is used to connect to a Telnet server to receive an event stream.
Set the following properties in the exec.props file:
ExecCommand : 'telnet sol10-build2 8001'
Footer : 'END JOB'
Header : 'CNK1'
ParseAsLines : 1
These properties specify that
the probe reads events from port 8001
of the Telnet
server sol10-build2
, treats the text CNK1
as
the start of an event and the text END JOB
as the
end of an event, and treats each line in the event as a separate token.
If the probe receives the following event stream from the Telnet server:
CNK1/721TESI001D/CTYCBZ1V1332-P37/013 99-12-21 18:29:08
7898 3073/03999 ARCHIV.CPSPT-10035
CCS7 - BLOCKED TRUNKS
SPC NETIND USNAME FIRST CIC LAST CIC NUM OF TRUNKS
--------------+-------+-------+----------+---------+-------------
4-4- 8-0 NAT1 ISUP 4- 1 4-31 31
END JOB 7898
It creates the following tokens:
Header: CNK1/721TESI001D/CTYCBZ1V1332-P37/013 99-12-21 18:29:08
Token0: 7898 3073/03999 ARCHIV.CPSPT-10035
Token1:
Token2: CCS7 - BLOCKED TRUNKS
Token3:
Token4: SPC NETIND USNAME FIRST CIC LAST CIC NUM OF TRUNKS
Token5: --------------+-------+-------+----------+---------+-------------
Token6: 4-4- 8-0 NAT1 ISUP 4- 1 4-31 31
Footer: END JOB 7898