You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Avinash Dongre <ad...@apache.org> on 2020/08/31 04:15:06 UTC

How to shutdown cluster in non-interactive mode using gfsh

When I try using gfsh I get following

gfsh>shutdown --include-locators=yes --time-out=5
As a lot of data in memory will be lost, including possibly events in
queues, do you really want to shutdown the entire distributed system?
(Y/n): n

And command line version hangs, probably waiting for input

bin/gfsh -e "connect" -e "shutdown --include-locators=yes"

Any clue how I can bypass this

Thanks
Avinash

Re: How to shutdown cluster in non-interactive mode using gfsh

Posted by "Ju@N" <ju...@gmail.com>.
Hello Avinash,

What Geode version are you referring to?.
I've just tried a simple scenario with Geode 1.12.0 and the command works
just fine, even when using non-interactive mode.
You can see the output from in the image below, when I try to shutdown the
cluster within the interactive mode gfsh asks for confirmation but, right
afterwards when I execute the command in non-interactive mode ("-e"), no
confirmation is displayed and the cluster correctly shuts down.
[image: Screenshot 2020-08-31 at 09.24.22.jpg]

Hope this helps.
Best regards.


On Mon, 31 Aug 2020 at 05:15, Avinash Dongre <ad...@apache.org> wrote:

> When I try using gfsh I get following
>
> gfsh>shutdown --include-locators=yes --time-out=5
> As a lot of data in memory will be lost, including possibly events in
> queues, do you really want to shutdown the entire distributed system?
> (Y/n): n
>
> And command line version hangs, probably waiting for input
>
> bin/gfsh -e "connect" -e "shutdown --include-locators=yes"
>
> Any clue how I can bypass this
>
> Thanks
> Avinash
>


-- 
Ju@N