mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-26 22:23:14 -05:00
Improved MeshCmd, now works with Intel LMS service.
This commit is contained in:
parent
cd6f8502ca
commit
15de1e86b4
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
2
agents/meshcmd.min.js
vendored
2
agents/meshcmd.min.js
vendored
File diff suppressed because one or more lines are too long
@ -720,7 +720,7 @@ function AmtStackCreateService(wsmanStack) {
|
|||||||
|
|
||||||
function _GetAuditLog0(stack, name, responses, status, tag) {
|
function _GetAuditLog0(stack, name, responses, status, tag) {
|
||||||
if (status != 200) { tag[0](obj, [], status); return; }
|
if (status != 200) { tag[0](obj, [], status); return; }
|
||||||
var ptr, i, e, es, x, r = tag[1], t = new Date(), TimeStamp;
|
var ptr, i, e, x, r = tag[1], t = new Date(), TimeStamp;
|
||||||
|
|
||||||
if (responses.Body['RecordsReturned'] > 0) {
|
if (responses.Body['RecordsReturned'] > 0) {
|
||||||
responses.Body['EventRecords'] = MakeToArray(responses.Body['EventRecords']);
|
responses.Body['EventRecords'] = MakeToArray(responses.Body['EventRecords']);
|
||||||
@ -728,8 +728,7 @@ function AmtStackCreateService(wsmanStack) {
|
|||||||
for (i in responses.Body['EventRecords']) {
|
for (i in responses.Body['EventRecords']) {
|
||||||
e = null;
|
e = null;
|
||||||
try {
|
try {
|
||||||
es = atob(responses.Body['EventRecords'][i]);
|
e = Buffer.from(responses.Body['EventRecords'][i], 'base64');
|
||||||
e = Buffer.from(es);
|
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
console.log(ex + " " + responses.Body['EventRecords'][i])
|
console.log(ex + " " + responses.Body['EventRecords'][i])
|
||||||
}
|
}
|
||||||
|
2
agents/modules_meshcmd_min/amt.min.js
vendored
2
agents/modules_meshcmd_min/amt.min.js
vendored
File diff suppressed because one or more lines are too long
@ -270,7 +270,7 @@ function AmtStackCreateService(wsmanStack) {
|
|||||||
obj.AMT_RedirectionService_RequestStateChange = function (RequestedState, callback_func) { obj.Exec("AMT_RedirectionService", "RequestStateChange", { "RequestedState": RequestedState }, callback_func); }
|
obj.AMT_RedirectionService_RequestStateChange = function (RequestedState, callback_func) { obj.Exec("AMT_RedirectionService", "RequestStateChange", { "RequestedState": RequestedState }, callback_func); }
|
||||||
obj.AMT_RedirectionService_TerminateSession = function (SessionType, callback_func) { obj.Exec("AMT_RedirectionService", "TerminateSession", { "SessionType": SessionType }, callback_func); }
|
obj.AMT_RedirectionService_TerminateSession = function (SessionType, callback_func) { obj.Exec("AMT_RedirectionService", "TerminateSession", { "SessionType": SessionType }, callback_func); }
|
||||||
obj.AMT_RemoteAccessService_AddMpServer = function (AccessInfo, InfoFormat, Port, AuthMethod, Certificate, Username, Password, CN, callback_func) { obj.Exec("AMT_RemoteAccessService", "AddMpServer", { "AccessInfo": AccessInfo, "InfoFormat": InfoFormat, "Port": Port, "AuthMethod": AuthMethod, "Certificate": Certificate, "Username": Username, "Password": Password, "CN": CN }, callback_func); }
|
obj.AMT_RemoteAccessService_AddMpServer = function (AccessInfo, InfoFormat, Port, AuthMethod, Certificate, Username, Password, CN, callback_func) { obj.Exec("AMT_RemoteAccessService", "AddMpServer", { "AccessInfo": AccessInfo, "InfoFormat": InfoFormat, "Port": Port, "AuthMethod": AuthMethod, "Certificate": Certificate, "Username": Username, "Password": Password, "CN": CN }, callback_func); }
|
||||||
obj.AMT_RemoteAccessService_AddRemoteAccessPolicyRule = function (Trigger, TunnelLifeTime, ExtendedData, MpServer, InternalMpServer, callback_func) { obj.Exec("AMT_RemoteAccessService", "AddRemoteAccessPolicyRule", { "Trigger": Trigger, "TunnelLifeTime": TunnelLifeTime, "ExtendedData": ExtendedData, "MpServer": MpServer, "InternalMpServer": InternalMpServer }, callback_func); }
|
obj.AMT_RemoteAccessService_AddRemoteAccessPolicyRule = function (Trigger, TunnelLifeTime, ExtendedData, MpServer, callback_func) { obj.Exec("AMT_RemoteAccessService", "AddRemoteAccessPolicyRule", { "Trigger": Trigger, "TunnelLifeTime": TunnelLifeTime, "ExtendedData": ExtendedData, "MpServer": MpServer }, callback_func); }
|
||||||
obj.AMT_RemoteAccessService_CloseRemoteAccessConnection = function (_method_dummy, callback_func) { obj.Exec("AMT_RemoteAccessService", "CloseRemoteAccessConnection", { "_method_dummy": _method_dummy }, callback_func); }
|
obj.AMT_RemoteAccessService_CloseRemoteAccessConnection = function (_method_dummy, callback_func) { obj.Exec("AMT_RemoteAccessService", "CloseRemoteAccessConnection", { "_method_dummy": _method_dummy }, callback_func); }
|
||||||
obj.AMT_SetupAndConfigurationService_CommitChanges = function (_method_dummy, callback_func, tag) { obj.Exec("AMT_SetupAndConfigurationService", "CommitChanges", { "_method_dummy": _method_dummy }, callback_func, tag); }
|
obj.AMT_SetupAndConfigurationService_CommitChanges = function (_method_dummy, callback_func, tag) { obj.Exec("AMT_SetupAndConfigurationService", "CommitChanges", { "_method_dummy": _method_dummy }, callback_func, tag); }
|
||||||
obj.AMT_SetupAndConfigurationService_Unprovision = function (ProvisioningMode, callback_func) { obj.Exec("AMT_SetupAndConfigurationService", "Unprovision", { "ProvisioningMode": ProvisioningMode }, callback_func); }
|
obj.AMT_SetupAndConfigurationService_Unprovision = function (ProvisioningMode, callback_func) { obj.Exec("AMT_SetupAndConfigurationService", "Unprovision", { "ProvisioningMode": ProvisioningMode }, callback_func); }
|
||||||
@ -720,7 +720,7 @@ function AmtStackCreateService(wsmanStack) {
|
|||||||
|
|
||||||
function _GetAuditLog0(stack, name, responses, status, tag) {
|
function _GetAuditLog0(stack, name, responses, status, tag) {
|
||||||
if (status != 200) { tag[0](obj, [], status); return; }
|
if (status != 200) { tag[0](obj, [], status); return; }
|
||||||
var ptr, i, e, es, x, r = tag[1], t = new Date(), TimeStamp;
|
var ptr, i, e, x, r = tag[1], t = new Date(), TimeStamp;
|
||||||
|
|
||||||
if (responses.Body['RecordsReturned'] > 0) {
|
if (responses.Body['RecordsReturned'] > 0) {
|
||||||
responses.Body['EventRecords'] = MakeToArray(responses.Body['EventRecords']);
|
responses.Body['EventRecords'] = MakeToArray(responses.Body['EventRecords']);
|
||||||
@ -728,8 +728,7 @@ function AmtStackCreateService(wsmanStack) {
|
|||||||
for (i in responses.Body['EventRecords']) {
|
for (i in responses.Body['EventRecords']) {
|
||||||
e = null;
|
e = null;
|
||||||
try {
|
try {
|
||||||
es = atob(responses.Body['EventRecords'][i]);
|
e = Buffer.from(responses.Body['EventRecords'][i], 'base64');
|
||||||
e = Buffer.from(es);
|
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
console.log(ex + " " + responses.Body['EventRecords'][i])
|
console.log(ex + " " + responses.Body['EventRecords'][i])
|
||||||
}
|
}
|
||||||
|
2
agents/modules_meshcore_min/amt.min.js
vendored
2
agents/modules_meshcore_min/amt.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.3.0-p",
|
"version": "0.3.0-q",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user