Skip to content
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

Custom script / command for nodes #3113

Open
g1augusto opened this issue Dec 18, 2020 · 2 comments
Open

Custom script / command for nodes #3113

g1augusto opened this issue Dec 18, 2020 · 2 comments

Comments

@g1augusto
Copy link

Hi Everyone,

This is more of a usability feature but I guess not too hard to implement:

I would like to have an option to run a custom link along with the normal console for a node, one use case can be to open a web GUI for a node that has a webserver or in the end any type of link.

Another nice feature would be to run scripts on the guest operating system but this would be maybe a little too much and carry the burden of portability.

Thanks all

@ghost
Copy link

ghost commented Dec 18, 2020

I'm not 100% sure I understand you correctly: You want to have a way to open a node specific website/link in your local web browser. Is that correct?

Currently there is only a tedious way to do that. You can create "custom console" commands, that can start any program on your GUI system with the parameters you want. That doesn't need to be a application creating a console, It can start a web browser, for example, or anything else, including scripts.

I wrote a blog article about integration of program/scripts into GNS3, maybe that will give you some ideas: https://www.b-ehlers.de/blog/posts/2018-01-12-gns3-integrate-programs/.

In that article I presented a tools system, that would be quite flexible, I proposed that in issue #708 (comment).

@g1augusto g1augusto changed the title Short description of the feature request Custom script / command for nodes Dec 19, 2020
@g1augusto
Copy link
Author

I'm not 100% sure I understand you correctly: You want to have a way to open a node specific website/link in your local web browser. Is that correct?

Currently there is only a tedious way to do that. You can create "custom console" commands, that can start any program on your GUI system with the parameters you want. That doesn't need to be a application creating a console, It can start a web browser, for example, or anything else, including scripts.

I wrote a blog article about integration of program/scripts into GNS3, maybe that will give you some ideas: https://www.b-ehlers.de/blog/posts/2018-01-12-gns3-integrate-programs/.

In that article I presented a tools system, that would be quite flexible, I proposed that in issue #708 (comment).

Yes, your solution is interesting and you understood correctly my request, thanks.

possibly a simple GUI extension would be enough, honestly I thought about this for two main reasons:

  1. opening Web interfaces on nodes without bookmarking each lab (and without killing the console option by overwriting it)
  2. execute actions by just a double click (I would see this option too along with right click + option)

#2 would lead to an idea of playbooks in GNS3 but possibly is something that can be done already via other methods even if I think it would make GNS3 only better

@grossmj grossmj modified the milestones: 2.2.18, 2.2.19 Jan 10, 2021
@grossmj grossmj modified the milestones: 2.2.19, TBD Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants