Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.13
In commands, use Device Monitor token as tokenattribute value. Copy it from Manage->Pluginssection in Management console.

Examples on how to send events of Email class

Example 1:

To send an Email class event of Emailservice to Traffic Monitor, use the command below
Sv translation
languageru

С помощью тестовой утилиты pushapi-util можно отправить в Traffic Monitor события для любых встроенных сервисов и классов, используя встроенный плагин Device Monitor.

Информация
titleПримечание:

В командах в качестве значения атрибута token используйте значение токена Device Monitor. Его можно скопировать в разделе Управление -> Плагины Консоли управления Traffic Monitor.

Примеры отправки событий класса Почта

Пример 1:

Чтобы отправить в Traffic Monitor событие класса Почта сервиса Электронная почта, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class email \
--service email \
--evtattr event_name:"Send email" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--receiver email:"mail_receiver2@mail.ru" \
--data file:/root/test_email.eml

Где test_email.eml – это файл, содержащий передаваемое письмо. Атрибуты data, sender и receiver являются обязательными.

В Консоли управления Traffic Monitor событие будет выглядеть следующим образом:

Пример 2:

Чтобы отправить в Traffic Monitor событие класса Почта сервиса Веб-почта, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class email \
--service email_web \
--evtattr event_name:"Send email_web" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--data file:/root/test_email.eml
Примеры

Пример отправки событий класса Беседа

Пример 1:

Чтобы отправить в Traffic Monitor событие класса Беседа для мессенджера ICQSkype, содержащее метаинформацию об отправителях, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchat \
--service im_icqskype \
--evtattr event_name:"ICQ chatSkype event" \
--receiver icq:IcqReceiver \
--mes icq:IcqSendermes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential information"

Атрибуты mes и receiver являются обязательными.

Пример 2:

Чтобы отправить в Traffic Monitor событие класса Беседа для мессенджера Skype, содержащее метаинформацию об отправителях, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchat \
--service im_skype \
--evtattr event_name:"Skype event" \
--mes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential information" \
--mes "skype:349051100:'{\"display_name\":\"SkypeUser2\",\"login\":\"user2_skype\"}'","Thank you"

Здесь для отправителей сообщений указана метаинформация, включающая в себя отображаемое имя и логин отправителя. В Консоли Управления Traffic Monitor событие будет выглядеть следующим образом:

Image Removed

Примеры отправки событий класса Печать, копирование и сканирование

Чтобы отправить в Traffic Monitor событие класса Печать, копирование и сканирование сервиса Принтер и МФУ, используйте команды следующего вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name" \
--data file:/root/test.png,filename:test.png

и

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name",print_port_name:"Some print port name",print_location:"Some print location" \
--data file:/root/test.png,print_copies:3,print_job_name:"Some print job name"

Атрибуты receiver и data являются обязательными. Также команда должна содержать один из атрибутов filename и print_job_name.

Примеры отправки событий класса Интернет-активность

Чтобы отправить в Traffic Monitor событие класса Интернет-активность одноименного сервиса, используйте команду следующего вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class web \
--service web_common \
--evtattr event_name:"Web event1" \
--receiver res:"drive.google.com",res_destination_url:"/file/test" \
--data file:/root/test
Где test – это файл, содержащий POST-запрос. В нашем примере в передаваемом запросе присутствует фраза строго конфиденциально. При настроенных политиках защиты данных
 \
--mes "skype:349051100:'{\"display_name\":\"SkypeUser2\",\"login\":\"user2_skype\"}'","Thank you"

Здесь для отправителей сообщений указана метаинформация, включающая в себя отображаемое имя и логин отправителя. В Консоли Управления Traffic Monitor событие будет выглядеть следующим образом:

Image Removed

Атрибуты data и receiver являются обязательными.

Пример

Image Added

Примеры отправки событий класса

Фотосъемка

Печать, копирование и сканирование

Чтобы отправить в Traffic Monitor событие класса Фотосъемка Печать, копирование и сканирование сервиса Принтер и МФУ, используйте команду команды следующего вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id iw \
--class photomfp \
--service photosofprint \
--evtattr event_name:"Photo event" \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer_name:"Print event" \
--datareceiver file:/root/test.png,filename:test.png

Примеры отправки событий класса Обмен файлами

Атрибуты receiver, data и destination_file_path обязательны для событий сервисов Облачные хранилища, Терминальная сессия, Сетевые ресурсы, FTP и Съемное устройство.

Атрибуты receiver и data обязательны для событий класса Обмен файлами сервиса Мессенджеры.

Пример 1:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Облачные хранилища, используйте команду вида:
dev:"Some Printer Name" \
--data file:/root/test.png,filename:test.png

и

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexchmfp \
--service cloud_storageprint \
--evtattr event_name:"cloud_storagePrint event" \
--sender auth:user_name@iw \
--receiver res:googledrive.com,res_destination_url:"goodledrive.com/user/folder/" receiver dev:"Some Printer Name",print_port_name:"Some print port name",print_location:"Some print location" \
--data file:/root/test.png,destination_file_path:"Send file here"

Событие в Консоли управления Traffic Monitor:

Image Removed

Пример 2:

,print_copies:3,print_job_name:"Some print job name"

Атрибуты receiver и data являются обязательными. Также команда должна содержать один из атрибутов filename и print_job_name.

Примеры отправки событий класса Интернет-активность

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Терминальная сессия Интернет-активность одноименного сервиса, используйте команду следующего вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexchweb \
--service terminalweb_sessioncommon \
--evtattr event_name:"terminal_sessionWeb eventevent1" \
--senderreceiver phone:+79057777777 \
--receiver res:root@test.comres:"drive.google.com",res_destination_url:"/file/test" \
--data file:/root/test.png,destination_file_path:"test.com/folder"
Пример 3:

Где test – это файл, содержащий POST-запрос. В нашем примере в передаваемом запросе присутствует фраза строго конфиденциально. При настроенных политиках защиты данных событие будет выглядеть следующим образом:

Image Added

Атрибуты data и receiver являются обязательными.

Пример отправки событий класса Фотосъемка

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Сетевые ресурсыкласса Фотосъемка, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token deviceyour_monitorplugin_token_value \
--id iw \
--class fileexchphoto \
--service network_resourcephotosof \
--evtattr event_name:"network_resourcePhoto event" \
--senderreceiver "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'" \
--receiver res:test.com,res_destination_url:"test.com/folder/ " ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data file:/root/test.png,filename:test.png

Примеры отправки событий класса Обмен файлами

Атрибуты receiver, data и destination_file_path

:"Send file here"

Событие в Консоли управления Traffic Monitor:

Image Removed

Пример 4 обязательны для событий сервисов Облачные хранилища, Терминальная сессия, Сетевые ресурсы, FTP и Съемное устройство.

Атрибуты receiver и data обязательны для событий класса Обмен файлами сервиса Мессенджеры.

Пример 1:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса FTP Облачные хранилища, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service ftpcloud_storage \
--evtattr event_name:"FTPcloud_storage Eventevent" \
--sender loginauth:villainuser_name@iw \
--receiver res:ftpgoogledrive.site.orgcom,res_destination_url:"catalog\catalog\res.file"goodledrive.com/user/folder/"  \
--data file:/root/test.png,destination_file_path:"Send file here"

Событие в Консоли управления Traffic Monitor:

Image Added

Пример 52:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами сервиса Съемное устройство Терминальная сессия, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service fileterminal_copy_removablesession \
--evtattr event_name:"terminal_session event"Copy file on device" \
--sender phone:+79057777777 \
--receiver dev:"Removable device"res:root@test.com \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"Send file heretest.com/folder"

Пример 63:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами для мессенджера ICQ сервиса Сетевые ресурсы, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw  iw \
--class fileexch \
--service network_resource \
--class fileexchevtattr event_name:"network_resource event" \
--service im_icqsender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'" \
--evtattr event_name:"ICQ File Transfer Event"receiver res:test.com,res_destination_url:"test.com/folder/ "  \
--receiver icq:IcqReceiver \
--data file:/root/test.png,destination_file_path:"Send file here"

Событие в Консоли управления Traffic Monitor:

Image Added

Пример 74:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами для мессенджера Skype сервиса FTP, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service im_skypeftp \
--evtattr event_name:"Skype File TransferFTP Event" \
--sender skypelogin:SkypeSendervillain \
--receiver skype:SkypeReceiver1 \
--receiver skype:SkypeReceiver2res:ftp.site.org,res_destination_url:"catalog\catalog\res.file" \
--data file:/root/test.png,filename:test.png
Пример отправки события класса Звонок
destination_file_path:"Send file here"

Пример 5:

Чтобы отправить в Traffic Monitor событие класса Звонок Обмен файлами сервиса Мессенджеры Съемное устройство, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class voicetalkfileexch \
--service imfile_copy_skyperemovable \
--evtattr event_name:"SkypeCopy file Voiceon Talkdevice" \
--senderreceiver skype:SkypeSender \
--receiver skype:SkypeReceiverdev:"Removable device" \
--data file:/root/sound_msgtest.wavpng,callsource_file_duration:7

Событие содержит аудиофайл sound_msg.wav, а длительность разговора составляет 7 секунд. В Консоли управления Traffic Monitor аудиофайл будет доступен для скачивания. Атрибуты receiver, data и call_duration обязательны для событий класса Звонок сервиса Мессенджеры.

Примеры отправки событий класса Запись мультимедиа
path:"Copy from here",destination_file_path:"Send file here"

Пример 6:

Чтобы отправить в Traffic Monitor событие класса Запись мультимедиа, используйте Обмен файлами для мессенджера Skype, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id iw \
--class multimediafileexch \
--service videosofim_skype \
--evtattr event_name:"Video eventSkype File Transfer Event" \
--sender skype:SkypeSender \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer"skype:SkypeReceiver1 \
--receiver skype:SkypeReceiver2 \
--data file:/root/video.avi
Sv translation
languageen
With the help of pushapi-util
test
utility, you can send events for any built-in services and classes to Traffic Monitor using the built-in Device Monitor plugin.
Информация
titleNote
.png,filename:test.png

Пример отправки события класса Звонок

Чтобы отправить в Traffic Monitor событие класса Звонок сервиса Мессенджеры, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class emailvoicetalk \
--service emailim_skype \
--evtattr event_name:"Send email" \
--sender email:"mail_sender@mail.ruSkype Voice Talk" \
--receiversender email:"mail_receiver1@mail.ru"skype:SkypeSender \
--receiver email:"mail_receiver2@mail.ru"skype:SkypeReceiver \
--data filedata file:/root/testsound_email.eml

In the command above, test_email.eml is a file that contains the message. The data, sender and receiver attributes are required.

In Traffic MonitorManagement console, the event looks as follows:

Image Removed

Example 2:

To send anEmail event of Web email service to Traffic Monitor, use the command below
msg.wav,call_duration:7

Событие содержит аудиофайл sound_msg.wav, а длительность разговора составляет 7 секунд. В Консоли управления Traffic Monitor аудиофайл будет доступен для скачивания. Атрибуты receiver, data и call_duration обязательны для событий класса Звонок сервиса Мессенджеры.

Примеры отправки событий класса Запись мультимедиа

Чтобы отправить в Traffic Monitor событие класса Запись мультимедиа, используйте команду вида:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token deviceyour_monitorplugin_token_value \
--id iw \
--class emailmultimedia \
--service email_webvideosof \
--evtattr event_name:"Send email_web" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--data file:/root/test_email.emlVideo event" \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data file:/root/video.avi
Sv translation
languageen

With the help of pushapi-util test utility, you can send events for any built-in services and classes to Traffic Monitor using the built-in Device Monitor plugin.

Информация
titleNote
In commands, use Device Monitor token as tokenattribute value. Copy it from Manage->Pluginssection in Management console.

Examples on how to send events of

Chat

Email class

Example 1:

To send a Chat an Email class event for ICQ application of Emailservice to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchatemail \
--service im_icqemail \
--evtattr event_name:"ICQ chat event:"Send email" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--receiver icq:IcqReceiveremail:"mail_receiver2@mail.ru" \
--mes icq:IcqSender,"Confidential information"

The mes and receiver attributes are required.

data file:/root/test_email.eml

In the command above, test_email.eml is a file that contains the message. The data, sender and receiver attributes are required.

In Traffic MonitorManagement console, the event looks as follows:

Image Added

Example 2:

To send a Chat class event for Skype application anEmail event of Web email service to Traffic Monitor, use the command below. Note that in this example the event contains metadata about senders.:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchat \
--service im_skype \
--evtattr event_name:"Skype event" \
--mes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential informationemail \
--service email_web \
--evtattr event_name:"Send email_web" \
--messender "skype:349051100:'{\"display_name\":\"SkypeUser2\",\"login\":\"user2_skype\"}'","Thank you"
The sender metadata includes the displayed name and Skype login name of a sender. In Traffic MonitorManagement console, the event looks as follows: Image Removed
email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--data file:/root/test_email.eml

Examples on how to send events of

Printers and MFPs

Chat class

Example:

To send a Printers and MFPs Chat class event of Print service for Skype application to Traffic Monitor, use the command below:below. Note that in this example the event contains metadata about senders.

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp iw \
--class imchat \
--service im_skype \
--evtattr event_name:"Skype event" \
--mes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential information" \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name" \
--data file:/root/test.png,filename:test.png
and
mes "skype:349051100:'{\"display_name\":\"SkypeUser2\",\"login\":\"user2_skype\"}'","Thank you"

The sender metadata includes the displayed name and Skype login name of a sender. In Traffic MonitorManagement console, the event looks as follows:

Image Added

Examples on how to send events of Printers and MFPs class

To send a Printers and MFPs class event of Print service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfp \
--service print \
--evtattr event_name:"Print event" \
--receiver dev:"Some Printer Name",print_port_name:"Some print port name",print_location:"Some print location" \
--data file:/root/test.png,print_copies:3,print_jobevtattr event_name:"Some printPrint job name"
The receiver anddata attributes are required. The command should also contain one of the following attributes:filename or print_job_name.

Example on how to send events of Internet Activity class

To send anInternet Activity class event of Web_common service to Traffic Monitor, use the command below:
event" \
--receiver dev:"Some Printer Name" \
--data file:/root/test.png,filename:test.png

and

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class webmfp \
--service web_commonprint \
--evtattr event_name:"WebPrint event1event" \
--receiver resdev:"drive.google.comSome Printer Name",res_destination_url:"/file/testprint_port_name:"Some print port name",print_location:"Some print location" \
--data file:/root/test

In the command above, test is a file that contains a POST query. In our example, the query contains the strictly confidential phrase. When you configure data protection policies, the event looks as follows:

Image Removed

Thedata andreceiver attributes are required
.png,print_copies:3,print_job_name:"Some print job name"

The receiver anddata attributes are required. The command should also contain one of the following attributes:filename or print_job_name.

Example on how to send events

of Photo

of Internet Activity class

To send aanInternet Activity Photo class event to class event of Web_common service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id iw \
--class photoweb \
--service photosofweb_common \
--evtattr event_name:"PhotoWeb eventevent1" \
--receiver wsres:"ws1drive.domaingoogle.orgcom",workstationres_destination_typeurl:"ws_type_computer/file/test" \
--data filedata file:/root/test.png,filename:test.png

Examples on how to send events of File Exchange class

The receiver,data and destination_file_path attributes are required for events of Cloud storage,Terminal session,Network resourse,FTPand External device services.The receiver anddata attributes are required for File Exchangeclass events of Messengers service.

Example 1:

To send File Exchangeclass event of Cloud Storage service

In the command above, test is a file that contains a POST query. In our example, the query contains the strictly confidential phrase. When you configure data protection policies, the event looks as follows:

Image Added

Thedata andreceiver attributes are required.

Example on how to send events of Photo class

To send a Photo class event to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token deviceyour_monitorplugin_token_value \
--id iw \
--class fileexchphoto \
--service cloud_storagephotosof \
--evtattr event_name:"cloud_storagePhoto event" \
--sender auth:user_name@iwreceiver ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--receiver res:googledrive.com,res_destination_url:"goodledrive.com/user/folder/"  \
--data file:/root/test.png,destination_file_path:"Send file here"
In Traffic MonitorManagement console, the event looks as follows:

Image Removed

Example 2:

To send a File exchange class event of Terminal session service to Traffic Monitor
data file:/root/test.png,filename:test.png

Examples on how to send events of File Exchange class

The receiver,data and destination_file_path attributes are required for events of Cloud storage,Terminal session,Network resourse,FTPand External device services.

The receiver anddata attributes are required for File Exchangeclass events of Messengers service.

Example 1:

To send File Exchangeclass event of Cloud Storage service, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service terminalcloud_sessionstorage \
--evtattr event_name:"terminalcloud_sessionstorage event" \
--sender phone:+79057777777auth:user_name@iw \
--receiver res:googledrive.com,res:root@test.com _destination_url:"goodledrive.com/user/folder/"  \
--data file:/root/test.png,destination_file_path:"test.com/folder"
Example 3
Send file here"

In Traffic MonitorManagement console, the event looks as follows:

Image Added

Example 2:

To send a File exchange class event of Network resources  Terminal session service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service networkterminal_resourcesession \
--evtattr event_name:"networkterminal_resourcesession event" \
--sender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'"phone:+79057777777 \
--receiver res:test.com,res_destination_url:"test.com/folder/ "  root@test.com \
--data file:/root/test.png,destination_file_path:"Send file here"

 In Traffic Monitor Management console, the event looks as follows:

Image Removed

Example 4
_path:"test.com/folder"

Example 3:

To send a File exchange  class event of Network resources FTP service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service ftpnetwork_resource \
--evtattr event_name:"FTPnetwork_resource Eventevent" \
--sender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'" \
--receiver res:ftptest.site.orgcom,res_destination_url:"catalog\catalog\res.file"test.com/folder/ "  \
--data file:/root/test.png,destination_file_path:"Send file here"

 In Traffic Monitor Management console, the event looks as follows:

Image Added

Example 54:

To send aFile exchange class event of External device FTP service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service file_copy_removableftp \
--evtattr event_name:"CopyFTP file on device"Event" \
--sender login:villain \
--receiver dev:"Removable deviceres:ftp.site.org,res_destination_url:"catalog\catalog\res.file" \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"SendSend file file here"

Example 65:

To send a File exchange class event for ICQ application of External device service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service imfile_copy_icqremovable \
--evtattr event_name:"ICQCopy Filefile Transferon Eventdevice" \
--receiver icq:IcqReceiverdev:"Removable device" \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"Send file here"

Example 7:

To send a File exchange class event for Skype application to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service im_skype \
--evtattr event_name:"Skype File Transfer Event" \
--sender skype:SkypeSender \
--receiver skype:SkypeReceiver1 \
--receiver skype:SkypeReceiver2 \
--data file:/root/test.png,filename:test.png

Example on how to send events of Call class

To send a Call class event of Messengers service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class voicetalk \
--service im_skype \
--evtattr event_name:"Skype Voice Talk" \
--sender skype:SkypeSender \
--receiver skype:SkypeReceiver \
--data file:/root/sound_msg.wav,call_duration:7

The event contains sound_msg.wav audio file with the call duration of 7 seconds. The file is available for download in Traffic Monitor Management Console. The receiver, data and call_duration attributes are required for Call event classes of Messengers service.

Examples on how to send events of Recording media class

To send a Recording media class event to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token your_plugin_token_value \
--id iw \
--class multimedia \
--service videosof \
--evtattr event_name:"Video event" \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data file:/root/video.avi