MindSphere CLI: mdsp create-event Command


mdsp create-event


mdsp create-event --help

Alternative form:

mc create-event

(The CLI was using mc as default command name in older versions)


create an event in the MindSphere (optional: passkey) *


Parameter list:

Usage: mc create-event|ce [options]

create an event in the MindSphere (optional: passkey) *

  -c, --config      config file with agent configuration
  -r, --cert [privatekey]        required for agents with RSA_3072 profile. create with: openssl genrsa -out private.key 3072
  -i, --assetid         MindSphere asset id  (default: send event to the agent)
  -y, --sourceType   Source Type (default: "MindConnect-Agent")
  -S, --sourceId       Source Id (default: "Monikas-Air-2.fritz.box")
  -O, --source           Source (default: "MindConnect-NodeJs CLI")
  -V, --severity       Severity (20:Error, 30:Warning , 40:information) (default: "20")
  -d, --desc        Event description (default: "CLI created event")
  -t, --timestamp     Timestamp (default: "2022-11-06T01:51:16.184Z")
  -y, --retry            retry attempts before giving up (default: "3")
  -p, --passkey         passkey (optional, event creation uses service credentials *)
  -v, --verbose                  verbose output
  -h, --help                     display help for command


Here are some examples of how to use the mdsp create-event command:


    mdsp create-event 				 create error event with default values and current timestamp
    mdsp ce --desc Warning! --severity 30 	 create warning with description warning
    mdsp ce --desc "custom event" --i 123....4 	 create error event for asset with id 123....4

See MindSphere API documentation for more information about MindSphere APIs.

The content of the community tools and libraries documentation pages is licensed under the MIT License.
Siemens API Notice applies.
Back to top