How to Use the Juniper BNG CUPS Controller Utility Commands
SUMMARY After you have installed Juniper BNG CUPS Controller (BNG CUPS Controller), you can perform numerous administrative functions.
Access Juniper BNG CUPS Controller Utility Commands
You can use the BNG CUPS Controller utility script (dbng
) to administer
the application and to access the CLI that you use for configuring operations. The BNG
CUPS Controller installation places the utility script in
/usr/local/bin.
The dbng
utility script performs the tasks you need to do to manage BNG
CUPS but masks the complexity of the kubectl
command.
This masking of the kubectl
commands simplifies your administrative
duties.
The dbng
utility script uses the Kubernetes kubectl
utility commands to do the following:
- Create and delete objects.
- Conduct interactive sessions with pod containers.
- Display the status of the BNG CUPS Controller objects.
Table 1
lists the commands that you can invoke with the dbng
utility script and
describes the action that each command initiates.
Command Name |
Action |
---|---|
|
Clean up unneeded releases and Docker cache. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Gives you access to the CLI that you can use to configure BNG CUPS Controller features. This command offers the following options:
|
|
Displays the available contexts for control with BNG CUPS Controller. This command offers the following options:
|
|
Deploys a new control plane instance (CPi) pod. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Removes a control plane instance (CPi) pod. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Displays the IP addresses of every service with an external IP address. This command offers the following options:
|
|
Links a cluster to a specific software version. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Renames a context. Does not effect the currently running BNG CUPS Controller on the cluster. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Restarts a specific BNG CUPS Controller service. To run
this command, you need sudo root privileges. This command offers the following options:
|
|
Upgrade a BNG CUPS Controller service. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Sets up the BNG CUPS Controller application as part of the installation process. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Connects you to a running microservice. This command offers the following options:
|
|
Starts a specific BNG CUPS Controller service. To run this command, you need sudo root privileges. This command offers the following option:
|
|
Displays the current status of the BNG CUPS Controller services. This command offers the following options:
|
|
Stop all BNG CUPS Controller services. To run this command, you need sudo root privileges. This command offers the following option:
|
|
Provides the status of the storage drivers for BNG CUPS Controller. This command offers the following options:
|
|
Unlink components associated with the context. To run this command, you need sudo root privileges. This command offers the following options:
|
|
Displays the version of the following:
This command offers the following options:
|
Use the following general syntax to issue a command:
-
For a short option:
$ dbng command-name -option
-
For a long option:
$ dbng command-name ––option
To display a list of available commands with a brief description, use either the
h
or help
option:
$ dbng -h
$ dbng --help
To display the options for a specific command:
$ dbng command-name -h
Start or Stop BNG CUPS Controller Services
Use the dbng
utility script to start or stop all BNG CUPS Controller
services.
-
To start all BNG CUPS Controller services:
$ sudo -E dbng rollout --context context-name
-
To stop all BNG CUPS Controller services:
$ sudo -E dbng stop --context context-name
Check the Status of BNG CUPS Controller Services
Use the dbng status
utility script to check the status of each BNG CUPS
Controller service (functional component) listed inTable 2. The status shows whether a service is running, has exited, or has not
started. It also displays the service name on the Kubernetes pod. You can compare uptime
for the services to quickly see whether any service has been restarted.
Service |
Description |
---|---|
cpi-label | The BNG CUPS Controller instance service—Implements the
subscriber management control plane, which includes control plane protocols;
authentication, authorization, and accounting (AAA); and supporting
infrastructure. The label is defined by you, when you run
the |
scache | The state cache service—Provides an on-cluster backing
storage for subscriber service states generated by the cp
service. Use this service for state recovery in the event of a restart of the
cp service. |
To check the status of controller services, display the service status:
$ dbng status
For example:
user@host $ dbng status --detail --context context-name MICROSERVICE POD STATE RESTARTS UPTIME NODE scache scache-pod-7f646d56dc-w88sg Running 0 0:00:38.959603 example-1.juniper.net
Juniper BNG CUPS Logging
Juniper BNG CUPS uses the Broadband Edge (BBE) Event Collection and Visualization application for logging purposes.
BBE Event Collection and Visualization collects syslog events and records them in a time-series database. You can view the recorded events through the BBE Event Collection and Visualization Dashboard. The BBE Event Collection and Visualization Dashboard is a GUI-based visualization tool that enables you to view recorded events according to a defined filter, which can be within a specific time range. The Dashboard also provides powerful search and visualization tools through which you can correlate recoded events from multiple sources. To install BBE Event Collection and Visualization, see Broadband Edge Event Collection and Visualization Installation Guide.
Uninstall and Remove BNG CUPS Controller
Use the dbng
utility script to uninstall the BNG CUPS Controller
configuration. The unlink
command reverts the actions you performed when
setting up BNG CUPS Controller. This script returns BNG CUPS Controller to the state it
was in immediately after you installed the application but before you did any setup
configuration.
To uninstall BNG CUPS Controller:
How to Access BNG CUPS Controller Configuration and Operational Commands
- Access the BNG CUPS Controller CLI
- Access and Use CLI Configuration Statements
- Access and Use CLI Operational Commands
Access the BNG CUPS Controller CLI
You use the BNG CUPS Controller command-line interface (CLI) to configure BNG CUPS Controller and to monitor its operations. This section describes how to access the CLI.
To access the BNG CUPS Controller CLI prompt:
Access and Use CLI Configuration Statements
You use configuration statements to configure, set, manage, and monitor BNG CUPS Controller properties.
To configure BNG CUPS Controller components:
Access and Use CLI Operational Commands
You use operational commands to display the current status of Juniper BNG CUPS. You enter operational commands to monitor and to troubleshoot the BNG CUPS Controller and the BNG User Planes.
To monitor BNG CUPS Controller, view BNG CUPS Controller configuration and statistics, or run certain operations manually: