Skip to content

Commit

Permalink
refactor: add update chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
redteampanda-ng committed Mar 21, 2023
1 parent 5fd4694 commit d401fd3
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
1 change: 0 additions & 1 deletion usage/install-thunderstorm-service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ To run THOR in Thunderstorm service mode, you need a license of a
special type named ``THOR Thunderstorm`` license that allows this mode of operation.

.. figure:: ../images/license_generation.png
:target: ../_images/license_generation.png
:alt: Thunderstorm License Type in Customer Portal

Thunderstorm License Type in Customer Portal
Expand Down
52 changes: 52 additions & 0 deletions usage/maintenance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ The following command will restart the THOR Thunderstorm service:
nextron@thunder:~$ sudo systemctl restart thor-thunderstorm.service
.. warning::
Only restart the service if you are sure that no samples are in the queue.
The queue will get deleted once the service restarts, so only use this if
you are sure that no samples get lost.

Review the Service Status
-------------------------

Expand Down Expand Up @@ -60,6 +65,53 @@ Check if the service is listening on a port:
nextron@thunder:~$ sudo netstat -anpt | grep thor
Update
------

There are two methods on how to update THOR Thunderstorm.

The first method will only update the signatures. This is
the safer option, since the service will not be restarted
automatically.

.. code-block:: console
:emphasize-lines: 9
user@unix:~$ sudo thunderstorm-update
[...]
Mar 21 15:54:21 unix THOR_UTIL: Info: Starting Upgrade Process
Mar 21 15:54:21 unix THOR_UTIL: Info: License file found OWNER: user TYPE: thunderstorm STARTS: 2023/03/21 EXPIRES: 2023/03/24
Mar 21 15:54:21 unix THOR_UTIL: Info: Downloading 'signatures'
Mar 21 15:54:21 unix THOR_UTIL: Info: Downloading from: https://update1.nextron-systems.com/[...]
Mar 21 15:54:21 unix THOR_UTIL: Info: already up-to-date
Successfully updated signatures
Now restart the Thunderstorm service at the next opportunity with: sudo systemctl restart thor-thunderstorm
Note: Use './thunderstorm-update full' to upgrade the binaries and signatures (warning: it will also restart the service automatically)
The second method will also update the signatures and the
THOR Thunderstorm binary. This should only be used when you
are sure that the sample queue is empty and no samples are
being scanned at the moment!

.. code-block:: console
:emphasize-lines: 14
user@unix:~$ sudo thunderstorm-update full
[...]
Mar 21 15:58:47 unix THOR_UTIL: Info: Starting Upgrade Process
Mar 21 15:58:47 unix THOR_UTIL: Info: License file found OWNER: user TYPE: thunderstorm STARTS: 2023/03/21 EXPIRES: 2023/03/24
Mar 21 15:58:47 unix THOR_UTIL: Info: Downloading 'thor-linux'
Mar 21 15:58:47 unix THOR_UTIL: Info: Downloading from: https://update1.nextron-systems.com/[...]
Mar 21 15:58:48 unix THOR_UTIL: Info: already up-to-date
Mar 21 15:58:48 unix THOR_UTIL: Info: THOR 10 detected, also updating signatures ...
Mar 21 15:58:48 unix THOR_UTIL: Info: Starting Upgrade Process
Mar 21 15:58:48 unix THOR_UTIL: Info: License file found OWNER: user TYPE: thunderstorm STARTS: 2023/03/21 EXPIRES: 2023/03/24
Mar 21 15:58:48 unix THOR_UTIL: Info: Downloading 'signatures'
Mar 21 15:58:48 unix THOR_UTIL: Info: Downloading from: https://update1.nextron-systems.com/[...]
Mar 21 15:58:48 unix THOR_UTIL: Info: already up-to-date
Restarting Thunderstorm service ...
Successfully updated THOR and signatures
Replace the License
-------------------

Expand Down

0 comments on commit d401fd3

Please sign in to comment.