Protocol commands
COMMAND | DESCRIPTION | SYNTAX | ARGUMENTS | OPTIONS |
Brings up a live connection from the pool with the given protocol if there is none. | protocols:add resourceType:resourceName protocol | resourceType:resourceName |
| |
Manipulates protocol contexts for used to create new sessions. Call without protocol to list. | protocols:context [options] resourceType:resourceName [protocol] [uri] | resourceType:resourceName authenticationType uri privateKeyPath keyPassphrase | --remove, -r | |
Provide extended information on a protocol session. | protocols:info resourceType:resourceName sessionId | resourceType:resourceName The device owning the session. |
| |
List devices to which we have a live protocol session. | protocols:list [options] [resourceType:resourceName] | resourceType:resourceName | --protocols, -p | |
Brings up a live connection from the pool with the given protocol if there is none. | protocols:purge [resourceType:resourceName] [seconds] | resourceType:resourceName |
| |
Removes a live connection from the pool, closing it. | protocols:remove [options] resourceType:resourceName [sessionId] | resourceType:resourceName | --all, -a |
Description
In OpenNaaS, each resource needs to have linked a protocol to can communicate with the physical device which it virtualises. These list of commands are responsible to save in the OpenNaaS software which type of connection are linked to some resource. For this reason, it exists the protocol commands, protocols:context links these connection parameters. Also, in order to reuse these protocols in other resources, you can use protocols:add. Finally, for the protocol management, it exists: protocols:list, protocols:remove, protocols:info, etc...
Resource commands
COMMAND | DESCRIPTION | SYNTAX | ARGUMENTS | OPTIONS |
Create one or more resources from a given descriptor | resource:create [options] paths or urls | paths or urls | --profile, -p | |
Export the descriptor of a resource to a file | resource:export resourceType:resourceName fileName | resourceType:resourceName |
| |
Provides extended information about one or more resources | resourceType:resourceName |
| ||
List the resources in the platform | resource:list [options] |
| --type, -t | |
Modify one or more existing resources | resource:modify resourceType:resourceName path or url | resourceType:resourceName |
| |
Remove one or more resources from the platform | resourceType:resourceName |
| ||
Start one or more resources | resourceType:resourceName |
| ||
Stop one or more resources | resourceType:resourceName |
|
Profile commands
COMMAND | DESCRIPTION | SYNTAX | ARGUMENTS | OPTIONS |
Provides extended information about one or more profiles | profile:info profile ids | profile ids |
| |
List all available profiles |
|
| ||
Remove a profile from available ones. | profile:remove profileName | profileName |
|