Remote CLI Documentation

Information contained in this document is subject to change without notice. Complying with all applicable copyright laws is the responsibility of the user. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without express written permission from Green Energy Corp.

?

Document Control #: 02.004.000.000.000

Release Date: 20111220


1. Commands
1.1. access
1.1.1. access:access
1.1.2. access:block
1.1.3. access:remove
1.2. agent
1.2.1. agent:create
1.2.2. agent:delete
1.2.3. agent:list
1.2.4. agent:password
1.3. agent-permissions
1.3.1. agent-permissions:create
1.3.2. agent-permissions:delete
1.3.3. agent-permissions:filter
1.3.4. agent-permissions:list
1.3.5. agent-permissions:view
1.4. alarm
1.4.1. alarm:ack
1.4.2. alarm:list
1.4.3. alarm:remove
1.4.4. alarm:silence
1.5. application
1.5.1. application:list
1.5.2. application:remove
1.5.3. application:view
1.6. attr
1.6.1. attr:attr
1.6.2. attr:clear
1.6.3. attr:remove
1.6.4. attr:set
1.7. calculation
1.7.1. calculation:list
1.7.2. calculation:view
1.8. channel
1.8.1. channel:list
1.9. command
1.9.1. command:hist
1.9.2. command:issue
1.9.3. command:list
1.10. configfile
1.10.1. configfile:download
1.10.2. configfile:list
1.10.3. configfile:upload
1.10.4. configfile:view
1.11. endpoint
1.11.1. endpoint:changestate
1.11.2. endpoint:disable
1.11.3. endpoint:enable
1.11.4. endpoint:list
1.12. entity
1.12.1. entity:children
1.12.2. entity:entity
1.12.3. entity:relations
1.12.4. entity:tree
1.12.5. entity:type
1.13. event
1.13.1. event:list
1.13.2. event:publish
1.13.3. event:view
1.14. event-config
1.14.1. event-config:create
1.14.2. event-config:delete
1.14.3. event-config:list
1.14.4. event-config:view
1.15. login
1.15.1. login:list
1.15.2. login:revoke
1.16. meas
1.16.1. meas:block
1.16.2. meas:download
1.16.3. meas:endpoint
1.16.4. meas:from
1.16.5. meas:hist
1.16.6. meas:list
1.16.7. meas:override
1.16.8. meas:override-list
1.16.9. meas:stat
1.16.10. meas:unblock
1.16.11. meas:view
1.17. metrics
1.17.1. metrics:calcs
1.17.2. metrics:filters
1.17.3. metrics:metrics
1.17.4. metrics:outputs
1.17.5. metrics:rates
1.17.6. metrics:reset
1.17.7. metrics:throughput
1.18. point
1.18.1. point:commands
1.18.2. point:list
1.19. reef
1.19.1. reef:benchmark
1.19.2. reef:headers
1.19.3. reef:load
1.19.4. reef:login
1.19.5. reef:logout
1.19.6. reef:unload
1.19.7. reef:whoami
1.20. trigger
1.20.1. trigger:trigger
2. Examples
2.1. Events

Chapter?1.?Commands

1.1.?access

1.1.1.?access:access

1.1.1.1.?Description

View command select/blocks.

1.1.1.2.?Syntax

access:access [options] [id]

1.1.1.3.?Arguments

id Command Access id

1.1.1.4.?Options

-d Include inactive locks

1.1.2.?access:block

1.1.2.1.?Description

Block specified commands.

1.1.2.2.?Syntax

access:block id

1.1.2.3.?Arguments

id Names of commands to block.

1.1.3.?access:remove

1.1.3.1.?Description

Remove block/select.

1.1.3.2.?Syntax

access:remove id

1.1.3.3.?Arguments

id Block/select id.

1.2.?agent

1.2.1.?agent:create

1.2.1.1.?Description

Create a new agent on system

1.2.1.2.?Syntax

agent:create [options] agent name

1.2.1.3.?Arguments

agent name agent name

1.2.1.4.?Options

-p password for non-interactive scripting. WARNING password will be visible in command history
-s Names of wanted permissionSets, must include at least one

1.2.2.?agent:delete

1.2.2.1.?Description

Delete an agent from the system

1.2.2.2.?Syntax

agent:delete agent name

1.2.2.3.?Arguments

agent name agent name

1.2.3.?agent:list

1.2.3.1.?Description

View agents on system

1.2.3.2.?Syntax

agent:list

1.2.4.?agent:password

1.2.4.1.?Description

Sets the password for an agent

1.2.4.2.?Syntax

agent:password agent name

1.2.4.3.?Arguments

agent name agent name

1.3.?agent-permissions

1.3.1.?agent-permissions:create

1.3.1.1.?Description

Edit a permission set

1.3.1.2.?Syntax

agent-permissions:create [options] permissionSetName

1.3.1.3.?Arguments

permissionSetName Descriptive name for a permission

1.3.1.4.?Options

-d Denied Permisson qualifiers of form [OPERATION],[RESOURCE]. Ex: Read,measurements
-a Allowed Permisson qualifiers of form [OPERATION],[RESOURCE]. Ex: Read,measurements

1.3.2.?agent-permissions:delete

1.3.2.1.?Description

Delete a PermissionSet

1.3.2.2.?Syntax

agent-permissions:delete permissionSetName

1.3.2.3.?Arguments

permissionSetName Descriptive name for a permission

1.3.3.?agent-permissions:filter

1.3.3.1.?Description

Check results of PermissionSet

1.3.3.2.?Syntax

agent-permissions:filter [options] permissionSetName

1.3.3.3.?Arguments

permissionSetName Descriptive name for a permission

1.3.3.4.?Options

-a Action to check filter against
-t Entity type to look up
-r Resource to check filter against
-n Entity name to look up

1.3.4.?agent-permissions:list

1.3.4.1.?Description

View permission sets

1.3.4.2.?Syntax

agent-permissions:list

1.3.5.?agent-permissions:view

1.3.5.1.?Description

View permission sets

1.3.5.2.?Syntax

agent-permissions:view permissionSetName

1.3.5.3.?Arguments

permissionSetName Descriptive name for a permission

1.4.?alarm

1.4.1.?alarm:ack

1.4.1.1.?Description

Acknowledges an Alarm

1.4.1.2.?Syntax

alarm:ack id

1.4.1.3.?Arguments

id Alarm id

1.4.2.?alarm:list

1.4.2.1.?Description

List alarms.

1.4.2.2.?Syntax

alarm:list [options]

1.4.2.3.?Options

-l Limit number of displayed events (defaults to 10)
-t Show alarms of type.

1.4.3.?alarm:remove

1.4.3.1.?Description

Removes an Alarm

1.4.3.2.?Syntax

alarm:remove id

1.4.3.3.?Arguments

id Alarm id

1.4.4.?alarm:silence

1.4.4.1.?Description

Silences an Alarm

1.4.4.2.?Syntax

alarm:silence id

1.4.4.3.?Arguments

id Alarm id

1.5.?application

1.5.1.?application:list

1.5.1.1.?Description

Prints application information

1.5.1.2.?Syntax

application:list

1.5.2.?application:remove

1.5.2.1.?Description

Remove an application from list. If we try to remove a running application it will cause that app to restart. (experts-only!)

1.5.2.2.?Syntax

application:remove application name

1.5.2.3.?Arguments

application name Name of the application we want to remove.

1.5.3.?application:view

1.5.3.1.?Description

Prints detailed application information

1.5.3.2.?Syntax

application:view application name

1.5.3.3.?Arguments

application name Name of the application we want to inspect.

1.6.?attr

1.6.1.?attr:attr

1.6.1.1.?Description

Prints the attributes for an entity.

1.6.1.2.?Syntax

attr:attr entity name

1.6.1.3.?Arguments

entity name Entity name

1.6.2.?attr:clear

1.6.2.1.?Description

Prints events.

1.6.2.2.?Syntax

attr:clear entity name

1.6.2.3.?Arguments

entity name Entity name

1.6.3.?attr:remove

1.6.3.1.?Description

Prints events.

1.6.3.2.?Syntax

attr:remove entity name name

1.6.3.3.?Arguments

entity name Entity name
name Attribute name

1.6.4.?attr:set

1.6.4.1.?Description

Prints events.

1.6.4.2.?Syntax

attr:set entity name name value

1.6.4.3.?Arguments

entity name Entity name
name Attribute name
value Attribute value

1.7.?calculation

1.7.1.?calculation:list

1.7.1.1.?Description

List all calculations

1.7.1.2.?Syntax

calculation:list

1.7.2.?calculation:view

1.7.2.1.?Description

View a calculations details including its current values. Examples: Show just the calculationd details: calculation:view --no-values System.AverageStoredEnergy Show and subscribe to only the calculation output: calculation:view -w -o System.AverageStoredEnergy Show the calculation and only the immedate input points: calculation:view --no-indirect-parentsn System.AverageStoredEnergy Show the calculation and all of its related points: calculation:view --show-children System.AverageStoredEnergy

1.7.2.2.?Syntax

calculation:view [options] name

1.7.2.3.?Arguments

name Name of the output point associated with the calculation

1.7.2.4.?Options

-w Subscribe to measurement updates and continuously display new values coming in. Press cntrl-c to stop
-o Show only calculation output. Equivilant to "--no-indirect-parents --no-direct-parents"
--show-children Don't show the values of child points
--no-indirect-parents Dont show values for indirect parents
--no-values Display current values of inputs and calculation
--no-direct-parents Dont show values for direct parents

1.8.?channel

1.8.1.?channel:list

1.8.1.1.?Description

Prints channel information

1.8.1.2.?Syntax

channel:list

1.9.?command

1.9.1.?command:hist

1.9.1.1.?Description

Shows recent commands executions

1.9.1.2.?Syntax

command:hist [Command Name]

1.9.1.3.?Arguments

Command Name Command name

1.9.2.?command:issue

1.9.2.1.?Description

Issues a command

1.9.2.2.?Syntax

command:issue Command Name [value]

1.9.2.3.?Arguments

Command Name Command name
value Setpoint value

1.9.3.?command:list

1.9.3.1.?Description

Lists commands

1.9.3.2.?Syntax

command:list

1.10.?configfile

1.10.1.?configfile:download

1.10.1.1.?Description

Download a config file

1.10.1.2.?Syntax

configfile:download name [outputFile]

1.10.1.3.?Arguments

name Config file name
outputFile File to create, defaults to configFileName

1.10.2.?configfile:list

1.10.2.1.?Description

Prints all config files

1.10.2.2.?Syntax

configfile:list

1.10.3.?configfile:upload

1.10.3.1.?Description

Upload a config file. If the file already exists in reef overwrite the data in the file.

1.10.3.2.?Syntax

configfile:upload [options] configFileName [inputFile]

1.10.3.3.?Arguments

configFileName Name for config file in reef, this needs to match what is in configfile:list exactly to replace a file.
inputFile Local File name to load data from, defaults to configFileName. Needs to be specified if local filename doesn't match reef configFileName.

1.10.3.4.?Options

-e Entity to attach configFile to.
-mimeType Mime Type of file, not necessary if overwriting config file

1.10.4.?configfile:view

1.10.4.1.?Description

View a config file

1.10.4.2.?Syntax

configfile:view name

1.10.4.3.?Arguments

name Config file name

1.11.?endpoint

1.11.1.?endpoint:changestate

1.11.1.1.?Description

Force an endpoint into a different state (experts only!)

1.11.1.2.?Syntax

endpoint:changestate name [state]

1.11.1.3.?Arguments

name Endpoint name. Use "*" for all endpoints.
state The desired state we want the endpoint in. COMMS_UP, COMMS_DOWN or COMMS_ERROR (defaults to COMMS_DOWN)

1.11.2.?endpoint:disable

1.11.2.1.?Description

Disables an endpoint

1.11.2.2.?Syntax

endpoint:disable name

1.11.2.3.?Arguments

name Endpoint name. Use "*" for all endpoints.

1.11.3.?endpoint:enable

1.11.3.1.?Description

Enables an endpoint

1.11.3.2.?Syntax

endpoint:enable name

1.11.3.3.?Arguments

name Endpoint name. Use "*" for all endpoints.

1.11.4.?endpoint:list

1.11.4.1.?Description

Prints endpoint connection information

1.11.4.2.?Syntax

endpoint:list

1.12.?entity

1.12.1.?entity:children

1.12.1.1.?Description

Lists children of a parent entity.

1.12.1.2.?Syntax

entity:children [options] Parent Entity Name [relType] [subType]

1.12.1.3.?Arguments

Parent Entity Name Parent entity name.
relType Relationship type.
subType Sub entity type.

1.12.1.4.?Options

-d Show children at any depth.

1.12.2.?entity:entity

1.12.2.1.?Description

Prints all entities or information on a specific entity.

1.12.2.2.?Syntax

entity:entity [Entity Name]

1.12.2.3.?Arguments

Entity Name Entity name.

1.12.3.?entity:relations

1.12.3.1.?Description

Prints the results of complex tree queries on the entity system. Each relationship descriptor is made of 4 parts seperated by colons. Examples: Get all child points regardless of depth: entity:relations Root owns:*:true:Point Get all points and commands organized by equipment: entity:relations Root owns:*:true:Equipment owns:*:true:Point,Command Get all Equipment organized by EquipmentGroup: entity:relations Root owns:1:true:EquipmentGroup owns:1:true:Equipment Get all of an Endpoints commands and their owning equipment: entity:relations -name NullEndpoint source:*:true:Command owns:1:false:Equipment Stars can be used as a wildcard for depth and types.

1.12.3.2.?Syntax

entity:relations [options] [Entity Type] Relationship descriptor

1.12.3.3.?Arguments

Entity Type Entity name.
Relationship descriptor [relationship]:[depth]:[child]:[type1,type2,..]

1.12.3.4.?Options

-name First argument is a specific entity name

1.12.4.?entity:tree

1.12.4.1.?Description

Prints trees based on root type start

1.12.4.2.?Syntax

entity:tree [options] [Entity Type] Relationship Depth types

1.12.4.3.?Arguments

Entity Type Entity name.
Relationship Name of relationship type
Depth Show entities that are up to depth level children from parent.
types List of types we want in returned list

1.12.4.4.?Options

-name First argument is a specific entity name

1.12.5.?entity:type

1.12.5.1.?Description

Lists entities of a certain type.

1.12.5.2.?Syntax

entity:type typeName

1.12.5.3.?Arguments

typeName Entity type name.

1.13.?event

1.13.1.?event:list

1.13.1.1.?Description

Prints all recent events.

1.13.1.2.?Syntax

event:list [options]

1.13.1.3.?Options

-l Limit number of displayed events (defaults to 10)
-t Show only events of type, can be repeated.

1.13.2.?event:publish

1.13.2.1.?Description

Manually create an event

1.13.2.2.?Syntax

event:publish [options] eventType

1.13.2.3.?Arguments

eventType Event Type

1.13.2.4.?Options

-e Entity Name
-a Arguments, need to be of the form "name:value"
-s Subsystem (defaults to proto-shell)

1.13.3.?event:view

1.13.3.1.?Description

Prints details for a specific event.

1.13.3.2.?Syntax

event:view eventId

1.13.3.3.?Arguments

eventId Event Id

1.14.?event-config

1.14.1.?event-config:create

1.14.1.1.?Description

Create or update a single event configuration.

1.14.1.2.?Syntax

event-config:create [options] eventType resourceString

1.14.1.3.?Arguments

eventType Event Type
resourceString Resource string we use to render event messsage

1.14.1.4.?Options

--alarm Treat the event as an alarm.
--log Treat the event as an log.
-s Severity (lower is more severe) (defaults to 4)
--silent If its an alarm make it silent

1.14.2.?event-config:delete

1.14.2.1.?Description

Delete a single event configuration.

1.14.2.2.?Syntax

event-config:delete eventType

1.14.2.3.?Arguments

eventType Event Type

1.14.3.?event-config:list

1.14.3.1.?Description

Prints all event configurations.

1.14.3.2.?Syntax

event-config:list

1.14.4.?event-config:view

1.14.4.1.?Description

Prints a single event configuration.

1.14.4.2.?Syntax

event-config:view eventType

1.14.4.3.?Arguments

eventType Event Type

1.15.?login

1.15.1.?login:list

1.15.1.1.?Description

List active logins

1.15.1.2.?Syntax

login:list [options]

1.15.1.3.?Options

--version Search by clientVersion
--stat So per-agent summary
--own Search for our own tokens
--agent Search by agent name
--revoked Include revoked tokens

1.15.2.?login:revoke

1.15.2.1.?Description

Revoke an auth token

1.15.2.2.?Syntax

login:revoke [options]

1.15.2.3.?Options

--others Revoke all of this agents other tokens
--id Revoke a specific auth token
--agent Revoke all tokens for a specific agent

1.16.?meas

1.16.1.?meas:block

1.16.1.1.?Description

Block a point so it does recieve measurement updates from the field (aka. Not in Service).

1.16.1.2.?Syntax

meas:block name

1.16.1.3.?Arguments

name Measurement name.

1.16.2.?meas:download

1.16.2.1.?Description

Download all measurements for a point to CSV file. Ex: meas:download -s "2012-02-10 00:00" PV.csv LV.Line_PV.kW_tot

1.16.2.2.?Syntax

meas:download [options] fileName pointNames

1.16.2.3.?Arguments

fileName Absolute filename to write csv file.
pointNames Point names.

1.16.2.4.?Options

-s Start time as "yyyy-MM-dd HH:mm" or milliseconds, defaults to 0
-oh Offest Hours, number of hours before end time
-e End time as "yyyy-MM-dd HH:mm" or milliseconds, defaults to now
-om Offest Minutes, number of minutes before end time
-c Columns in CSV file (defaults to name,longTime,shortTime,value,shortQuality,longQuality,unit)

1.16.3.?meas:endpoint

1.16.3.1.?Description

Prints measurements under an endpoint.

1.16.3.2.?Syntax

meas:endpoint [options] endpointName

1.16.3.3.?Arguments

endpointName Endpoint name.

1.16.3.4.?Options

-w Watch measurement updates and continuously display new values coming in. Press cntrl-c to stop.

1.16.4.?meas:from

1.16.4.1.?Description

Prints measurements under an entity.

1.16.4.2.?Syntax

meas:from [options] parentId

1.16.4.3.?Arguments

parentId Parent entity name.

1.16.4.4.?Options

-w Watch measurement updates and continuously display new values coming in. Press cntrl-c to stop.

1.16.5.?meas:hist

1.16.5.1.?Description

Prints recent history for a point.

1.16.5.2.?Syntax

meas:hist name [count]

1.16.5.3.?Arguments

name Measurement name.
count Number of previous updates. (defaults to 10)

1.16.6.?meas:list

1.16.6.1.?Description

Prints all measurements or a specified measurement.

1.16.6.2.?Syntax

meas:list [options] [name]

1.16.6.3.?Arguments

name Measurement name.

1.16.6.4.?Options

-block Show only operator blocked measurements (aka. Not in Service).
-good Show only measurements with validity good.
-override Show only overridden measurements (aka. Substituted).
-invalid Show only measurements with validity invalid.
-questionable Show only measurements with validity questionable.

1.16.7.?meas:override

1.16.7.1.?Description

Override a blocked point with the specified measurement.

1.16.7.2.?Syntax

meas:override name value

1.16.7.3.?Arguments

name Measurement name.
value Override value.

1.16.8.?meas:override-list

1.16.8.1.?Description

View all overridden measurements

1.16.8.2.?Syntax

meas:override-list

1.16.9.?meas:stat

1.16.9.1.?Description

Prints measurement statistics.

1.16.9.2.?Syntax

meas:stat name

1.16.9.3.?Arguments

name Measurement name.

1.16.10.?meas:unblock

1.16.10.1.?Description

Unblock a point so it recieves measurement updates from the field (aka. In Service).

1.16.10.2.?Syntax

meas:unblock name

1.16.10.3.?Arguments

name Measurement name.

1.16.11.?meas:view

1.16.11.1.?Description

Prints a user specified list of measurements

1.16.11.2.?Syntax

meas:view [options] Point names

1.16.11.3.?Arguments

Point names Names of all of the points we want to display

1.16.11.4.?Options

-w Watch measurement updates and continuously display new values coming in. Press cntrl-c to stop.

1.17.?metrics

1.17.1.?metrics:calcs

1.17.1.1.?Description

Add calculations on metrics points

1.17.1.2.?Syntax

metrics:calcs [options] key

1.17.1.3.?Arguments

key Key to do operation on (needs wildcard "*" to be useful)

1.17.1.4.?Options

-dontSave Dont run the same calc on future metrics reads
-sumCount Sum up and count matching metrics generating "key.Sum" and "key.Count" points (defaults to true)

1.17.2.?metrics:filters

1.17.2.1.?Description

Add filters to what metrics are displayed

1.17.2.2.?Syntax

metrics:filters [options] [filterKey]

1.17.2.3.?Arguments

filterKey Key to add to filter list

1.17.2.4.?Options

-remove Remove a key from the list
-clear Clear the set filter list

1.17.3.?metrics:metrics

1.17.3.1.?Description

Output the current metrics the channels setup in metrics:outputs

1.17.3.2.?Syntax

metrics:metrics

1.17.4.?metrics:outputs

1.17.4.1.?Description

Output the metrics to a csv file (metrics.csv by default)

1.17.4.2.?Syntax

metrics:outputs [options] [csvFile]

1.17.4.3.?Arguments

csvFile Path to CSV file to generate

1.17.4.4.?Options

-quiet Suppress screen output

1.17.5.?metrics:rates

1.17.5.1.?Description

Get metrics twice seperated by X millis and calcs rates

1.17.5.2.?Syntax

metrics:rates [collectionTime]

1.17.5.3.?Arguments

collectionTime Time to wait for rate calculation (seconds) (defaults to 10)

1.17.6.?metrics:reset

1.17.6.1.?Description

Reset metrics counters

1.17.6.2.?Syntax

metrics:reset

1.17.7.?metrics:throughput

1.17.7.1.?Description

Displays current state and overall rate for a key.

1.17.7.2.?Syntax

metrics:throughput [options] key

1.17.7.3.?Arguments

key Key to do operation on (usually needs wildcard "*" to be useful)

1.17.7.4.?Options

-time Dont run the same calc on future metrics reads (defaults to 10)

1.18.?point

1.18.1.?point:commands

1.18.1.1.?Description

Lists points with associated commands.

1.18.1.2.?Syntax

point:commands [options] [pointName]

1.18.1.3.?Arguments

pointName Point name.

1.18.1.4.?Options

-a Show points that don't have commands

1.18.2.?point:list

1.18.2.1.?Description

Prints point information

1.18.2.2.?Syntax

point:list

1.19.?reef

1.19.1.?reef:benchmark

1.19.1.1.?Description

Runs the benchmark suite

1.19.1.2.?Syntax

reef:benchmark [configFile]

1.19.1.3.?Arguments

configFile Configuration file path (defaults to etc/org.totalgrid.reef.benchmarks.cfg)

1.19.2.?reef:headers

1.19.2.1.?Description

Displays and allows updating of the client headers.

1.19.2.2.?Syntax

reef:headers [options]

1.19.2.3.?Options

-t Change the timeout (must be greater than 0, in milliseconds) (defaults to -1)
-r Reset headers to default state.
-l Change the result limit, (must be greater than 0) (defaults to -1)

1.19.3.?reef:load

1.19.3.1.?Description

Loads equipment and communication models

1.19.3.2.?Syntax

reef:load [options] configFile

1.19.3.3.?Arguments

configFile Configuration file name with path

1.19.3.4.?Options

-dryRun Just analyze file, don't actually send data to reef
-benchmark Override endpoint protocol to force all endpoints in configuration file to be simulated
-batchSize Upload batch size, 0 disables all batching (defaults to 25)
-ignoreWarnings Still attempt upload even if configuration is invalid

1.19.4.?reef:login

1.19.4.1.?Description

Authorizes a user with a remote Reef node, asks for password interactively

1.19.4.2.?Syntax

reef:login [options] [userName]

1.19.4.3.?Arguments

userName User name, if not specified we try looking for user settings in etc directory.

1.19.4.4.?Options

-p password for non-interactive scripting. WARNING password will be visible in command history

1.19.5.?reef:logout

1.19.5.1.?Description

Logs out the current user

1.19.5.2.?Syntax

reef:logout

1.19.6.?reef:unload

1.19.6.1.?Description

Remove all equipment, endpoints and messages

1.19.6.2.?Syntax

reef:unload [options]

1.19.6.3.?Options

-batchSize Upload batch size, 0 disables all batching.

1.19.7.?reef:whoami

1.19.7.1.?Description

Prints out the currently logged in user details.

1.19.7.2.?Syntax

reef:whoami

1.20.?trigger

1.20.1.?trigger:trigger

1.20.1.1.?Description

Lists triggers

1.20.1.2.?Syntax

trigger:trigger [Point Name]

1.20.1.3.?Arguments

Point Name Point name.

Chapter?2.?Examples

2.1.?Events

Example?2.1.?Viewing Events

karaf@root> event:list -l 5

Uid      Type                  Alarm     Sev     User     Entity
-------------------------------------------------------------------
3980  |  System.UserLogin   |  true   |  8    |  core  |          |
3981  |  System.UserLogin   |  true   |  8    |  core  |          |
3984  |  System.UserLogin   |  true   |  8    |  core  |          |
4077  |  System.UserLogout  |  true   |  8    |  core  |          |
4087  |  System.UserLogin   |  true   |  8    |  core  |          |

->  Message             Time
->  -------------------------------------
->  User logged in   |  13:57:45 06-16-11
->  User logged in   |  13:57:45 06-16-11
->  User logged in   |  13:57:59 06-16-11
->  User logged out  |  14:03:22 06-16-11
->  User logged in   |  14:03:38 06-16-11

karaf@root> event:list -t System.UserLogin -l 5

Uid      Type                  Alarm     Sev     User     Entity
-------------------------------------------------------------------
3980  |  System.UserLogin   |  true   |  8    |  core  |          |
3981  |  System.UserLogin   |  true   |  8    |  core  |          |
3984  |  System.UserLogin   |  true   |  8    |  core  |          |
4077  |  System.UserLogout  |  true   |  8    |  core  |          |
4087  |  System.UserLogin   |  true   |  8    |  core  |          |

->  Message             Time
->  -------------------------------------
->  User logged in   |  13:57:45 06-16-11
->  User logged in   |  13:57:45 06-16-11
->  User logged in   |  13:57:59 06-16-11
->  User logged out  |  14:03:22 06-16-11
->  User logged in   |  14:03:38 06-16-11


Example?2.2.?Creating a test event with custom error string

karaf@root> event-config:create Test.Event "Test event with attrs: {a} {b}"

Type          Designation     Sev     Audible     Resources
--------------------------------------------------------------------------------
Test.Event  |  EVENT        |  4    |  true     |  Test event with attrs: {a} {b}

karaf@root> event:publish -a a:one -a b:two Test.Event

Uid         | 4241
Type        | Test.Event
Alarm       | false
Sev         | 4
User        | core
Subsystem   | proto-shell
Entity      |
Rendered    | Test event with attrs: one two
Time        | 14:13:58 06-16-11
Device Time |
Arguments   | 2
b           | two                            | STRING
a           | one                            | STRING


karaf@root> event-config:delete Test.Event

Type          Designation     Sev     Audible     Resources
--------------------------------------------------------------------------------
Test.Event  |  EVENT        |  4    |  true     |  Test event with attrs: {a} {b}


Example?2.3.?Standard Event Configurations

karaf@root> event-config:list

Type                         Designation     Sev
---------------------------------------------------
System.UserLogin          |  ALARM        |  8    |
System.UserLoginFailure   |  ALARM        |  8    |
System.UserLogout         |  ALARM        |  8    |
System.SubsystemStarting  |  ALARM        |  8    |
System.SubsystemStarted   |  ALARM        |  8    |
System.SubsystemStopping  |  ALARM        |  8    |
System.SubsystemStopped   |  ALARM        |  8    |
Scada.ControlExe          |  ALARM        |  8    |
Scada.UpdatedSetpoint     |  ALARM        |  8    |
Scada.OutOfNominal        |  ALARM        |  8    |
Scada.OutOfReasonable     |  ALARM        |  8    |
Scada.SetOverride         |  ALARM        |  8    |
Scada.SetNotInService     |  ALARM        |  8    |
Scada.RemoveOverride      |  ALARM        |  8    |
Scada.RemoveNotInService  |  ALARM        |  8    |

->  Audible     Resources
->  -----------------------------------------------------
->  false    |  User logged in
->  false    |  User login failed {reason}
->  false    |  User logged out
->  false    |  Subsystem is starting
->  false    |  Subsystem has started
->  false    |  Subsystem is stopping
->  false    |  Subsystem has stopped
->  false    |  Executed control {command}
->  false    |  Updated setpoint {command} to {value}
->  false    |  Measurement not in nominal range: {value}
->  false    |  Measurement not reasonable: {value}
->  false    |  Point overridden
->  false    |  Point removed from service
->  false    |  Removed override on point
->  false    |  Returned point to service