Sample 2 - RemoteControl

By Stephen Hibbert (Intel) (13 posts) on June 24, 2009 at 2:11 pm

Sample Code!

Before I started "Working with Intel AMT," the first thing I wanted to learn was how to turn a computer on and off. Sounds pretty simple, right? Well, not really.

The RemoteControl sample provided in the SDK wasn't very easy to understand. It took me awhile just to figure out how to run it with the correct command-line arguments! When I did get it running, I noticed that it provided a lot more functionality than I actually needed. I didn't need to set boot options, I just wanted to shut the computer off! Trying to understand 1016 lines of code (I'm not exaggerating) wasn't fun either.

So here's my version of the RemoteControl sample. You'll see a lot of the same concepts discussed in one of my recent blog posts (Get function, GetEndpointReference function, etc). You'll also see how the Invoke function works. The sample provides nowhere near as much functionality as the original, but it's a lot easier to understand. Remember to check for updates reguarly and leave a comment in that box down there.

Click here to download the sample (C#, Visual Studio 2008).

Categories: Manageability

Comments (5)

June 24, 2009 6:35 PM PDT


Trevor Sullivan
Yay for more C# / .NET development blog entries! :)

-Trevor Sullivan
June 24, 2009 6:36 PM PDT

Trevor Sullivan
Total Points:
770
Status Points:
270
Brown Belt
(now that I'm actually logged in)

Yay for more C# / .NET development blog entries! :)

-Trevor Sullivan
July 30, 2009 8:08 AM PDT

Ashish Chauhan
Total Points:
535
Status Points:
35
Brown Belt
While executing following i recieve the error.

RemoteControl.exe -c -user admin -pass MyPass46! http://192.168.2.220:16992/RemoteControlService

Calling function GetRemoteControlCapabilities...
Error: failed while calling GetRemoteControlCapabilities
SOAP failure: error code = 25



Thanks.
July 30, 2009 10:40 AM PDT

Stephen Hibbert (Intel)
Total Points:
1,275
Status Points:
775
Brown Belt
Are you using my sample or the sample included in the SDK?
October 29, 2009 11:51 AM PDT

sayantan_majumdar
Total Points:
580
Status Points:
80
Brown Belt
Hi Stephen,

I do use RemoteControl.exe from AMT SDK to remotely Power On/ Off AMT devices. Looks like that exe has the capability to send ASF commands too. Do you have any knowledge if we can actually send ASF special commands via RemoteControl.exe in AMT SDK.

Thanks
Sayantan

Trackbacks (6)


Leave a comment  

To obtain technical support, please go to Software Support.
Name (required)*

Email (required; will not be displayed on this page)*

Your URL (optional)


Comment*