1 connecting to the loggernet server, 2 checking and setting device settings, 3 creating and using a network backup file – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 414: Connecting to the loggernet server -8, Checking and setting device settings -8, Creating and using a network backup file -8

Advertising
background image

Section 10. Utilities Installed with LoggerNet

Command parameters are often set using a combination of the parameter

name and the value in this format: --name=login. Be sure to read the

help for the command you are using.

A response preceded by a plus sign (+) indicates that the command was

successfully processed.

A response preceded by a minus sign (–) indicates that the command

failed and will usually be accompanied by a reason for the failure.

10.2.2.1 Connecting to the LoggerNet Server

Before you can execute any commands a connection to the LoggerNet server

must be established. The connect command sets up the server context in which

subsequent commands will operate until the end of the script is reached or

another connect command is processed. The following segment shows a

sample use of the connect command:

connect # the name of the command

localhost # specifies the server’s host address

--name=“bilbo” # specifies the logon name (optional)

--password={baggins} # specifies the password (optional)

; # marks the end of the command

This command would normally appear on one line as follows:

connect localhost --name=“bilbo” --password={baggins} ;

For a more detailed explanation of the interpretation of the symbols and syntax

refer to the CoraScript help.

10.2.2.2 Checking and Setting Device Settings

The current value of any of the configuration settings for a device is available

using the get-device-setting command. Devices are referred to by the name as

shown in the Setup Screen network map and settings are referenced by number.

The setting numbers and their meanings are described in the CoraScript help.

To set the configuration setting for any device, use the set-device-setting

command. As with get-device-setting the device is referred to by name and the

setting by number.

10.2.2.3 Creating and using a Network Backup File

This command is used to create a backup image of LoggerNet’s working

directory. The backup file will contain the exact images of LoggerNet’s

configuration files and, when restored, will restore LoggerNet to the exact state

that existed when the backup file was created. A file created using this

command can be restored using the restore-snapshot command.

10-8

Advertising