Introduction
This document describes how to perform a password reset on the Cisco Telemetry Broker (CTB) appliance.
Prerequisites
Requirements
Cisco recommends that you have knowledge of these topics:
- Basic Linux administration
- Basic Cisco Telemetry Broker architecture
- Console access to the Command Line Interface (CLI) to the desired appliance is necessary to perform the password reset.
Note: This process can only be performed on virtual Broker nodes. Hardware appliances are restricted by secure boot.
Components Used
The information in this document is based on these software and hardware versions:
- CTB Manager node on release 2.0.1.
- CTB Broker node on release 2.0.1.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.
Configure
The password can be performed individually for each user, admin, root, and webadmin.
The web user webadmin is only available for the Manager Node in CTB.
The admin and root CLI users are available in both Manager and Broker Nodes.
Note: The "webadmin" is the recommended name of the first super user account created during initial installation. It is possible that the first user account was named differently during the installation.
Changing the CLI admin password
If you know the current admin password and simply want to change it. This can be done using the sudo ctb-install --config command, while logged in to the CLI as the admin user.



Reset other CLI user passwords
To reset any of the CLI user passwords:
1. Connect to the desired node via console connection.
2. Enter the command sudo shutdown -r now to reboot the node.
3. At the GRUB menu, enter e to open the boot parameters screen. This image shows an example of the GRUB menu:
Example of the GRUB menu in a CTB Node
4. Locate the line that starts with linux . Place the cursor at the end of the line and enter init=/bin/bash. Ensure that there is an space before the aforementioned string. This image shows an example of how the added parameter looks like in the screen:
Parameter screen with the additional option
5. Enter Ctrl+X to boot the node using the configured parameters.
6. Once on the root shell, enter the command mount -n -o remount,rw / the command to remount the root file system. This image displays an example of the output:
Output of the remount command
7. To reset the password of the root user enter the command passwd. To reset the password of the admin user. enter the command passwd admin. Note that the normal requirements for complex passwords remains in place. The next image shows an example of a password reset for both users:
Example of the password reset for both CLI users
8. Press the Ctrl+Alt+Del keys in Windows or the Ctrl+Option+Del keys in Mac to restart the appliance.
Reset the web user password
To reset the webadmin password:
- Connect to the CLI of the Manager Node as
admin, either via SSH or via console.
- Run the command sudo docker exec -it titanium ./manage.py changepassword webadmin to reset the web user password. Note that the normal requirements for complex passwords remains in place.
root@test:/opt/titan/compose# sudo docker exec -it titanium ./manage.py changepassword webadmin
Changing password for user 'webadmin'
Password:
Password (again):
Password changed successfully for user 'webadmin'
Related Information