-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pktgen won't run in background #279
Comments
The -G or -g host:port options was how I was handling running Pktgen in background without the CLI and waiting for Lua scripts. Look at the README file or use pktgen --help |
Thanks for the reply. I am able to use the -G or -g options to run pktgen in the background but I don't understand what Lua script to send to the pktgen daemon to start the replay of a packet capture using a command file. Any help you can provide? The command that I'm using the execute the pcap playback is: The file
|
You are using standard CLI commands and not Lua. To enable pktgen to be built with Lua you must install Lua from Lua.org or via you package manager for your Linux. To build pktgen with Lua support the command is |
Thanks again for the quick reply. I now have Lua support complied. Can the packet capture file be dynamically updated via Lua? I want to be able to run pktgen in the background and dynamically specify different packet capture files to be replayed and change their rates without having to manually restart pktgen. |
sorry, currently that can not be done. |
Feature request? 🙏 |
I do not know when I will be able to add this feature, so it could be a while, but you are welcome to create a PR and add the feature yourself. |
I need to run pktgen in the background without displaying the CLI. I want to execute pktgen on numerous servers at once from a centralized controller. It doesn't seem to work if I add
> /dev/null 2>&1 &
at the end of thepktgen
command.The text was updated successfully, but these errors were encountered: