wc - Convenience command

This command prints number of entities, subscriptions, registrations, or types.

Commands

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)

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

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

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

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