diff --git a/agents/MeshCmd-signed.exe b/agents/MeshCmd-signed.exe index 967d83e3..9bf57528 100644 Binary files a/agents/MeshCmd-signed.exe and b/agents/MeshCmd-signed.exe differ diff --git a/agents/MeshCmd64-signed.exe b/agents/MeshCmd64-signed.exe index ee66a01b..f48b9512 100644 Binary files a/agents/MeshCmd64-signed.exe and b/agents/MeshCmd64-signed.exe differ diff --git a/agents/MeshService-signed.exe b/agents/MeshService-signed.exe index 0e3d565a..8b41f03e 100644 Binary files a/agents/MeshService-signed.exe and b/agents/MeshService-signed.exe differ diff --git a/agents/MeshService.exe b/agents/MeshService.exe index b7e0e3bf..9305e0a4 100644 Binary files a/agents/MeshService.exe and b/agents/MeshService.exe differ diff --git a/agents/MeshService64-signed.exe b/agents/MeshService64-signed.exe index 51999251..e9f7f2c1 100644 Binary files a/agents/MeshService64-signed.exe and b/agents/MeshService64-signed.exe differ diff --git a/agents/MeshService64.exe b/agents/MeshService64.exe index 7fa42f2c..347ff3cf 100644 Binary files a/agents/MeshService64.exe and b/agents/MeshService64.exe differ diff --git a/agents/hashagents.txt b/agents/hashagents.txt index bbccdeb3..f96e1d7e 100644 --- a/agents/hashagents.txt +++ b/agents/hashagents.txt @@ -1,33 +1,33 @@ 3: MeshService-signed.exe -B5F60C093C10777EEDA74396DF06936B22BF26539DC0D017B565A720298DF70B21846F5867BE97CE38A739060F15B3EB +15B19C5D60155EBC824E19BC21FA7D20351F368CE5C923D265EAD7F43B1D8854EF0DBBE57AB26493F82E36CB142E0B24 4: MeshService64-signed.exe -A4C9F3902CAAEFA66EEA1793B27DDBF4B2C6B6FACAB29363F9B43D5423F1BE5C6DDD3F26F52384C8F9DC31D83159CDB6 +402941EA92A70CA80F3A5149162E2D373344001B5389D6CFC3B995A2BD1D9C763099C566615E57029D707F4E757350E7 5: meshagent_x86 -A0F6C92E48F9646DAC321F283C98C15B99777B645556FBC9175992B7C3471E085C381C196C6A8AC6F9DE6C2DB02D81B4 +715186A078EE4AF74C05EE4084BB7BBBE4DEF4F3A24664ED0EA79F2E1B95B160697FD3C538CA519D619BBF2DE5311AB8 6: meshagent_x86-64 -24050A1C3EE38D7134D9B8A29644334468188A087DE5365EFF51D2F879E9BCCE92E2FE45C64DFF0D13101F08A6613290 +F7117FBA95A0C132C730E1F29B13E281A387A6615AFD295C702271868EFDACAE598EE7167DA7FDCC7112E3B5FD5C9CDF 9: meshagent_arm -8B529F3DCA907AC6A5CD1310CB875DD0E3218C26CE6C68727BA35F139D1132F933993C9AF10AB247477A9707842F4828 +7AE1AA999B86E5CF67C8F3F5CE9D1E7981FF3F5299B514A21ED460A8B4D3786FD523B68D92D32E0258D449573DB50E0F 7: meshagent_mips -442127E51D7595FC0D1157634EC2D9C5AB7BC035F385622F5683E17A7AB64324210CEFFE06BF405F1B6EE368E18FBE42 +43616A92F8373984B96E8F71CF9211E29582CFC1E035E5739B65C99CF001F16BA53C3AAB8AD2657AFAA45341C10BD055 13: meshagent_pogo -54E9095FA91AFE246495189EF5BE9AF36131A4C96D4A128D29BA4A2A02A0A09571735749E456048CB2920286D281C3E1 +4B5918296BCA88DC3654EEFC6AF3E1722A9BE8AA83174925D1B8598D5186A09EFC7003F24A049B7970BCAE1043120621 15: meshagent_poky -FE1DCF9A0CD47D905773F3FEB2318724AE365ACA2B1E4BB053E8A6110E3784FC4DDA1E414BE71ECACC74CCA211A31DCB +ABA3EEF6883B7A1F8A2B34B32AF518DFC8319F96B8474E43762DE09B24D7E419D1E738A0A1721BC918848FEC74A9B365 16: meshagent_osx-x86-64 BD7071C5D2E46275202E802CB149A82948B4597399B64A8A22AED3F2593730D00646F9AA347E53B3F2460E42DB88FB87 18: meshagent_poky64 -7CAAE7093B4F1F330F15B304A6C3F0DAD8C9D56E3691FC44FD9585198EE0DEF1A178431AF9D33E42058CC760C8B82E2B +1105DD015C75A86D9DDA7C4C9EBD2E169009578A4FB26E19E0C1B8C522667C065B6C969C3C46BC200CA953912F645CDD 19: meshagent_x86_nokvm -C0832796D291A3EEA5595A1706416A4ED61D416BD2A5D02BA691D5E954E82C571F568495DC7CE850C4590BFCBA44DDDE +4C0828B4596ED72A542F2240FA78E1FCF39BFA33BB7315E6FB26CB0D6E4DAEF14A49F25C9FCA731AF1BA144BEC3B55DE 20: meshagent_x86-64_nokvm -8657C208AAD379321DB898ACF876CF40BA730518F72DC605090F73099178244E5D2E73701E68DA8DA3332CB52DE16F2B +9BAF098F604903CB81968DF0BBDB3914D5BF1D114DFE08F29E3BC62D2C6D839D65D1A437087C486B51FD4DA18B363D04 24: meshagent_arm-linaro -147B1900B414FA262F4E0CFB9C14FBB7B225FF425B47361EE98A6E187C5306D89F3302E4DC68220A85D7C398945F987C +8B953C45BCF20A353192783A55CAAAB12D0F69E6BEB71AC83BA871F3F4465B1C1D5C22C10189399287A69B76ABB19FCD 25: meshagent_armhf -BDE419BFABF381B46FC940F27B56D62A395262DC5A4B3F6E71755E7D0A0994203369B2EE05986964682F919A8D637626 +B679432037078A04775DAB5349ACD7FDDC9DED3804DCDB42140EF2E3944B50799218D39C2477CD332E6DA229004AE919 26: meshagent_arm64 -B15772E05DF671F0205A88625CA8C273CEEFFE2AC5BB0FFA56D9D88913A230A0690C7394B199432B4AEC20B4829E3D79 +407922C20CB88C7AD0AA11D72C74F1D359EF98C13F6F5ED307D2DE692E5F7E2C0894C0087AADE19DC54C34E98E629ED3 30: meshagent_freebsd_x86-64 A5A8784C936B3FA5B2E310382DD369B5820C6D17A80AB8DD99E8109C543AE4B1F2956F8E55CF60BBE480311C1327DC94 diff --git a/agents/meshagent_arm b/agents/meshagent_arm index 02041002..c8d33b0e 100644 Binary files a/agents/meshagent_arm and b/agents/meshagent_arm differ diff --git a/agents/meshagent_arm-linaro b/agents/meshagent_arm-linaro index d9a35f5d..54f806d0 100644 Binary files a/agents/meshagent_arm-linaro and b/agents/meshagent_arm-linaro differ diff --git a/agents/meshagent_arm64 b/agents/meshagent_arm64 index 4aecd55b..7d7992cd 100644 Binary files a/agents/meshagent_arm64 and b/agents/meshagent_arm64 differ diff --git a/agents/meshagent_armhf b/agents/meshagent_armhf index 3cef49ab..440acc3e 100644 Binary files a/agents/meshagent_armhf and b/agents/meshagent_armhf differ diff --git a/agents/meshagent_mips b/agents/meshagent_mips index 854c75cb..0d1ef847 100644 Binary files a/agents/meshagent_mips and b/agents/meshagent_mips differ diff --git a/agents/meshagent_pogo b/agents/meshagent_pogo index d950a3b4..c4d0f7a6 100644 Binary files a/agents/meshagent_pogo and b/agents/meshagent_pogo differ diff --git a/agents/meshagent_poky b/agents/meshagent_poky index d57324c2..947c430d 100644 Binary files a/agents/meshagent_poky and b/agents/meshagent_poky differ diff --git a/agents/meshagent_poky64 b/agents/meshagent_poky64 index 6ca6aa91..78cb94a6 100644 Binary files a/agents/meshagent_poky64 and b/agents/meshagent_poky64 differ diff --git a/agents/meshagent_x86 b/agents/meshagent_x86 index 1445f80b..3e8e775b 100644 Binary files a/agents/meshagent_x86 and b/agents/meshagent_x86 differ diff --git a/agents/meshagent_x86-64 b/agents/meshagent_x86-64 index cb2e6295..f12c4c6b 100644 Binary files a/agents/meshagent_x86-64 and b/agents/meshagent_x86-64 differ diff --git a/agents/meshagent_x86-64_nokvm b/agents/meshagent_x86-64_nokvm index 4914fb98..4e4cb232 100644 Binary files a/agents/meshagent_x86-64_nokvm and b/agents/meshagent_x86-64_nokvm differ diff --git a/agents/meshagent_x86_nokvm b/agents/meshagent_x86_nokvm index 0782ded0..eda5f813 100644 Binary files a/agents/meshagent_x86_nokvm and b/agents/meshagent_x86_nokvm differ diff --git a/meshuser.js b/meshuser.js index 3f36ea52..96f1c5ea 100644 --- a/meshuser.js +++ b/meshuser.js @@ -785,12 +785,25 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use switch (cmd) { case 'help': { - var fin = '', f = '', availcommands = 'help,info,versions,args,resetserver,usersessions,closeusersessions,tasklimiter,setmaxtasks,cores,migrationagents,agentstats,webstats,mpsstats,swarmstats,acceleratorsstats,updatecheck,serverupdate,nodeconfig,heapdump,relays,autobackup,backupconfig,dupagents,dispatchtable,badlogins,showpaths,le,lecheck,leevents,dbstats,sms,amtacm,certhashes,watchdog'; + var fin = '', f = '', availcommands = 'help,info,versions,resetserver,usersessions,closeusersessions,tasklimiter,setmaxtasks,cores,migrationagents,agentstats,webstats,mpsstats,swarmstats,acceleratorsstats,updatecheck,serverupdate,nodeconfig,heapdump,relays,autobackup,backupconfig,dupagents,dispatchtable,badlogins,showpaths,le,lecheck,leevents,dbstats,sms,amtacm,certhashes,watchdog'; if (parent.parent.config.settings.heapdump === true) { availcommands += ',heapdump'; } availcommands = availcommands.split(',').sort(); while (availcommands.length > 0) { if (f.length > 80) { fin += (f + ',\r\n'); f = ''; } f += (((f != '') ? ', ' : ' ') + availcommands.shift()); } if (f != '') { fin += f; } - r = 'Available commands: \r\n' + fin + '.'; + if (cmdargs['_'].length == 0) { + r = 'Available commands: \r\n' + fin + '\r\nType help for details.'; + } else { + var cmd2 = cmdargs['_'][0].toLowerCase(); + switch (cmd2) { + case 'info': { r = "info: Returns the most immidiatly useful information about this server, including MeshCentral and NodeJS versions. This is often information required to file a bug."; break; } + case 'versions': { r = "versions: Returns all internal versions for NodeJS running this server."; break; } + case 'resetserver': { r = "resetserver: Causes the server to reset, this is sometimes useful is the config.json file was changed."; break; } + case 'usersessions': { r = "usersessions: Returns a list of active sessions grouped by user."; break; } + case 'closeusersessions': { r = "closeusersessions: Disconnects all sessions for a specified user."; break; } + case 'tasklimiter': { r = "tasklimiter: Returns the internal status of the tasklimiter. This is a system used to smooth out work done by the server. It's used by, for example, agent updates so that not all agents are updated at the same time."; break; } + default: { r = 'No help information about this command.'; break; } + } + } break; } case 'certhashes': { @@ -983,7 +996,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use break; } case 'print': { - console.log(cmdargs["_"][0]); + console.log(cmdargs['_'][0]); break; } case 'updatecheck': {