schnoddelbotz / amtc Goto Github PK
View Code? Open in Web Editor NEWThreaded Intel AMT/vPro mass management tool
License: MIT License
Threaded Intel AMT/vPro mass management tool
License: MIT License
It would be very handy if amtc supported the graceful shutdown feature introduced with AMT v9.
CPU: MIPS 74Kc V4.12
OS: OpenWrt 14.07
libcurl: 7.38.0
amtc --args -I 192.168.1.171 -vvv -p amt_password.txt
> POST /RemoteControlService HTTP/1.1
User-Agent: amtc (libcurl)
Host: 192.168.1.171:16992
Accept: */*
SOAPAction: "http://schemas.intel.com/platform/client/RemoteControl/2004/01#GetSystemPowerState"
Content-Type: text/xml; charset=utf-8
Content-Length: 484
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Digest realm="Digest:10DF0000000000000000000000000000", nonce="+S5HDg4iAACIkRUMJoai5Xyxlc9qWHgc",stale="false",qop="auth"
< Content-Type: text/html
< Server: Intel(R) Active Management Technology 8.0.3
< Content-Length: 689
< Connection: close
<
-INFO 192.168.1.171 AMT:0016 HTTP:401 No error
singleClient( 2004649264=0689b|http401): tr decreased to 0 by http://192.168.1.171:16992/RemoteControlService
INFO 192.168.1.171 OS:noscan AMT:16 HTTP:401 No error
(gdb) i loc
hostid = 0
host = 0x419e54 <hostlist>
curl = 0x44c948
res = CURLE_OK
http_code = 401
headers = 0x439910
chunk = {
memory = 0x45fc70 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" >\n<html><head><link rel=stylesheet href=styles.css>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n<title>Intel®"...,
size = 689
}
amt_result = -1
os_port = 1
enumCtx = '\000' <repeats 8191 times>
enumTxt = '\000' <repeats 8116 times>, "w\301\337x", '\000' <repeats 16 times>, "w\377\360\000\000\000\000\000w\331\004\350w\331M\350\000\000\000\000\000\000\000\000w\301\345\060w\372\200@\000\000\001\aw\370\201+\000\
000\000\375\000\000\000<\000 \000\000w\372\203X" umsg = "w\301\337\310w\376$(w\370\201+", '\000' <repeats 20 times>, "w\377\360\000\000\000\000\000w\301\345\060w\371kD\000\000\000\000w\301\341\000w\301\341\000\000\000\000\000w\301\340\060w\376f\b", '\000' <repeats 1
6 times>, "w\301\340H\000\000\000\fw\337\323\240" umsgp = 0x0
(gdb)
libcurl: 7.22.0
* About to connect() to 192.168.1.171 port 16992 (#0)
* Trying 192.168.1.171... * connected
* Server auth using Digest with user 'admin'
> POST /RemoteControlService HTTP/1.1
User-Agent: amtc (libcurl)
Host: 192.168.1.171:16992
Accept: */*
SOAPAction: "http://schemas.intel.com/platform/client/RemoteControl/2004/01#GetSystemPowerState"
Content-Type: text/xml; charset=utf-8
Content-Length: 0
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Digest realm="Digest:10DF0000000000000000000000000000", nonce="HaVJDg8jAAAbbBnP4dmsu0VfBD+wD5YR",stale="false",qop="auth"
< Content-Type: text/html
< Server: Intel(R) Active Management Technology 8.0.3
< Content-Length: 689
< Connection: close
<
* Closing connection #0
* Issue another request to this URL: 'http://192.168.1.171:16992/RemoteControlService'
* About to connect() to 192.168.1.171 port 16992 (#0)
* Trying 192.168.1.171... * connected
* Server auth using Digest with user 'admin'
> POST /RemoteControlService HTTP/1.1
Authorization: Digest username="admin", realm="Digest:10DF0000000000000000000000000000", nonce="HaVJDg8jAAAbbBnP4dmsu0VfBD+wD5YR", uri="/RemoteControlService", cnonce="MDA3ODY0", nc=00000001, qop="auth", response="fd2aa92a172bfd7fbc7d0204be8ee23c"
User-Agent: amtc (libcurl)
Host: 192.168.1.171:16992
Accept: */*
SOAPAction: "http://schemas.intel.com/platform/client/RemoteControl/2004/01#GetSystemPowerState"
Content-Type: text/xml; charset=utf-8
Content-Length: 484
* upload completely sent off: 484out of 484 bytes
< HTTP/1.1 200 OK
< Date: Tue, 4 Nov 2014 20:01:17 GMT
< Server: Intel(R) Active Management Technology 8.0.3
< Content-Type: text/xml
< Transfer-Encoding: chunked
<
* Connection #0 to host 192.168.1.171 left intact
body (size: 386 b) received: '<?xml version="1.0" encoding="UTF-8"?><a:Envelope xmlns:a="http://schemas.xmlsoap.org/soap/envelope/" xmlns:b="http://schemas.intel.com/platform/client/RemoteControl/2004/01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><a:Body><b:GetSystemPowerStateResponse><b:Status>0</b:Status><b:SystemPowerState>0</b:SystemPowerState></b:GetSystemPowerStateResponse></a:Body></a:Envelope>'
-INFO 192.168.1.171 AMT:0000 HTTP:200 OK S0 (on)
singleClient( -914118912=0386b|http200): tr decreased to 0 by http://192.168.1.171:16992/RemoteControlService
* Closing connection #0
INFO 192.168.1.171 OS:noscan AMT:00 HTTP:200 OK S0 (on)
(gdb) i loc
hostid = 0
host = 0x610d60 <hostlist>
curl = 0x7ffff00008e0
res = CURLE_OK
http_code = 200
headers = 0x7ffff001b8a0
chunk = {
memory = 0x7ffff001cf10 "<?xml version=\"1.0\" encoding=\"UTF-8\"?><a:Envelope xmlns:a=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:b=\"http://schemas.intel.com/platform/client/RemoteControl/2004/01\" xmlns:xsi=\"http://www.w3."...,
size = 386
}
amt_result = -1
os_port = 1
enumCtx = '\000' <repeats 7672 times>"\344, P\336\367\377\177\000\000\000\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\030\000\000\000\000\000\000\000pf\374\367\377\177\000\000\227\201B\250\000\000\000\000\342V\336\367\377\177\000\000\027\000\000\000\000\000\000\000@=\264\364\377\177\000\000\377\377\377\377\000\000\000\000\200\031]\367\377\177\000\000\020=\264\364\377\177\000\000\200,]\367\377\177\000\000\340\206]\367\377\177", '\000' <repeats 19 times>, "j\374\367\377\177\000\000\000\320\374\367\377\177\000\000\237\036\226\367\377\177\000\000\340\370]\367\377\177\000\000\070\000\226\367\377\177\000\000\000\000\000\000\005\000\000\000\304\003\000\000\001", '\000' <repeats 11 times>"\200, \256\377\367\377\177\000\000\200=\264\364\377\177\000\000\000j\374\367\377\177\000\000\227\201B\250\000\000\000\000\250=\264\364\377\177\000\000(\253\377\367\377\177\000\000cZ\336\367\377\177", '\000' <repeats 11 times>, "j\374\367\377\177\000\000\005", '\000' <repeats 15 times>, "\001\000\000\000\000\000\000\000"...
enumTxt = '\000' <repeats 8191 times>
umsg = '\000' <repeats 99 times>
umsgp = 0x0
It appears even on x86_64 the first request results in 401 but then it automagically issues a new request which eventually result in 200, but on MIPS that doesn't happen.
It is nice to have RPMs here in GitHub. But I think it would be better if we can get RPMs from EPEL.
https://fedoraproject.org/wiki/EPEL/FAQ
It has been on the usage screen for long, but I never found time to actually include it: amtc -Ub pxe foobar.example.com
should power up that host, letting it boot off PXE - even if BIOS defaults to HDD. Current work-around here is to manage clients' pxelinux.cfg
files.
As a follow-up, amtc-web's scheduler/GUI should support selecting the boot device.
amtc-web lacks the ability to cleanly delete hosts and rooms.
Even worse, deleting and re-creating a room with same hostnames will currently lead to broken monitoring.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.