Boot and Power Actions Via API

Dear Community.

I am trying to get the provisioning and other things working via the API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the same
seem to be failing

curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d
'{"power_action": "status","host": "{}"}'
https://myforemanurl/api/hosts/:34/boot
<!DOCTYPE html>
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center;
font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>

<body>
<!-- This file lives in public/404.html -->
<div class="dialog">
<h1>The page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved.</p>
</div>
</body>
</html>
[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type:
application/json" -X PUT -d '{"power_action": "status","host": "{}"}'
https://myforemanurl/api/hosts/:34/power
<!DOCTYPE html>
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center;
font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>

<body>
<!-- This file lives in public/404.html -->
<div class="dialog">
<h1>The page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved.</p>
</div>
</body>
</html>
[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type:
application/json" -X PUT -d '{"power_action": "status","host": "{}"}'
https://myforemanurl/api/hosts/newmac/power
<!DOCTYPE html>
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center;
font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>

<body>
<!-- This file lives in public/404.html -->
<div class="dialog">
<h1>The page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved.</p>
</div>
</body>
</html>

Please help .

Rakesh K.

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes an :34
which doesn't look to me like a Foreman host id.
Another guess, try sending another header -H "Accept:version=2", or using
https://myforemanurl/api/v2/hosts/:34/boot
<https://myforemanurl/api/hosts/:34/boot>

Let us know if that was your problem, godspeed!

··· On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal wrote:

Dear Community.

I am trying to get the provisioning and other things working via the API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the same
seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

The host id is 34
also I hv tried the v2 link but in vain.

Seems some other problem…

··· On Fri, Nov 28, 2014 at 12:27 PM, Daniel Lobato wrote:

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes an :34
which doesn’t look to me like a Foreman host id.
Another guess, try sending another header -H “Accept:version=2”, or using
https://myforemanurl/api/v2/hosts/:34/boot
https://myforemanurl/api/hosts/:34/boot

Let us know if that was your problem, godspeed!

On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal rkathpal@gmail.com > wrote:

Dear Community.

I am trying to get the provisioning and other things working via the API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the same
seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X PUT
-d '{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.

I've just tried:

curl -k -u admin:admin -H "Content-Type: application/json" -X PUT -d
'{"power_action": "status"}' http://foreman.url/api/v2/hosts/19048/power

with success.

Keep in mind you're trying to change the boot device with "power_action",
that's wrong, it should be { "device" : "pxe" }. However that doesn't
explain the 404, what version of Foreman are you trying to run this on?

··· On Fri, Nov 28, 2014 at 8:33 AM, Rakesh Kathpal wrote:

The host id is 34
also I hv tried the v2 link but in vain.

Seems some other problem…

On Fri, Nov 28, 2014 at 12:27 PM, Daniel Lobato elobatocs@gmail.com > wrote:

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes an
:34 which doesn’t look to me like a Foreman host id.
Another guess, try sending another header -H “Accept:version=2”, or using
https://myforemanurl/api/v2/hosts/:34/boot
https://myforemanurl/api/hosts/:34/boot

Let us know if that was your problem, godspeed!

On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal rkathpal@gmail.com >> wrote:

Dear Community.

I am trying to get the provisioning and other things working via the API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the same
seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X PUT
-d '{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

The recent error I am getting is as below

curl -k -u admin:changeme -H "Content-Type: application/json" -X PUT -d
'{"power_action": "status"}' http://foreman.url/api/v2/hosts/1/power
{
"error": {"message":"ERF42-9958 [Foreman::Exception]: Unknown power
management support - can't continue"}
}

I am getting a feeling that I am missing something very fundamental

  • Do I need to have BMC enabled under foreman-proxy?
  • Do I need to have ipmitool/freeipmi installed on foreman ?
  • Does my client server need to have an idrac on ilo or something installed
    ?

Well Daniel… Thanks a lot for your help in advance.

Regards,

Rakesh K.

··· On Fri, Nov 28, 2014 at 2:18 PM, Daniel Lobato wrote:

I’ve just tried:

curl -k -u admin:admin -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”}’ http://foreman.url/api/v2/hosts/19048/power

with success.

Keep in mind you’re trying to change the boot device with “power_action”,
that’s wrong, it should be { “device” : “pxe” }. However that doesn’t
explain the 404, what version of Foreman are you trying to run this on?

On Fri, Nov 28, 2014 at 8:33 AM, Rakesh Kathpal rkathpal@gmail.com > wrote:

The host id is 34
also I hv tried the v2 link but in vain.

Seems some other problem…

On Fri, Nov 28, 2014 at 12:27 PM, Daniel Lobato elobatocs@gmail.com >> wrote:

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes an
:34 which doesn’t look to me like a Foreman host id.
Another guess, try sending another header -H “Accept:version=2”, or
using https://myforemanurl/api/v2/hosts/:34/boot
https://myforemanurl/api/hosts/:34/boot

Let us know if that was your problem, godspeed!

On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal rkathpal@gmail.com >>> wrote:

Dear Community.

I am trying to get the provisioning and other things working via the API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the
same seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X PUT
-d '{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.

Thanks Rakesh for the log, I'll try to help. Keep in mind power operations
for virtual hosts should work without any configuration, the following
responses apply only to physical hosts:

> The recent error I am getting is as below
>
> curl -k -u admin:changeme -H "Content-Type: application/json" -X PUT -d
> '{"power_action": "status"}' http://foreman.url/api/v2/hosts/1/power
> {
> "error": {"message":"ERF42-9958 [Foreman::Exception]: Unknown power
> management support - can't continue"}
> }
>
>
> I am getting a feeling that I am missing something very fundamental
>
> - Do I need to have BMC enabled under foreman-proxy?
>

Yes, and foreman-proxy needs to be able to reach the Hosts you're trying to
perform power operations on. So basically do not put the foreman-proxy on
an isolated network otherwise BMC won't work.

> - Do I need to have ipmitool/freeipmi installed on foreman ?
>

Not on Foreman, on the foreman-proxy. If you have both Foreman and
Foreman-proxy in the same host, then yes you need one of these tools.

  • Does my client server need to have an idrac on ilo or something installed
    > ?
    >

Your client server needs an IPMI compatible network card, and you need to
add the details of that interface + username/password in Foreman so that
power operations can be performed though it.

··· On Fri, Nov 28, 2014 at 2:37 PM, Rakesh Kathpal wrote:

Well Daniel… Thanks a lot for your help in advance.

Regards,

Rakesh K.

On Fri, Nov 28, 2014 at 2:18 PM, Daniel Lobato elobatocs@gmail.com > wrote:

I’ve just tried:

curl -k -u admin:admin -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”}’ http://foreman.url/api/v2/hosts/19048/power

with success.

Keep in mind you’re trying to change the boot device with “power_action”,
that’s wrong, it should be { “device” : “pxe” }. However that doesn’t
explain the 404, what version of Foreman are you trying to run this on?

On Fri, Nov 28, 2014 at 8:33 AM, Rakesh Kathpal rkathpal@gmail.com >> wrote:

The host id is 34
also I hv tried the v2 link but in vain.

Seems some other problem…

On Fri, Nov 28, 2014 at 12:27 PM, Daniel Lobato elobatocs@gmail.com >>> wrote:

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes an
:34 which doesn’t look to me like a Foreman host id.
Another guess, try sending another header -H “Accept:version=2”, or
using https://myforemanurl/api/v2/hosts/:34/boot
https://myforemanurl/api/hosts/:34/boot

Let us know if that was your problem, godspeed!

On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal rkathpal@gmail.com >>>> wrote:

Dear Community.

I am trying to get the provisioning and other things working via the
API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the
same seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X
PUT -d '{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

Daniel… Thanks a ton for your help.

just one more thing… where in foreman can I add the username/password for
ipmi

··· On Mon, Dec 1, 2014 at 1:18 PM, Daniel Lobato wrote:

Thanks Rakesh for the log, I’ll try to help. Keep in mind power operations
for virtual hosts should work without any configuration, the following
responses apply only to physical hosts:

On Fri, Nov 28, 2014 at 2:37 PM, Rakesh Kathpal rkathpal@gmail.com > wrote:

The recent error I am getting is as below

curl -k -u admin:changeme -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”}’ http://foreman.url/api/v2/hosts/1/power
{
“error”: {“message”:“ERF42-9958 [Foreman::Exception]: Unknown power
management support - can’t continue”}
}

I am getting a feeling that I am missing something very fundamental

  • Do I need to have BMC enabled under foreman-proxy?

Yes, and foreman-proxy needs to be able to reach the Hosts you’re trying
to perform power operations on. So basically do not put the foreman-proxy
on an isolated network otherwise BMC won’t work.

  • Do I need to have ipmitool/freeipmi installed on foreman ?

Not on Foreman, on the foreman-proxy. If you have both Foreman and
Foreman-proxy in the same host, then yes you need one of these tools.

  • Does my client server need to have an idrac on ilo or something

installed ?

Your client server needs an IPMI compatible network card, and you need to
add the details of that interface + username/password in Foreman so that
power operations can be performed though it.

Well Daniel… Thanks a lot for your help in advance.

Regards,

Rakesh K.

On Fri, Nov 28, 2014 at 2:18 PM, Daniel Lobato elobatocs@gmail.com >> wrote:

I’ve just tried:

curl -k -u admin:admin -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”}’ http://foreman.url/api/v2/hosts/19048/power

with success.

Keep in mind you’re trying to change the boot device with
"power_action", that’s wrong, it should be { “device” : “pxe” }. However
that doesn’t explain the 404, what version of Foreman are you trying to run
this on?

On Fri, Nov 28, 2014 at 8:33 AM, Rakesh Kathpal rkathpal@gmail.com >>> wrote:

The host id is 34
also I hv tried the v2 link but in vain.

Seems some other problem…

On Fri, Nov 28, 2014 at 12:27 PM, Daniel Lobato elobatocs@gmail.com >>>> wrote:

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes an
:34 which doesn’t look to me like a Foreman host id.
Another guess, try sending another header -H “Accept:version=2”, or
using https://myforemanurl/api/v2/hosts/:34/boot
https://myforemanurl/api/hosts/:34/boot

Let us know if that was your problem, godspeed!

On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal rkathpal@gmail.com >>>>> wrote:

Dear Community.

I am trying to get the provisioning and other things working via the
API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the
same seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X
PUT -d '{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.

You can edit this on the Host edit page, tab Network, section Interfaces,
add a new interface of type BMC, provider IPMI and fill in the details :slight_smile:

··· On Mon, Dec 1, 2014 at 12:33 PM, Rakesh Kathpal wrote:

Daniel… Thanks a ton for your help.

just one more thing… where in foreman can I add the username/password for
ipmi

On Mon, Dec 1, 2014 at 1:18 PM, Daniel Lobato elobatocs@gmail.com wrote:

Thanks Rakesh for the log, I’ll try to help. Keep in mind power
operations for virtual hosts should work without any configuration, the
following responses apply only to physical hosts:

On Fri, Nov 28, 2014 at 2:37 PM, Rakesh Kathpal rkathpal@gmail.com >> wrote:

The recent error I am getting is as below

curl -k -u admin:changeme -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”}’ http://foreman.url/api/v2/hosts/1/power
{
“error”: {“message”:“ERF42-9958 [Foreman::Exception]: Unknown power
management support - can’t continue”}
}

I am getting a feeling that I am missing something very fundamental

  • Do I need to have BMC enabled under foreman-proxy?

Yes, and foreman-proxy needs to be able to reach the Hosts you’re trying
to perform power operations on. So basically do not put the foreman-proxy
on an isolated network otherwise BMC won’t work.

  • Do I need to have ipmitool/freeipmi installed on foreman ?

Not on Foreman, on the foreman-proxy. If you have both Foreman and
Foreman-proxy in the same host, then yes you need one of these tools.

  • Does my client server need to have an idrac on ilo or something

installed ?

Your client server needs an IPMI compatible network card, and you need to
add the details of that interface + username/password in Foreman so that
power operations can be performed though it.

Well Daniel… Thanks a lot for your help in advance.

Regards,

Rakesh K.

On Fri, Nov 28, 2014 at 2:18 PM, Daniel Lobato elobatocs@gmail.com >>> wrote:

I’ve just tried:

curl -k -u admin:admin -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”}'
http://foreman.url/api/v2/hosts/19048/power

with success.

Keep in mind you’re trying to change the boot device with
"power_action", that’s wrong, it should be { “device” : “pxe” }. However
that doesn’t explain the 404, what version of Foreman are you trying to run
this on?

On Fri, Nov 28, 2014 at 8:33 AM, Rakesh Kathpal rkathpal@gmail.com >>>> wrote:

The host id is 34
also I hv tried the v2 link but in vain.

Seems some other problem…

On Fri, Nov 28, 2014 at 12:27 PM, Daniel Lobato elobatocs@gmail.com >>>>> wrote:

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes
an :34 which doesn’t look to me like a Foreman host id.
Another guess, try sending another header -H “Accept:version=2”, or
using https://myforemanurl/api/v2/hosts/:34/boot
https://myforemanurl/api/hosts/:34/boot

Let us know if that was your problem, godspeed!

On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal rkathpal@gmail.com >>>>>> wrote:

Dear Community.

I am trying to get the provisioning and other things working via the
API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the
same seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X
PUT -d '{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG:
http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30

Will definitely give it a try …

Thanks.

··· On Tue, Dec 2, 2014 at 4:27 PM, Daniel Lobato wrote:

You can edit this on the Host edit page, tab Network, section Interfaces,
add a new interface of type BMC, provider IPMI and fill in the details :slight_smile:

On Mon, Dec 1, 2014 at 12:33 PM, Rakesh Kathpal rkathpal@gmail.com > wrote:

Daniel… Thanks a ton for your help.

just one more thing… where in foreman can I add the username/password
for ipmi

On Mon, Dec 1, 2014 at 1:18 PM, Daniel Lobato elobatocs@gmail.com >> wrote:

Thanks Rakesh for the log, I’ll try to help. Keep in mind power
operations for virtual hosts should work without any configuration, the
following responses apply only to physical hosts:

On Fri, Nov 28, 2014 at 2:37 PM, Rakesh Kathpal rkathpal@gmail.com >>> wrote:

The recent error I am getting is as below

curl -k -u admin:changeme -H “Content-Type: application/json” -X PUT -d
’{“power_action”: “status”}’ http://foreman.url/api/v2/hosts/1/power
{
“error”: {“message”:“ERF42-9958 [Foreman::Exception]: Unknown power
management support - can’t continue”}
}

I am getting a feeling that I am missing something very fundamental

  • Do I need to have BMC enabled under foreman-proxy?

Yes, and foreman-proxy needs to be able to reach the Hosts you’re trying
to perform power operations on. So basically do not put the foreman-proxy
on an isolated network otherwise BMC won’t work.

  • Do I need to have ipmitool/freeipmi installed on foreman ?

Not on Foreman, on the foreman-proxy. If you have both Foreman and
Foreman-proxy in the same host, then yes you need one of these tools.

  • Does my client server need to have an idrac on ilo or something

installed ?

Your client server needs an IPMI compatible network card, and you need
to add the details of that interface + username/password in Foreman so that
power operations can be performed though it.

Well Daniel… Thanks a lot for your help in advance.

Regards,

Rakesh K.

On Fri, Nov 28, 2014 at 2:18 PM, Daniel Lobato elobatocs@gmail.com >>>> wrote:

I’ve just tried:

curl -k -u admin:admin -H “Content-Type: application/json” -X PUT
-d '{“power_action”: “status”}'
http://foreman.url/api/v2/hosts/19048/power

with success.

Keep in mind you’re trying to change the boot device with
"power_action", that’s wrong, it should be { “device” : “pxe” }. However
that doesn’t explain the 404, what version of Foreman are you trying to run
this on?

On Fri, Nov 28, 2014 at 8:33 AM, Rakesh Kathpal rkathpal@gmail.com >>>>> wrote:

The host id is 34
also I hv tried the v2 link but in vain.

Seems some other problem…

On Fri, Nov 28, 2014 at 12:27 PM, Daniel Lobato elobatocs@gmail.com >>>>>> wrote:

Just a guess, but https://myforemanurl/api/hosts/:34/boot includes
an :34 which doesn’t look to me like a Foreman host id.
Another guess, try sending another header -H “Accept:version=2”, or
using https://myforemanurl/api/v2/hosts/:34/boot
https://myforemanurl/api/hosts/:34/boot

Let us know if that was your problem, godspeed!

On Thu, Nov 27, 2014 at 12:40 PM, Rakesh Kathpal <rkathpal@gmail.com >>>>>>> > wrote:

Dear Community.

I am trying to get the provisioning and other things working via
the API

I am able to retrieve the hosts and discovered hosts

What I am trying to do now is

  • Get my hosts under discovered hosts
  • Set the boot deivice to PXE
  • Provision Hosts
  • Do a power operation (reboot) on the host

So far I have tried the calls for boot and power operations but the
same seem to be failing

curl -k -u admin:admin@123 -H “Content-Type: application/json” -X
PUT -d '{“power_action”: “status”,“host”: “{}”}'
https://myforemanurl/api/hosts/:34/boot

The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/:34/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

[root@dev ~]# curl -k -u admin:admin@123 -H "Content-Type: application/json" -X PUT -d '{"power_action": "status","host": "{}"}' https://myforemanurl/api/hosts/newmac/power The page you were looking for doesn't exist (404) body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; }

The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.

Please help .

Rakesh K.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG:
http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.


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/d/optout.


Daniel Lobato

@elobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30


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/d/optout.