Skip to content

Instantly share code, notes, and snippets.

@f5-rahm
f5-rahm / cliscript_xfer.sh
Created January 31, 2024 20:36
BIG-IP cli script transfer
#!/bin/bash
# Check for the correct number of arguments
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <script_name> <source_IP> <destination_IP>"
exit 1
fi
script_name="$1"
source_ip="$2"
@f5-rahm
f5-rahm / lbu.sh
Created March 7, 2024 22:03
listing backups for BIG-IP Next instances on Central Manager
#!/bin/bash
# Get volume name
volname=$(kubectl get pvc mbiq-local-storage-pv-claim -o yaml | grep "volumeName:" | awk '{print $2}')
if [[ -z "$volname" ]]; then
echo "volumeName could not be found."
exit 1
fi
import os
def find_matching_file(smartsheet_filename, input_filename, directory):
# Normalize input filenames by converting to lowercase and removing .mp4 if present
def normalize_filename(filename):
filename = filename.lower().rstrip('.mp4') # Remove trailing ".mp4" (case-insensitive)
return filename
normalized_smart_filename = normalize_filename(smartsheet_filename)
normalized_input_filename = normalize_filename(input_filename)