How to execute python script in CORE emulator ? #613
-
I just tried to export and execute the python script in the core emulator but it fails. Suggest, how to run python script on all nodes simultaneously in wired networks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
i think the best way to do anything on all core nodes simultaneously would be to create a custom service. there is some documentation available in this git about how to do that. once you have a custom service, you can either enable it manually or via .xml per node, or you can enable it on all nodes of a particular type. the documentation about node types is also helpful if you want to do that. |
Beta Was this translation helpful? Give feedback.
-
Dear sir
As per your suggestion, how I can make changes in custom services and which
type of customized services should be used to run the script in all nodes?
With Regards
Meenakshi
…On Thu, 30 Sep 2021, 3:57 am PatrickTague, ***@***.***> wrote:
i think the best way to do anything on all core nodes simultaneously would
be to create a custom service. there is some documentation available in
this git about how to do that. once you have a custom service, you can
either enable it manually or via .xml per node, or you can enable it on all
nodes of a particular type. the documentation about node types is also
helpful if you want to do that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#613 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV2RCLEWFYBIEVDFDN6USW3UEOHEBANCNFSM5E53KY6A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
i would recommend reading this: https://coreemu.github.io/core/services.html#new-services you an use the |
Beta Was this translation helpful? Give feedback.
i would recommend reading this: https://coreemu.github.io/core/services.html#new-services
you an use the
UserDefined
service to run a shell script to do whatever you want, or you can create your own custom services (explained with examples on the same page linked above). several of the sample networks in the .imn files packaged with core include examples you can look at. for example, thesample5-mgen.imn
network uses aUserDefined
service to call themgen
traffic generation executable from a bash script.