mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Updated fdsnapshot and timerinfo
This commit is contained in:
parent
ffa861c0b4
commit
2f7ad6c338
@ -199,7 +199,8 @@ function createMeshCore(agent) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'query':
|
case 'query':
|
||||||
switch (data.value) {
|
switch (data.value)
|
||||||
|
{
|
||||||
case 'connection':
|
case 'connection':
|
||||||
data.result = require('MeshAgent').ConnectedServer;
|
data.result = require('MeshAgent').ConnectedServer;
|
||||||
this._send(data);
|
this._send(data);
|
||||||
@ -210,6 +211,10 @@ function createMeshCore(agent) {
|
|||||||
this.tag.ipc._send(this.tag.payload);
|
this.tag.ipc._send(this.tag.payload);
|
||||||
}).parentPromise.tag = { ipc: this, payload: data };
|
}).parentPromise.tag = { ipc: this, payload: data };
|
||||||
break;
|
break;
|
||||||
|
case 'timerinfo':
|
||||||
|
data.result = require('ChainViewer').getTimerInfo();
|
||||||
|
this._send(data);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'amtstate':
|
case 'amtstate':
|
||||||
@ -2675,7 +2680,7 @@ function createMeshCore(agent) {
|
|||||||
var response = null;
|
var response = null;
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case 'help': { // Displays available commands
|
case 'help': { // Displays available commands
|
||||||
var fin = '', f = '', availcommands = 'coreinfo,coredump,service,fdsnapshot,fdcount,startupoptions,alert,agentsize,versions,help,info,osinfo,args,print,type,dbkeys,dbget,dbset,dbcompact,eval,parseuri,httpget,nwslist,plugin,wsconnect,wssend,wsclose,notify,ls,ps,kill,netinfo,location,power,wakeonlan,setdebug,smbios,rawsmbios,toast,lock,users,openurl,getscript,getclip,setclip,log,av,cpuinfo,sysinfo,apf,scanwifi,wallpaper,agentmsg';
|
var fin = '', f = '', availcommands = 'timerinfo,coreinfo,coredump,service,fdsnapshot,fdcount,startupoptions,alert,agentsize,versions,help,info,osinfo,args,print,type,dbkeys,dbget,dbset,dbcompact,eval,parseuri,httpget,nwslist,plugin,wsconnect,wssend,wsclose,notify,ls,ps,kill,netinfo,location,power,wakeonlan,setdebug,smbios,rawsmbios,toast,lock,users,openurl,getscript,getclip,setclip,log,av,cpuinfo,sysinfo,apf,scanwifi,wallpaper,agentmsg';
|
||||||
if (process.platform == 'win32') { availcommands += ',safemode,wpfhwacceleration,uac'; }
|
if (process.platform == 'win32') { availcommands += ',safemode,wpfhwacceleration,uac'; }
|
||||||
if (amt != null) { availcommands += ',amt,amtconfig,amtevents'; }
|
if (amt != null) { availcommands += ',amt,amtconfig,amtevents'; }
|
||||||
if (process.platform != 'freebsd') { availcommands += ',vm';}
|
if (process.platform != 'freebsd') { availcommands += ',vm';}
|
||||||
@ -2691,6 +2696,9 @@ function createMeshCore(agent) {
|
|||||||
response = "Available commands: \r\n" + fin + ".";
|
response = "Available commands: \r\n" + fin + ".";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'timerinfo':
|
||||||
|
response = require('ChainViewer').getTimerInfo();
|
||||||
|
break;
|
||||||
case 'find':
|
case 'find':
|
||||||
if (args['_'].length <= 1)
|
if (args['_'].length <= 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user