summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-02-27 08:25:34 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-02-27 08:25:34 +0100
commitf33c773613dfa22da72c053eb85071563d0c07f2 (patch)
tree450c13209a369f5dd32201923d0bdb4f219b93b5
parentb9401d88ec4d424974a0e76a5a098a394af2ed88 (diff)
downloadamtterm-f33c773613dfa22da72c053eb85071563d0c07f2.tar.gz
move wsman stuff
-rw-r--r--wsman/README7
-rwxr-xr-xwsman/amttool-wsman33
-rw-r--r--wsman/wsman-intel.txt49
3 files changed, 89 insertions, 0 deletions
diff --git a/wsman/README b/wsman/README
new file mode 100644
index 0000000..5aed7ee
--- /dev/null
+++ b/wsman/README
@@ -0,0 +1,7 @@
+Newer AMT versions stopped supporting the old, soap-based scheme and use
+wsman-based stuff instead. Here is WIP stuff for it.
+
+Trying to use AMT with my intel NUC doesn't play out very well though.
+The ME displays some on-screen indication on the display that SoL access
+is active, appearently in some way which is incompatible with the i915
+kms driver. At least the nuc hangs when the driver loads ...
diff --git a/wsman/amttool-wsman b/wsman/amttool-wsman
new file mode 100755
index 0000000..1474a34
--- /dev/null
+++ b/wsman/amttool-wsman
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# args
+action="$1"; shift;
+host="$1"; shift;
+
+# config
+redir_scheme="http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RedirectionService"
+wsman_opts="-h ${host} -P 16992 -u admin -p ${AMT_PASSWORD}"
+#wsman_opts="${wsman_opts} -d 9" # debugging
+wsman_opts="${wsman_opts} --noverifyhost"
+
+##############################################################################
+# go!
+
+case "$action" in
+redir-listen)
+ wsman put ${redir_scheme} ${wsman_opts} -k ListenerEnabled=true
+ ;;
+rfb-password)
+ wsman put ${redir_scheme} ${wsman_opts} -k RFBPassword="${AMT_PASSWORD}"
+ ;;
+-h | --help | help)
+ echo "usage: $0 action host"
+ echo "actions:"
+ echo " redir-listen enable redirection service listener"
+ echo " rfb-password set rfb password to \$AMT_PASSWORD"
+ ;;
+*)
+ echo "unknown action: $action (try help)"
+ exit 1
+ ;;
+esac
diff --git a/wsman/wsman-intel.txt b/wsman/wsman-intel.txt
new file mode 100644
index 0000000..04abd18
--- /dev/null
+++ b/wsman/wsman-intel.txt
@@ -0,0 +1,49 @@
+wiresharked, intel bdw nuc, amt 9.0
+
+
+amt schemas
+-----------
+
+http://intel.com/wbem/wscim/1/amt-schema/1/AMT_AuthorizationService
+http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RedirectionService
+http://intel.com/wbem/wscim/1/ips-schema/1/IPS_KVMRedirectionSettingData
+http://intel.com/wbem/wscim/1/amt-schema/1/AMT_BootCapabilities
+http://intel.com/wbem/wscim/1/amt-schema/1/AMT_BootSettingData
+http://intel.com/wbem/wscim/1/amt-schema/1/AMT_TLSSettingData
+
+
+cim schemas seen
+----------------
+
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_KVMRedirectionSAP
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementCapabilities
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_PowerManagementService
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_AssociatedPowerManagementService
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_EthernetPort
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootService
+
+
+before kvm connect
+------------------
+
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_KVMRedirectionSAP/RequestStateChange
+ -> RequestStateChange_INPUT RequestState 2
+ <- RequestStateChange_OUTPUT ReturnValue 0
+
+http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RedirectionService/RequestStateChange
+ -> RequestStateChange_INPUT RequestState 32771
+ <- RequestStateChange_OUTPUT ReturnValue 0
+
+
+after kvm disconnect
+--------------------
+
+http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_KVMRedirectionSAP/RequestStateChange
+ -> RequestStateChange_INPUT RequestState 3
+ <- RequestStateChange_OUTPUT ReturnValue 0
+
+http://intel.com/wbem/wscim/1/amt-schema/1/AMT_RedirectionService/RequestStateChange
+ -> RequestStateChange_INPUT RequestState 32771
+ <- RequestStateChange_OUTPUT ReturnValue 0