The OpenNaaS server console has a custom set of commands implemented in order to provide the user with access to different OpenNaaS components.
It gives access to ResourceManager, ProtocolSessionManager, resources and capabilities among other components.
Commands per component
IP Capability commands
COMMAND | DESCRIPTION | SYNTAX | ARGUMENTS | OPTIONS |
List all the interfaces of a given resource | resourceType:resourceName |
| ||
Set a IP in a the interface of a given resource | chassis:setInterface resource type:name interface IP MASK | resourceType:resourceName |
|
ROADM Connections Capability commands
COMMAND | DESCRIPTION | SYNTAX | ARGUMENTS | OPTIONS |
Shows given resource connections | resourceType:resourceName |
| ||
Shows given resource cards and connections information | connections:getInventory [options] resourceType:resourceName | resourceType:resourceName | --refresh, -r Refresh model prior to show information | |
connections:makeConnection | Makes a connection between given ports af given resource, and configures which lambda enters and which gets out of the connection | connections:makeConnection resourceType:resourceName sourceport inputlambda porttarget outputlambda | resourceType:resourceName sourceport | |
connections:removeConnection | Removes a connection between given ports af given resource | connections:removeConnection resourceType:resourceName sourceport inputlambda porttarget outputlambda | resourceType:resourceName The resource id to make connection. sourceport Connection source port (input) inputlambda Input lambda (wavelength in nm) porttarget Connection target port (output) outputlambda Output lambda (wavelength in nm) |
Description
All the capability operations which work above a resource have the same work flow. A capability command is sent to the resource's queue and it will be executed
Monitoring Capability commands
COMMAND | DESCRIPTION | SYNTAX | ARGUMENTS | OPTIONS |
List alarms of given resource (all alarms if no resource is given) | resourceType:resourceName |
| ||
Clear alarms | resourceType:resourceName |
Description
The alarm commands include operations to list and clear the received alarms.