### Push new app or sync changes with cf push command Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-getting-started Deploys a new application or updates an existing app to Tanzu Hub. Requires prior authentication and targeting of an org-group and space-group. APP-NAME parameter specifies the application identifier. ```bash cf login cf push APP-NAME ``` -------------------------------- ### Push app using manifest file with cf push Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-getting-started Deploys an application using configuration from a manifest.yml file instead of command-line flags. The -f flag specifies a custom manifest path; default behavior searches current working directory. Manifest includes app name, disk limit, and instance count. ```bash cf push -f /path/to/manifest.yml ``` -------------------------------- ### Set Tanzu Hub endpoint and authenticate with cf api and cf login Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-getting-started Alternative authentication method that first specifies the Tanzu Hub endpoint using cf api command before logging in. Useful when preferred to separate endpoint configuration from authentication. ```bash cf api HUB_ENDPOINT cf login ``` -------------------------------- ### Log in to Tanzu Hub using cf login command Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-getting-started Interactive authentication to Tanzu Hub using the Tanzu cf CLI. Requires the HUB_ENDPOINT URL and opens a browser for authentication. Supports targeting specific org-groups and space-groups using optional flags. ```bash cf login -a HUB_ENDPOINT ``` -------------------------------- ### Add HTML Widget Examples Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/monitoring-dashboards Examples of HTML content that can be added to an HTML widget for formatting text, links, and styled content. Supports standard HTML tags and inline CSS. ```html

System Status


All systems operational


View documentation
``` ```html

Important: Maintenance scheduled for Saturday 2:00 AM


``` ```html

Dashboard Guide


Use the filters at the top to select:



  1. Namespace

  2. RabbitMQ Cluster

  3. Time Range



``` -------------------------------- ### Install rclone and jq CLI on Registry VM Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/install-blobstore Installs the rclone and jq command-line tools on the registry VM, which are necessary for data migration tasks. This command assumes an Ubuntu-based system. ```bash sudo apt update && sudo apt install rclone jq ``` -------------------------------- ### Tanzu cf CLI installation bundle directory structure Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-install-cf-cli File structure of the Tanzu CF CLI with Plugins Bundle downloaded from Broadcom support portal. Contains binary and installer files for multiple platforms (Windows, macOS, Linux) and CPU architectures (amd64, arm64), plus repository plugin binaries. ```plaintext ├── cli │ └── │ ├── cf10-cli-binaries-checksums.txt │ ├── cf10-cli-binaries-checksums.txt.asc │ ├── cf10-cli-darwin-amd64.tar.gz │ ├── cf10-cli-darwin-arm64.tar.gz │ ├── cf10-cli-installer-darwin-amd64.pkg │ ├── cf10-cli-installer-darwin-arm64.pkg │ ├── cf10-cli-installer-linux-amd64.deb │ ├── cf10-cli-installer-linux-amd64.rpm │ ├── cf10-cli-installer-linux-arm64.deb │ ├── cf10-cli-installer-linux-arm64.rpm │ ├── cf10-cli-installer-windows-amd64.zip │ ├── cf10-cli-linux-amd64.tar.gz │ ├── cf10-cli-linux-arm64.tar.gz │ ├── cf10-cli-windows-amd64.zip │ └── cf10-cli-windows-arm64.zip ├── metadata.yaml └── plugins └── repo └── ├── tanzu-repo-darwin_amd64 ├── tanzu-repo-darwin_arm64 ├── tanzu-repo-linux_amd64 ├── tanzu-repo-linux_arm64 ├── tanzu-repo-windows_amd64.exe └── tanzu-repo-windows_arm64.exe ``` -------------------------------- ### Example Query with Dynamic Variables Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/monitoring-dashboards This example demonstrates how to construct a dynamic query using variables like rabbitmq_cluster, namespace, and endpoint. These variables, often prefixed with '$', allow for flexible data retrieval based on user-defined or system-provided contexts. The query counts Erlang VM distribution node states, joining with identity information and filtering by specific parameters. It also includes a fallback to 'vector(0)' in case no data is found. ```promql count(erlang_vm_dist_node_state * on(instance, job) group_left(rabbitmq_cluster) rabbitmq_identity_info{rabbitmq_cluster=“**$rabbitmq_cluster** ”, namespace=“**$namespac** e”, rabbitmq_endpoint=“**$endpoint** ”, job!=“pas-otel”}) OR vector(0) ``` -------------------------------- ### Target different org-group and space-group with cf target Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-getting-started Changes the currently targeted org-group and/or space-group after authentication. Used to switch deployment contexts without re-authenticating to Tanzu Hub. ```bash cf target -o ORG-GROUP -s SPACE-GROUP ``` -------------------------------- ### Target UAA Instance Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/foundations-attach-foundation-manual Targets the Operations Manager UAA instance for subsequent commands. Requires the URL of the Operations Manager UI. ```bash uaac target https://OPS-MANAGER-URL/uaa ``` -------------------------------- ### Install cf CLI using Debian/Ubuntu package manager Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-install-cf-cli Install the Tanzu cf CLI on Debian or Ubuntu Linux distributions using the dpkg package manager. This command installs the .deb package and resolves any missing dependencies automatically. ```shell dpkg -i path/to/cf10-cli-installer-*.deb && apt-get install -f ``` -------------------------------- ### Uninstall cf CLI Ruby gem prerequisite Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/cf-cli-install-cf-cli Remove the old cf CLI Ruby gem before installing the new Tanzu cf CLI v10. This is a required prerequisite step to avoid conflicts between gem and binary installations. ```shell gem uninstall cf ``` -------------------------------- ### Log in to UAA Instance Source: https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-hub/10-3/tnz-hub/foundations-attach-foundation-manual Logs into the UAA instance using admin credentials. Requires the Operations Manager admin username and password. ```bash uaac token owner get opsman -s "" ADMIN_USERNAME -p "ADMIN_PASSWORD" ```