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

command to switch servers #151

Open
AnthonyFuller opened this issue Mar 18, 2018 · 14 comments
Open

command to switch servers #151

AnthonyFuller opened this issue Mar 18, 2018 · 14 comments
Labels
Enhancement New feature or request Help Wanted Extra attention is needed

Comments

@AnthonyFuller
Copy link

I want to type stuff into server1 console but server2 console is the active one I need a command like

SWITCH [SERVER NAME/FOLDER]
switches the console

@AnthonyFuller
Copy link
Author

BUMP

@ButterscotchV
Copy link
Collaborator

ButterscotchV commented May 22, 2018

I doubt this is very possible, I assume you are using SSH, so I'd suggest making multiple instances (If you're using Linux, I'd suggest something like screen) and running MultiAdmin on each one instead. If it is possible, then it's probably not easy at all.

@PatPeter
Copy link
Contributor

YES!!! Instead of allowing us to switch what server's output we're viewing, all of the output should have the unique ID of the server prefixed along with the date to each log entry.

In addition, each command should require the server's unique ID specified as a parameter, or instead of switching the output of each server, SWITCH/SELECT will select which server commands are sent to.

I'll look into this and make a pull request if I can implement it.

@PatPeter
Copy link
Contributor

PatPeter commented Jun 4, 2018

@Grover-c13 I'm thinking of using my MultiAdmin fork to try implementing this sometime this week. The way it will work is the admin types:

select <folder name>

And each command fired after that will be fired into that server instance. In addition, the logs will look as follows:

[01:48:00] [<folder name>] Accepted authentication token of...

So that users can differentiate which server each line of output is coming from.

I don't want to name it switch since it isn't switching the console, just changing which server receives the input.

@Grover-c13
Copy link
Collaborator

Sounds good, I'm sure a lot of people would like that feature.

@PatPeter
Copy link
Contributor

I hate how I've been so swamped with fixing my plugins that I haven't had time to work on this, but trust me I think of this every time I have to input a command in one of my five servers at random hoping it goes to the right one.

@PatPeter
Copy link
Contributor

I'm lowkey angry that I haven't had the time to fully work on this while trying to resolve my own server's issues.

@ButterscotchV ButterscotchV added the Enhancement New feature or request label Dec 6, 2018
@AnthonyFuller
Copy link
Author

Any progress?

@PatPeter
Copy link
Contributor

Whenever I get back to #168 to fix this new annoying bug, I'll definitely work on fixing #151 as well. Right now, I'm so swamped with work for my 7-8 servers that I don't know when I'll be getting to MultiAdmin development.

@PatPeter
Copy link
Contributor

PatPeter commented Jan 7, 2019

If my Patreon plugin wasn't broken all this weekend and during the New Year, I would have been working on this issue instead. Kept trying to tell one of my servers to restart and it was restarting the first instance instead of the second.

@ButterscotchV
Copy link
Collaborator

ButterscotchV commented Feb 2, 2019

I'm planning this for my pull request (#200), if you have any good ideas on how to do this, I'd appreciate the help.

@ButterscotchV ButterscotchV added the Help Wanted Extra attention is needed label Feb 2, 2019
@ButterscotchV
Copy link
Collaborator

Sadly I didn't end up making this yet, my new plan is to simply output all the server's messages to console (potentially have the command to filter to just a specific server and back?), but have the Server ID displayed with the message and log to their own files like how it would work normally.

@PatPeter
Copy link
Contributor

Yeah I've been doing research on and off on how we would do it. The problem is any libraries that I would use are either for Linux on Linux or Windows on Windows. I was thinking of MultiAdmin starting a Linux screen for each server, or splitting the output into two divided columns. Posting the output from all servers is a step in the right direction though.

I can't think of how to do this in Mono without storing all the output to a buffer and risking a memory leak. We might have to do a "select" command to select which server to send commands to instead of a "switch" command to change the view along with the destination of the commands.

@Grover-c13 I'm thinking of using my MultiAdmin fork to try implementing this sometime this week. The way it will work is the admin types:

select <folder name>

And each command fired after that will be fired into that server instance. In addition, the logs will look as follows:

[01:48:00] [<folder name>] Accepted authentication token of...

So that users can differentiate which server each line of output is coming from.

I don't want to name it switch since it isn't switching the console, just changing which server receives the input.

@storm37000
Copy link

im doing this with something i made called MegaAdmin even though its sort of hacky, but it works well so thats all that matters really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants