wc - Convenience command
This command prints number of entities, subscriptions, registrations, or types.
Commands
- Print number of entities
- Print number of subscription
- Print number of registrations
- Print number of types
Common Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--service VALUE, -s VALUE | FIWARE Service VALUE |
--path VALUE, -p VALUE | FIWARE ServicePath VALUE |
--help | show help (default: true) |
Print number of entities
This command prints number of entities.
ngsi wc [common options] entities [options]
Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--service VALUE, -s VALUE | FIWARE Service VALUE |
--path VALUE, -p VALUE | FIWARE ServicePath VALUE |
--type VALUE, -t VALUE | entity type |
--link VALUE, -L VALUE | @context VALUE (LD) |
--skipForwarding | skip forwarding to CPrs (v2) (default: false) |
--help | show help (default: true) |
Examples
Example 1
ngsi wc --host orion entities
3606
Example 2
ngsi wc --host orion entities --type EvacuationSpace
231
Print number of subscriptions
This command prints number of subscriptions.
ngsi wc [common options] subscriptions
Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--service VALUE, -s VALUE | FIWARE Service VALUE |
--path VALUE, -p VALUE | FIWARE ServicePath VALUE |
--help | show help (default: true) |
Examples
Example 1
ngsi wc --host orion subscriptions
2
Print number of registrations
This command prints number of registrations.
ngsi wc [common options] registrations
Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--service VALUE, -s VALUE | FIWARE Service VALUE |
--path VALUE, -p VALUE | FIWARE ServicePath VALUE |
--help | show help (default: true) |
Examples
Example 1
ngsi wc --host orion registrations
1
Print number of types
This command will print number of types.
ngsi wc [common options] types
Options
Options | Description |
---|---|
--host VALUE, -h VALUE | broker or server host VALUE (required) |
--service VALUE, -s VALUE | FIWARE Service VALUE |
--path VALUE, -p VALUE | FIWARE ServicePath VALUE |
--help | show help (default: true) |
Examples
Example 1
ngsi wc --host orion types
16