network_dev_config
==================

This is a simple command-line utility for performing network configuration on
an NI cDAQ-9185/89, FieldDAQ, or cRIO-9805 device through its NETCONF
interface.

NETCONF is an IETF-standardized network management protocol.

The NETCONF interface was added to the cDAQ-9185/89 and FieldDAQ products
in firmware version 19.5. This program will not work on a cDAQ-9185/89 or
FieldDAQ with an earlier version; consult your product documentation to
update the firmware on your device.


Usage
=====

network_dev_config [-h] [--username USERNAME] [--password PASSWORD]
                   [--timeout SECONDS]
                   (--rstp {query,enable,disable} |
                   --discover |
                   --update_password NEW_PASSWORD |
                   --query_device_info |
                   --reset |
                   --version)
                   [hostname]

Common options
--------------

  hostname              hostname of device

     The default hostname is the model number, a hyphen, and the serial
     number, for example, "cDAQ9185-4E8924A" or "cRIO9805-4898E28".

  --username USERNAME   login username
  --password PASSWORD   login password

     The utility will use the default credentials of a cDAQ/FieldDAQ device
     if unspecified (username of "admin" with a blank password). A cRIO-9805
     device ships with a random default password assigned at manufacturing
     time.

     If the credentials have changed from the defaults, the --username and
     --password options can be used to instruct the client how to log in.

     If --username is specified but a --password is not, then the password
     will be prompted for on standard input.

Device discovery
----------------

  --discover            output hostnames for devices discovered via mDNS
  --timeout SECONDS     timeout (s) for device discovery

     NETCONF devices supported by this utility advertise the capability
     via the _netconf._tcp service in Multicast DNS.

Updating password
-----------------

  --update_password NEW_PASSWORD
                        change password to NEW_PASSWORD

Changing Rapid Spanning Tree Protocol state
-------------------------------------------

  --rstp {query,enable,disable}
                        get/set Rapid Spanning Tree Protocol state

     The RSTP configuration persists through device restarts. It is reset to
     the default setting on factory reset. Consult your product documentation
     for the factory reset procedure.

Retrieving device information
-----------------------------

  --query_device_info   query device information

     Returns the model name and firmware version of the device.

Reset the device
----------------

  --reset               reset device

     Reset the device.

Miscellaneous options
---------------------
  -h, --help            show this help message and exit
  --version             show program's version number and exit


Further Reading
===============
See https://ni.com/r/netconfig

Licenses
========
See LICENSE.txt and THIRD-PARTY-LICENSES.txt.
