Configuring Data Logging from each port on Nodegrid to a Remote NFS Server

Configuring Data Logging from each port on Nodegrid to a Remote NFS Server

This article provides guidance on configuring data logging from managed devices to be stored on a remote NFS server. Data logs capture all information sent to and received from a device.

1. Enabling Data Logging for a Device

This section explains how-to guide for configuring data logging for a port (device) using both the WebUI and CLI, offering detailed instructions to set up logging for your managed devices.

1.1 Configuration via WebUI:

  1. Login as admin and navigate to Managed Devices

  2. Select the target device and go to Logging

  3. Enable Data logging option and Click Save

  4. Go to Access page and select the target device and you will see Data log tab in dialogue for the device

  5. To open the pdf for the logs click Data log




1.2 Configuration via CLI:

  1. Log in as admin in CLI (telnet/ssh/console)

  2. Navigate to /settings/devices/<Device_Name>/logging/

  3. Use the set command to change the data_logging value to yes or no

  4. Commit the changes


    [admin@nodegrid / ] # cd /settings/devices/<Device_Name>/logging/

    [admin@nodegrid logging] # set data_logging=yes

    [+admin@nodegrid logging] commit

    [admin@nodegrid logging]#



2. Sending Data Logs to a Remote NFS Server

This section is a how-to guide for enabling data logging from a device (port) to an NFS server, providing detailed instructions for configuring the transfer process to the remote NFS server.

2.1 Configuration via WebUI:

  1. Login as admin and navigate to Auditing :: Destinations :: File

  2. Select the NFS option from the Destination dropdown.

  3. Under NFS Destination section:

    1. Enter the server IP on the NFS Server field.

    2. Specify the NFS Path where the NFS Server is mounted.

  4. Click Save to apply the configurations


  1. Navigate to Security :: Services :: General Services

  2. Enable the RPC service by checking the checkbox Enable RPC.

    1. NFS requires RPC service to be enabled in Security :: Services.



2.2 Configuration via CLI:

  1. Log in as admin via CLI (telnet/ssh/console).

  2. Navigate to /settings/auditing/destinations/file/

  3. Use the set command to change the destination value to NFS

  4. Use the set command to set the Server IP in the nfs_server field

  5. Use the set command on the nfs_server field to enter the path where the NFS Server is mounted

  6. Use the set command in the nfs_path to specify the path where the NFS Server is mounted

  7. Commit the changes

    [admin@nodegrid /]# cd /settings/auditing/destinations/file/

    [admin@nodegrid file]# set destination=nfs

    [+admin@nodegrid file]# set nfs_server=192.168.42.177

    [+admin@nodegrid file]# set nfs_path=/var/opt/nfsroot

    [+admin@nodegrid file]# commit

    [admin@nodegrid file]#


  8. Navigate to /settings/services/

  9. Use the set command to change the enable_rpc value to yes

  10. Commit the changes

    [admin@nodegrid /]# cd settings/services/

    [admin@nodegrid services]# set enable_rpc=yes

    [+admin@nodegrid services]# commit

    [admin@nodegrid services]#

3. Setting Up an NFS Server on Nodegrid

It is possible to use Nodegrid as an NFS server. To set up the NFS server, you need to create an exported folder where the contents of the rootfs will be stored

Enter root shell from admin CLI session: shell sudo su -

First, load the kernel modules nfs and nfsd.

  1.  modprobe nfs
  2.  modprobe nfsd

Create the /var/opt/nfsroot folder, which will be used to store the files.
mkdir /var/opt/nfsroot

Then, edit the exports file on /etc/exports and add at the bottom of the file:
/var/opt/nfsroot *(async,rw,no_root_squash,no_all_squash,no_subtree_check,insecure,anonuid=1000,anongid=1000)

Now, restart the NFS daemon, rpcbind and the server:
exportfs -a
/etc/init.d/rpcbind restart
/etc/init.d/nfsserver restart

    • Related Articles

    • How to setup Data Logging for one or more Devices to save data locally

      Data logs capture all information send to a device and coming from a device. You can choose to store the logs locally or remotely. Configuration via WebUI: 1. Login as admin and navigate to Managed Devices 2. Select the target device and go to ...
    • Auditing and Data Logging Settings

      The Auditing feature allows the data and event logging to be stored locally or remotely via NFS which is sent by an Email or a SNMP Trap or sent through a Syslog server. Data Logging captures Data string coming from and going to Target devices as ...
    • How to setup Data Logging for one or more Devices with Alerts

      One can receive alerts via EMAIL, SYSLOG, SNMP trap or all. These alerts will be based on the strings being monitored on the serial port. Configuration via WebUI: Login as admin and go to Managed Devices Select the device and click Logging Note: ...
    • How to: Enable Remote Access

      Remote access is one of the multiple ZPE Cloud features. It allows you to access your Nodegrid device and target devices from anywhere in the world, as long as you have an internet connection.. Here's how to enable Remote Access on your Nodegrid ...
    • How to Configure Nodegrid Serial Ports

      To configure the serial ports of your Nodegrid Serial Console, follow the guideline steps below.   WebUI Log in as admin to the Nodegrid Serial Console Web interface. Go to Managed Devices page. Select the serial ports you want to configure, or check ...