nbictl

package
v8.42.1698085480-SHA-e... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

README

NAME

nbictl - Interact with the Spacetime NBI service from the command line.

SYNOPSIS

nbictl [--context=value] [--config_dir=value] [--help] [-h] <command> [COMMAND OPTIONS] [ARGUMENTS...]

GLOBAL OPTIONS

--config_dir="": Directory to use for configuration. (default: $XDG_CONFIG_HOME/nbictl)

--context="": Context (configuration profile) to reference for connection settings.

--help, -h: show help

COMMANDS

get

Gets the entity with the given type and ID.

--id="": [REQUIRED] ID of entity to delete.

--type, -t="": [REQUIRED] Type of entity to delete. Allowed values: [ANTENNA_PATTERN, BAND_PROFILE, CDPI_STREAM_INFO, COMPUTED_MOTION, DEVICES_IN_REGION, DRAIN_PROVISION, INTENT, INTERFACE_LINK_REPORT, INTERFERENCE_CONSTRAINT, MOTION_DEFINITION, NETWORK_NODE, NETWORK_STATS_REPORT, PLATFORM_DEFINITION, PROPAGATION_WEATHER, SERVICE_REQUEST, STATION_SET, SURFACE_REGION, TRANSCEIVER_LINK_REPORT]

create

Create one or more entities described in textproto files.

--files, -f="": [REQUIRED] Glob of textproto files that represent one or more Entity messages.

update

Updates one or more entities described in textproto files.

--files, -f="": [REQUIRED] Glob of textproto files that represent one or more Entity messages.

list

Lists all entities of a given type.

--type, -t="": [REQUIRED] Type of entities to query. Allowed values: [ANTENNA_PATTERN, BAND_PROFILE, CDPI_STREAM_INFO, COMPUTED_MOTION, DEVICES_IN_REGION, DRAIN_PROVISION, INTENT, INTERFACE_LINK_REPORT, INTERFERENCE_CONSTRAINT, MOTION_DEFINITION, NETWORK_NODE, NETWORK_STATS_REPORT, PLATFORM_DEFINITION, PROPAGATION_WEATHER, SERVICE_REQUEST, STATION_SET, SURFACE_REGION, TRANSCEIVER_LINK_REPORT]

delete

Deletes the entity with the given type and ID.

--id="": [REQUIRED] ID of entity to delete.

--timestamp, --commit_time="": [REQUIRED] Commit timestamp of entity to delete. (default: 0)

--type, -t="": [REQUIRED] Type of entity to delete. Allowed values: [ANTENNA_PATTERN, BAND_PROFILE, CDPI_STREAM_INFO, COMPUTED_MOTION, DEVICES_IN_REGION, DRAIN_PROVISION, INTENT, INTERFACE_LINK_REPORT, INTERFERENCE_CONSTRAINT, MOTION_DEFINITION, NETWORK_NODE, NETWORK_STATS_REPORT, PLATFORM_DEFINITION, PROPAGATION_WEATHER, SERVICE_REQUEST, STATION_SET, SURFACE_REGION, TRANSCEIVER_LINK_REPORT]

Gets link budget details

--analysis_end_timestamp="": An RFC3339 formatted timestamp for the end of the interval to evaluate the signal propagation. If unset, the signal propagation is evaluated at the instant of the analysis_start_timestamp.

--analysis_start_timestamp="": An RFC3339 formatted timestamp for the beginning of the interval to evaluate the signal propagation. Defaults to the current local timestamp.

--band_profile_id="": The Entity ID of the BandProfile used for this link.

--explain_inaccessibility: If true, the server will spend additional computational time determining the specific set of access constraints that were not satisfied and including these reasons in the response.

--input_file="": A path to a textproto file containing a SignalPropagationRequest message. If set, it will be used as the request to the SignalPropagation service. If unset, the request will be built from the other flags.

--output_file="": Path to a textproto file to write the response. If unset, defaults to stdout. (default: /dev/stdout)

--reference_data_timestamp="": An RFC3339 formatted timestamp for the instant at which to reference the versions of the platforms. Defaults to analysis_start_timestamp. (default: analysis_start_timestamp)

--spatial_propagation_step_size="": The analysis step size for spatial propagation metrics. (default: 1m)

--step_size="": The analysis step size and the temporal resolution of the response. (default: 1m)

--target_platform_id="": The Entity ID of the PlatformDefinition that represents the target. Leave unset if the antenna is fixed or non-steerable, in which case coverage calculations will be returned.

--target_transceiver_model_id="": The ID of the transceiver model on the target.Leave unset if the antenna is fixed or non-steerable, in which case coverage calculations will be returned.

--tx_platform_id="": The Entity ID of the PlatformDefinition that represents the transmitter.

--tx_transceiver_model_id="": The ID of the transceiver model on the transmitter.

generate-keys

Generate RSA keys to use for authentication with the Spacetime APIs.

After creating the Private-Public keypair, you will need to request API access by sharing the .crt file (a self-signed x509 certificate containing the public key) with Aalyria to receive the USER_ID and a KEY_ID needed to complete the nbictl configuration. Only share the public certificate (.crt) with Aalyria or third-parties. The private key (.key) must be protected and should never be sent by email or communicated to others.

--country="": Country of certificate.

--dir, --directory="": Directory to store the generated RSA keys in. (default: ~/.config/nbictl/keys)

--location="": Location of certificate.

--org, --organization="": [REQUIRED] Organization of certificate.

--state="": State of certificate.

set-config

Sets or updates a configuration profile that contains NBI connection settings. You can create multiple configs by specifying the name of the configuration using the --context flag (defaults to "DEFAULT").

--key_id="": Key ID associated with the private key provided by Aalyria.

--priv_key="": Path to the private key to use for authentication.

--transport_security="": Transport security to use when connecting to the NBI service. Allowed values: [insecure, system_cert_pool]

--url="": URL of the NBI endpoint.

--user_id="": User ID associated with the private key provided by Aalyria.

grpcurl

Provides curl-like equivalents for interacting with the NBI.

describe

Takes an optional fully-qualified symbol (service, enum, or message). If provided, the descriptor for that symbol is shown. If not provided, the descriptor for all exposed or known services are shown.

list

Takes an optional fully-qualified service name. If provided, lists all methods of that service. If not provided, all exposed services are listed.

call, invoke

Takes a fully-qualified method name in 'service.method' or 'service/method' format. Invokes the method using the provided request body.

--format, -f="": Protobuf format to use for input and output. Allowed values: [text, json] (default: json)

--request, -r="": File containing the request to make encoded in the selected --format. Defaults to -, which uses stdin. (default: -)

help, h

Shows a list of commands or help for one command

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App() *cli.App

func Create

func Create(appCtx *cli.Context) error

func Delete

func Delete(appCtx *cli.Context) error

func GRPCCall

func GRPCCall(appCtx *cli.Context) error

func GRPCDescribe

func GRPCDescribe(appCtx *cli.Context) error

func GRPCDescribeServices

func GRPCDescribeServices(appCtx *cli.Context) error

func GRPCDescribeSymbol

func GRPCDescribeSymbol(appCtx *cli.Context, symbol string) error

func GRPCList

func GRPCList(appCtx *cli.Context) error

func GRPCListMethods

func GRPCListMethods(appCtx *cli.Context, svc string) error

func GRPCListServices

func GRPCListServices(appCtx *cli.Context) error

func GenerateKeys

func GenerateKeys(appCtx *cli.Context) error

func Get

func Get(appCtx *cli.Context) error

func GetLinkBudget

func GetLinkBudget(appCtx *cli.Context) error

func List

func List(appCtx *cli.Context) error

func SetConfig

func SetConfig(appCtx *cli.Context) error

func Update

func Update(appCtx *cli.Context) error

Types

type RSAKeyPath

type RSAKeyPath struct {
	PrivateKeyPath  string
	CertificatePath string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL