Skip to content

Instantly share code, notes, and snippets.

@vanDonselaar
Created January 13, 2016 21:39
Show Gist options
  • Save vanDonselaar/5f1bedcdda474cfa8d85 to your computer and use it in GitHub Desktop.
Save vanDonselaar/5f1bedcdda474cfa8d85 to your computer and use it in GitHub Desktop.
Enable Intel AMT VNC using Linux
# Retrieved from: http://iranzo.github.io/blog/2015/05/01/intel-amt-on-linux-for-remote-control-slash-fencing/
ip=myhost
AMT_PASSWORD="Qwerty12#$"
# Must be exactly *8 characters long* and contain at least one of each:
# [ lower case, upper case, number, special character ]
VNC_PASSWORD="Abcdef1@"
# Enable KVM
wsman put http://intel.com/wbem/wscim/1/ips-schema/1/IPS_KVMRedirectionSettingData -h $ip -P 16992 -u admin -p ${AMT_PASSWORD} -k RFBPassword=${VNC_PASSWORD}
# Enable KVM redirection to port 5900
wsman put http://intel.com/wbem/wscim/1/ips-schema/1/IPS_KVMRedirectionSettingData -h $ip -P 16992 -u admin -p ${AMT_PASSWORD} -k Is5900PortEnabled=true
# Disable opt-in policy
wsman put http://intel.com/wbem/wscim/1/ips-schema/1/IPS_KVMRedirectionSettingData -h $ip -P 16992 -u admin -p ${AMT_PASSWORD} -k OptInPolicy=false
# Disable session timeout
wsman put http://intel.com/wbem/wscim/1/ips-schema/1/IPS_KVMRedirectionSettingData -h $ip -P 16992 -u admin -p ${AMT_PASSWORD} -k SessionTimeout=0
# Enable KVM
wsman invoke -a RequestStateChange http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_KVMRedirectionSAP -h ${ip} -P 16992 -u admin -p ${AMT_PASSWORD} -k RequestedState=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment