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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.14
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 событие класса Беседа для Беседа для мессенджера SkypeICQ, содержащее метаинформацию об отправителях, используйте команду вида:

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

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

Image Removed

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

Атрибуты 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 Added

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

Чтобы отправить в 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-запрос. В нашем примере в передаваемом запросе присутствует фраза строго конфиденциально. При настроенных политиках защиты данных событие будет выглядеть следующим образом:

Image Added

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

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

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token your_plugin_token_value \
--id iw \
--class photo \
--service photosof \
--evtattr event_name:"Photo event" \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data file:/root/test.png,filename:test.png

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

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

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

Пример 1:

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

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

и

sender auth:user_name@iw \
--receiver res:googledrive.com,res_destination_url:"goodledrive.com/user/folder/"  \
--data file:/root/test.png,destination_file_path:"Send file here"

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

Image Added

Пример 2:

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

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

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

Примеры отправки событий класса Интернет-активность
res:root@test.com \
--data file:/root/test.png,destination_file_path:"test.com/folder"

Пример 3:

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class webfileexch \
--service web_common network_resource \
--evtattr event_name:"network_resource event" \
--evtattr event_name:"Web event1sender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'" \
--receiver res:"drive.googletest.com",res_destination_url:"test.com/filefolder/test "  \
--data file:/root/test

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

Image Removed

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

Пример отправки событий класса Фотосъемка
.png,destination_file_path:"Send file here"

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

Image Added

Пример 4:

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id iw \
--class photofileexch \
--service photosofftp \
--evtattr event_name:"PhotoFTP eventEvent" \
--receiver ws:"ws1.domain.org",workstation_type:"ws_type_computer"sender login:villain \
--datareceiver file:/root/test.png,filename:test.png

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

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

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

Пример 1
res:ftp.site.org,res_destination_url:"catalog\catalog\res.file" \
--data file:/root/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 fileexch \
--service cloudfile_copy_storageremovable \
--evtattr event_name:"cloud_storage event" \
--sender auth:user_name@iw \
--receiver res:googledrive.com,res_destination_url:"goodledrive.com/user/folder/" Copy file on device" \
--receiver dev:"Removable device" \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"Send file here"

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

Image Removed

Пример 26:

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service terminalim_sessionicq \
--evtattr event_name:"terminal_session event" \
--sender phone:+79057777777ICQ File Transfer Event" \
--receiver resicq:root@test.comIcqReceiver \
--data file:/root/test.png,destination_file_path:"test.com/folder"

Пример 37:

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

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

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

Image Removed

Пример 4:
filename:test.png

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

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexchvoicetalk \
--service ftpim_skype \
--evtattr event_name:"FTPSkype Voice EventTalk" \
--sender loginskype:villainSkypeSender \
--receiver res:ftp.site.org,res_destination_url:"catalog\catalog\res.file"skype:SkypeReceiver \
--data file:/root/test.png,destination_file_path:"Send file here"
Пример 5:
sound_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 fileexchmultimedia \
--service file_copy_removablevideosof \
--evtattr event_name:"Copy file on deviceVideo event" \
--receiver dev:"Removable device ws:"ws1.domain.org",workstation_type:"ws_type_computer" \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"Send file here"

Пример 6:

Чтобы отправить в Traffic Monitor событие класса Обмен файлами для мессенджера Skype, используйте команду вида
video.avi
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
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 Email class

Example 1:

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexchemail \
--service im_skypeemail \
--evtattr event_name:"Skype File Transfer EventSend email" \
--sender skype:SkypeSenderemail:"mail_sender@mail.ru" \
--receiver skype:SkypeReceiver1email:"mail_receiver1@mail.ru" \
--receiver skype:SkypeReceiver2 \
--data file:/root/test.png,filename:test.png

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

Чтобы отправить в Traffic Monitor событие класса Звонок сервиса Мессенджеры, используйте команду вида
email:"mail_receiver2@mail.ru" \
--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 anEmail event of Web email service to Traffic Monitor, use the command below:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class voicetalkemail \
--service imemail_skypeweb \
--evtattr event_name:"Skype Voice TalkSend email_web" \
--sender skype:SkypeSenderemail:"mail_sender@mail.ru" \
--receiver skype:SkypeReceiver \
--data file:/root/sound_msg.wav,call_duration:7

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

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

Чтобы отправить в Traffic Monitor событие класса Запись мультимедиа, используйте команду вида
email:"mail_receiver1@mail.ru" \
--data file:/root/test_email.eml

Examples on how to send events of Chat class

Example 1:

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token yourdevice_pluginmonitor_token_value \
--id iw \
--class multimediaimchat \
--service videosofim_icq \
--evtattr event_name:"VideoICQ chat 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
icq:IcqReceiver \
--mes icq:IcqSender,"Confidential information"

The mes and receiver attributes are required.

Example 2:

To send a Chat class event for Skype application 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 emailimchat \
--service emailim_skype \
--evtattr event_name:"Send email event_name:"Skype event" \
--mes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential information" \
--sender email:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ru" \
--receiver email:"mail_receiver2@mail.ru" \
--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.

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 Removed

Example 2: Image Added

Examples on how to send events of Printers and MFPs class

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class emailmfp \
--service email_webprint \
--evtattr event_name:"SendPrint email_webevent" \
--senderreceiver emaildev:"mail_sender@mail.ru" \
--receiver email:"mail_receiver1@mail.ruSome Printer Name" \
--data file:/root/test_email.eml

Examples on how to send events of Chat class

Example:

To send a Chat class event for Skype application to Traffic Monitor, use the command below. Note that in this example the event contains metadata about senders.
/test.png,filename:test.png

and

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class imchatmfp \
--service im_skype \
--evtattr event_name:"Skype event" \
--mes "skype:349051292:'{\"display_name\":\"SkypeUser1\",\"login\":\"user1_skype\"}'","Confidential informationprint \
--evtattr event_name:"Print event" \
--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 Removed

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" \
--data file:/root/test.png,filename:test.png

and

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"

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:

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class mfpweb \
--service printweb_common \
--evtattr event_name:"PrintWeb eventevent1" \
--receiver devres:"Some Printer Namedrive.google.com",printres_portdestination_name:"Some print port name",print_location:"Some print location" url:"/file/test" \
--data file:/root/test.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
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 Added

Thedata andreceiver attributes are required.

Example on how to send events

of Internet Activity

of Photo class

To send anInternet Activity class event of Web_common service to 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 webphoto \
--service web_commonphotosof \
--evtattr event_name:"WebPhoto event1event" \
--receiver resws:"drivews1.googledomain.comorg",resworkstation_destination_urltype:"/file/testws_type_computer" \
--data filedata 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.

Example on how to send events of Photo class

To send a Photo class event to Traffic Monitor
.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 yourdevice_pluginmonitor_token_value \
--id iw \
--class photofileexch \
--service photosofcloud_storage \
--evtattr event_name:"Photocloud_storage event" \
--sender auth:user_name@iw \
--receiver wsres:"ws1.domain.org",workstation_type:"ws_type_computer"googledrive.com,res_destination_url:"goodledrive.com/user/folder/"  \
--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
:"Send file here"

In Traffic MonitorManagement console, the event looks as follows:

Image Added

Example 2:

To send a File Exchangeexchange class event of  Cloud Storage service 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 cloudterminal_storagesession \
--evtattr event_name:"cloudterminal_storagesession event" \
--sender auth:user_name@iwphone:+79057777777 \
--receiver res:googledrive.com,res_destination_url:"goodledrive.com/user/folder/"  --receiver res:root@test.com \
--data file:/root/test.png,destination_file_path:"Send file here"
In Traffic MonitorManagement console, the event looks as follows:

Image Removed

Example 2
test.com/folder"

Example 3:

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

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

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

Image Added

Example 4:

To send aFile 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 network_resourceftp \
--evtattr event_name:"network_resourceFTP eventEvent" \
--sender "auth:user_name@iw:'{\"display_name\":\"friend\",\"login\":\"villain\"}'" \
--receiver res:testftp.site.comorg,res_destination_url:"test.com/folder/ " catalog\catalog\res.file" \
--data file:/root/test.png,destination_file_path:"Send file here"

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

Image Removed

Example 45:

To send a File exchange class event of FTP 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 ftpfile_copy_removable \
--evtattr event_name:"FTPCopy Event" \
--sender login:villainfile on device" \
--receiver res:ftp.site.org,res_destination_url:"catalog\catalog\res.filedev:"Removable device" \
--data file:/root/test.png,source_file_path:"Copy from here",destination_file_path:"Send fileSend file here"

Example 56:

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

Блок кода
languagetext
pushapi-util \
--host TM_host \
--token device_monitor_token_value \
--id iw \
--class fileexch \
--service fileim_copy_removableicq \
--evtattr event_name:"CopyICQ fileFile onTransfer deviceEvent" \
--receiver devicq:"RemovableIcqReceiver 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