Looking at the link to the documentation you sent, I think the command trex_daemon_server makes sense for me... But I have a few questions:
Does this executable only start the daemon in "stateful" mode or can I also use this to start in "stateless" mode?
When running the help for this command, I don't see an option to specify the number of cores I need. How can I achieve that while still using the trex_daemon_server command?
[asilver@trex scripts]$ sudo ./trex_daemon_server -h
[sudo] password for asilver:
usage: trex_daemon_server [-h] [-v] [-p PORT] [-z PORT] [-t PATH] [-f PATH]
[--trex-host HOST] [-n NICE]
{start,stop,start-live,restart,show}
Run server application for TRex traffic generator
positional arguments:
{start,stop,start-live,restart,show}
Specify action command to be applied on server.
(*) start : start the application in as a daemon process.
(*) show : prompt an updated status of daemon process (running/ not running).
(*) stop : exit the daemon process.
(*) restart : stop, then start again the application as daemon process
(*) start-live : start the application in live mode (no daemon process).
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-p PORT, --daemon-port PORT
Select port on which the daemon runs.
Default port is 8090.
-z PORT, --zmq-port PORT
default TRex ZMQ publisher port to listen to (if not specified in config file).
Default port is 4500.
-t PATH, --trex-path PATH
Specify the compiled TRex directory from which TRex would run.
Default path is: /opt/trex/v2.73/trex-core/scripts.
-f PATH, --files-path PATH
Specify a path to directory on which pushed files will be saved at.
Default path is: /tmp/trex_files.
--trex-host HOST Specify a hostname to be registered as the TRex server.
Default is to bind all IPs using '0.0.0.0'.
-n NICE, --nice NICE Determine the priority TRex process [-20, 19] (lower = higher priority)
Default is -19.
[asilver@trex scripts]$