diff --git a/src/components/modals/agents/AgentDownload.vue b/src/components/modals/agents/AgentDownload.vue index 5e06633..6c14573 100644 --- a/src/components/modals/agents/AgentDownload.vue +++ b/src/components/modals/agents/AgentDownload.vue @@ -10,17 +10,58 @@ -

Download the agent then run the following command from an elevated command prompt on the device you want to add.

-
+

Download the agent then run the following command from an elevated command prompt on the device you want to add.

- - {{ info.exe }} /VERYSILENT /SUPPRESSMSGBOXES - && timeout /t 20 /nobreak > NUL - && "C:\Program Files\TacticalAgent\tacticalrmm.exe" -m install --api "{{ info.api }}" - --client-id {{ info.data.client }} --site-id {{ info.data.site }} - --agent-type "{{ info.agenttype }}" --power {{ info.power }} --rdp {{ info.rdp }} --ping {{ info.ping }} --auth "{{ info.data.token }}" - + + + {{ info.exe }} /VERYSILENT /SUPPRESSMSGBOXES + && timeout /t 20 /nobreak > NUL + && "C:\Program Files\TacticalAgent\tacticalrmm.exe" -m install --api "{{ info.api }}" + --client-id {{ info.data.client }} --site-id {{ info.data.site }} + --agent-type "{{ info.agenttype }}" --power {{ info.power }} --rdp {{ info.rdp }} --ping {{ info.ping }} --auth "{{ info.data.token }}" + +

+
+ +
+ + --log DEBUG + + To enable verbose output during the install +
+
+ + --local-salt "C:\\<some folder or path>\\salt-minion-setup.exe" + + + To skip downloading the salt-minion during the install. Download it + here + +
+
+ + --local-mesh "C:\\<some folder or path>\\meshagent.exe" + + + To skip downloading the Mesh Agent during the install. Download it + here + +
+
+

Note: the auth token above will be valid for {{ info.expires }} hours.

@@ -29,8 +70,25 @@ \ No newline at end of file diff --git a/src/components/modals/agents/InstallAgent.vue b/src/components/modals/agents/InstallAgent.vue index add185a..58b11a4 100644 --- a/src/components/modals/agents/InstallAgent.vue +++ b/src/components/modals/agents/InstallAgent.vue @@ -102,12 +102,12 @@ export default { this.$q.loading.show(); axios .get("/clients/loadclients/") - .then((r) => { + .then(r => { this.tree = r.data; this.client = Object.keys(r.data)[0]; axios .get("/agents/getagentversions/") - .then((r) => { + .then(r => { this.versions = r.data.versions; this.version = Object.values(r.data.versions)[0]; this.github = r.data.github; @@ -126,12 +126,12 @@ export default { }, addAgent() { const api = axios.defaults.baseURL; - const release = this.github.filter((i) => i.name === this.version)[0]; + const release = this.github.filter(i => i.name === this.version)[0]; const download = release.assets[0].browser_download_url; const exe = `${release.name}.exe`; - const data = { client: this.client, site: this.site, expires: this.expires }; - axios.post("/agents/installagent/", data).then((r) => { + const data = { client: this.client, site: this.site, expires: this.expires, version: this.version }; + axios.post("/agents/installagent/", data).then(r => { this.info = { exe, download,