From acda3e2d856823af2a5d0da25294bf3dce81acd3 Mon Sep 17 00:00:00 2001 From: jans23 Date: Fri, 2 Aug 2024 12:14:33 +0200 Subject: [PATCH] System Info added --- nethsm/administration.rst | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/nethsm/administration.rst b/nethsm/administration.rst index f403ca33c3..3e67ea7faa 100644 --- a/nethsm/administration.rst +++ b/nethsm/administration.rst @@ -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 `__. @@ -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 `__. +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 `__. + Reboot and Shutdown ~~~~~~~~~~~~~~~~~~~