srankin

Creating a Favorites directory on Icon series

Discussion created by srankin Employee on Oct 6, 2015
Latest reply on Jul 5, 2017 by srankin

You can create/delete Favorites on using the Icon series command line interface (CLI).  See syntax below. The CLI is accessible via ssh and serial.  Full details on accessing the CLI and available commands can be found on the Icon system itself at

http://<icon_ip_address>/docs/clish/

This document is updated with each Icon software release.

 

To create or delete an entry:

$ set local entry -h

Usage: set local entry [-?] [-D c] [-V] [-d "id"] [-h] [fields]

Set an entry in the local directory.

  -?                Display the column headers, even in terse mode

  -D c              Specify an alternate delimiter character in terse mode (default is ',')

  -V                Enable verbose output mode

  -d "id"           Delete the entry with the specified "id" string value.

  -h                Produce this message

  fields            Specify the fields as a JSON string. Potential field names are: firstname, lastname, number,

                    system, protocol, type, bandwidth, and id. For example: set local entry '{"firstname":"Nick",

                    "number":"10.10.10.10", "system":"Test VCU"}'. Excluding the "id" field will add an entry to

                    the directory. Including a valid "id" field will update the fields to an existing entry.

                    Cannot be used with: -d

 

 

The show a local entry or entries:

$ get local directory -h

Usage: get local directory [-?] [-D c] [-V] [-f "filter"] [-h] [-l line limit] [-s start line]

Display the local directory.

  -?                Display the column headers, even in terse mode

  -D c              Specify an alternate delimiter character in terse mode (default is ',')

  -V                Enable verbose output mode

  -f "filter"       Query the local directory using the specified "filter" string value.

  -h                Produce this message

  -l line limit     Limit the directory display to the specified maximum number of lines.

  -s start line     Display the directory starting with the specified line.

Outcomes