Foreman feature suggestion

Hi,

I just noticed there is no Wake On Lan support in foreman : this is just to say it would be cool to have a "wakup node" button, that would send a magic wakup packet to the node's mac address :]

Cheers

> Hi,****
>
> ** **
>
> I just noticed there is no Wake On Lan support in foreman : this is just
> to say it would be cool to have a “wakup node” button, that would send a
> magic wakup packet to the node’s mac address :]
>

Yep, Agree, and its pretty trivial to implement… please add a feature
request to the proxy [1]
note: you'll need to register to the site first.

thanks!
Ohad

[1] http://wiki.theforeman.org/projects/smart-proxy/issues/new

··· On Mon, Jul 1, 2013 at 4:29 PM, SCHAER Frederic wrote:


Cheers****


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

+1 great feature !

··· 2013/7/1 Ohad Levy

On Mon, Jul 1, 2013 at 4:29 PM, SCHAER Frederic frederic.schaer@cea.frwrote:

Hi,****


I just noticed there is no Wake On Lan support in foreman : this is just
to say it would be cool to have a “wakup node” button, that would send a
magic wakup packet to the node’s mac address :]

Yep, Agree, and its pretty trivial to implement… please add a feature
request to the proxy [1]
note: you’ll need to register to the site first.

thanks!
Ohad

[1] http://wiki.theforeman.org/projects/smart-proxy/issues/new



Cheers****


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.

Hi,

I just noticed there is no Wake On Lan support in foreman : this is just to say it would be cool to have a "wakup node" button, that would send a magic wakup packet to the node's mac address :]

Yep, Agree, and its pretty trivial to implement… please add a feature request to the proxy [1]
note: you'll need to register to the site first.

thanks!
Ohad

[1] http://wiki.theforeman.org/projects/smart-proxy/issues/new

Cheers

[SCHAER Frederic] Done. But I did not set a category, as I did not see that fit in any existing one.

Regards

··· De : foreman-users@googlegroups.com [mailto:foreman-users@googlegroups.com] De la part de Ohad Levy Envoyé : lundi 1 juillet 2013 15:34 À : foreman-users@googlegroups.com Objet : Re: [foreman-users] foreman feature suggestion

On Mon, Jul 1, 2013 at 4:29 PM, SCHAER Frederic <frederic.schaer@cea.frmailto:frederic.schaer@cea.fr> wrote:

Hi,
I'm resurrecting an old topic, as WOL is a topic of recent interest here
on one of our sustainability projects. I added my +1 to the feature
request, but also am wondering if there's a way I could kickstart a project
for this feature? I'm really not familiar with how to develop within the
Foreman / Smart-Proxy framework, but would like to take a stab at this.
Could someone give me a shove in the right direction?

Thanks! :slight_smile:

··· On Thursday, July 4, 2013 at 3:42:04 AM UTC-4, SCHAER Frederic wrote: > > > > > > *De :* forema...@googlegroups.com [mailto: > forema...@googlegroups.com ] *De la part de* Ohad Levy > *Envoyé :* lundi 1 juillet 2013 15:34 > *À :* forema...@googlegroups.com > *Objet :* Re: [foreman-users] foreman feature suggestion > > > > > > On Mon, Jul 1, 2013 at 4:29 PM, SCHAER Frederic > wrote: > > Hi, > > > > I just noticed there is no Wake On Lan support in foreman : this is just > to say it would be cool to have a “wakup node” button, that would send a > magic wakup packet to the node’s mac address :] > > > > Yep, Agree, and its pretty trivial to implement.... please add a feature > request to the proxy [1] > > note: you'll need to register to the site first. > > > > thanks! > > Ohad > > > > [1] http://wiki.theforeman.org/projects/smart-proxy/issues/new > > > > Cheers > > > > *[SCHAER Frederic] Done. But I did not set a category, as I did not see > that fit in any existing one.* > > > > *Regards* >

Certainly can :slight_smile:

I'd start by looking at the BMC support in Foreman and the Proxy - it
feels like WOL is a natural extension of this. Currently there's code
in the Foreman UI that calls out to the proxy for that host's BMC
network (BMC is a proxy feature, so it's a first-class citizen rather
than going via a different proxy type). The proxy will then act on
that call, via the freeipmi or openipmi implementations (both are
supported).

I guess you'll just want to add a single route to the proxy along the
lines of 'GET /bmc/:host/chassis/power/wol' - you could add that to
the case statement at [1]. Once you can call that from the cmdline,
you'll just need to show an appropriate button in the UI to call it -
have a look at [2] for that.

Good luck, do come back with questions :slight_smile:
Greg

[1] https://github.com/theforeman/smart-proxy/blob/develop/modules/bmc/bmc_api.rb#L36
[2] https://github.com/theforeman/foreman/blob/develop/app/helpers/bmc_helper.rb#L28

··· On 16 March 2015 at 20:39, Sean Alderman wrote: > Hi, > I'm resurrecting an old topic, as WOL is a topic of recent interest here > on one of our sustainability projects. I added my +1 to the feature > request, but also am wondering if there's a way I could kickstart a project > for this feature? I'm really not familiar with how to develop within the > Foreman / Smart-Proxy framework, but would like to take a stab at this. > Could someone give me a shove in the right direction?

Hi all,

Just curious whether anyone involved in this thread started work on this.
I'm thinking about trying to add this functionality and would rather not
duplicate efforts. I don't know the first thing about Foreman Proxy plugin
development, though…

Thanks!

Zack

··· On Tuesday, March 17, 2015 at 5:21:10 PM UTC-4, Greg Sutcliffe wrote: > > On 16 March 2015 at 20:39, Sean Alderman > wrote: > > Hi, > > I'm resurrecting an old topic, as WOL is a topic of recent interest > here > > on one of our sustainability projects. I added my +1 to the feature > > request, but also am wondering if there's a way I could kickstart a > project > > for this feature? I'm really not familiar with how to develop within > the > > Foreman / Smart-Proxy framework, but would like to take a stab at this. > > Could someone give me a shove in the right direction? > > Certainly can :) > > I'd start by looking at the BMC support in Foreman and the Proxy - it > feels like WOL is a natural extension of this. Currently there's code > in the Foreman UI that calls out to the proxy for that host's BMC > network (BMC is a proxy feature, so it's a first-class citizen rather > than going via a different proxy type). The proxy will then act on > that call, via the freeipmi or openipmi implementations (both are > supported). > > I guess you'll just want to add a single route to the proxy along the > lines of 'GET /bmc/:host/chassis/power/wol' - you could add that to > the case statement at [1]. Once you can call that from the cmdline, > you'll just need to show an appropriate button in the UI to call it - > have a look at [2] for that. > > Good luck, do come back with questions :) > Greg > > [1] > https://github.com/theforeman/smart-proxy/blob/develop/modules/bmc/bmc_api.rb#L36 > [2] > https://github.com/theforeman/foreman/blob/develop/app/helpers/bmc_helper.rb#L28