Skip to content

Commit

Permalink
System Info added
Browse files Browse the repository at this point in the history
  • Loading branch information
jans23 authored Aug 2, 2024
1 parent ccdeeee commit acda3e2
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions nethsm/administration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,11 @@ The update file can be uploaded as follows.

.. code-block:: bash
$ nitropy nethsm --host $NETHSM_HOST update /tmp/nethsm-update.img.cpio
$ nitropy nethsm --host $NETHSM_HOST update /tmp/nethsm-update.img.bin
.. code-block::
Image /tmp/nethsm-update.img.cpio uploaded to NetHSM localhost:8443
Image /tmp/nethsm-update.img.bin uploaded to NetHSM localhost:8443
.. tab:: REST API
Information about the `/system/update` endpoint can be found in the `API documentation <https://nethsmdemo.nitrokey.com/api_docs/index.html#/default/POST_system-update>`__.

Expand Down Expand Up @@ -847,6 +847,29 @@ The update can be cancelled as follows.
.. tab:: REST API
Information about the `/system/cancel-update` endpoint can be found in the `API documentation <https://nethsmdemo.nitrokey.com/api_docs/index.html#/default/POST_system-cancel-update>`__.

System Information
~~~~~~~~~~~~~~~~~~

System information such as firmware version, software version, and hardware version can be retrieved as follows.

.. tabs::
.. tab:: nitropy
**Example**

.. code-block:: bash
$ nitropy nethsm -h $NETHSM_HOST system-info
.. code-block::
Host: 192.168.1.1
Firmware version: 1.0-prod
Software version: 2.0
Hardware version: prodrive-hermes-1.0
Build tag: v2.0-0-g17ad829
.. tab:: REST API
Information about the `/system/info` endpoint can be found in the `API documentation <https://nethsmdemo.nitrokey.com/api_docs/index.html#/default/get_system_info>`__.

Reboot and Shutdown
~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit acda3e2

Please sign in to comment.