Test Agents: Unix Test Agent

Introduction

The most functional and frequently used agent type is UNIX Agent. Even though it tends to be generic UNIX Agent, it is better adapted for Linux OS.

Sources of UNIX Test Agent can be found under agents/unix directory of TE tree.

Unix Test Egent supports the following features:

  • RPC Server functionality;

  • Process/thread creation feature;

  • Rich configuration tree support:

  • Daemons configuration (dhcp, dns, ldap, pppoe, radius, radvd, vtund, 802.1x supplicants);

  • Sniffer support;

  • Control of Power Switch devices;

  • Traffic Application Domain (TAD) support for network protocols (ARP, ATM, DHCP, Ethernet, IGMP, UDP, TCP, IPv4, ICMPv4, IPv6, ICMPv6, PPP, SNMP, iSCSI);

  • Periodically running specified commands and logging their output (te_cmd_monitor).

Logging of core dumps

Core watcher application may be used for printing logs about core dumps generated by TA itself, RPC server or any other binary located in a TA directory on a tested host. This is available only for Linux OS.

Source organization

The sources of UNIX Test Agent located under agents/unix directory of TE tree:

  • agents/unix/rpc - implementation of RPC Server calls.

    Please refer to RPC Development Framework for the details on how to add new RPC calls into Test Agents;

  • agents/unix/main.c - implementation of entry point of Test Agent as well as functions of RCF PCH interface;

  • agents/unix/conf implementation of configuration nodes for UNIX Test Agent:

    • agents/unix/conf/base - support of base configuration nodes (network interface configuration);

    • agents/unix/conf/daemons - support of network daemons configuration;

    • agents/unix/conf/route - support of network routing table configuration;

    • agents/unix/conf/util - support of configuration models of external utilities integrated in TE (sniffer);

    Please refer to Test Agents: Creating new configuration nodes in Test Agent for the details on how to add new configuration nodes into Test Agents.