This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################ | |
# Configure the variables below | |
################################################ | |
# End the directory path with a '\' character # | |
$ExportDataDir = "C:\temp\" | |
#$ZertoServer = "10.232.151.43" #CSM Prod | |
$ZertoServer = "10.162.192.168" #NDC Prod | |
#$ZertoServer = "10.162.192.169" #NDC Dev | |
$ZertoPort = "443" | |
######################################################################################################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import time | |
import re | |
from datetime import datetime | |
def parse_traceroute_output(output): | |
# Adjusted regex pattern to also capture timeout lines (e.g., '* * *') | |
pattern = re.compile(r"(\d+)\s+([\w\.\-]+|\*\s\*\s\*)\s*(?:\(([\d\.]+)\))?\s*([\d\.]+ ms)?") | |
hops = [] | |
for line in output.splitlines(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This netplan yaml is delivered in Azure cloud images to support | |
# attaching and detaching nics after the instance first boot. | |
# Cloud-init otherwise handles initial boot network configuration in | |
# /etc/netplan/50-cloud-init.yaml | |
network: | |
version: 2 | |
ethernets: | |
ephemeral: | |
dhcp4: true | |
match: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
base_server = "192.168.50.60" | |
keycloak_base_url = f"https://{base_server}/auth" # Replace with your Keycloak server URL | |
zvm_api_url = f"https://{base_server}/v1" | |
realm = "zerto" # Replace with your Keycloak realm name | |
client_id = "api-script" | |
client_secret = "fcYMFuA5TkIUwp6b3hDUxim0f32z8erk" # Replace with your client's secret key | |
token_url = f"{keycloak_base_url}/realms/{realm}/protocol/openid-connect/token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
base_server = "192.168.50.60" | |
keycloak_base_url = f"https://{base_server}/auth" # Replace with your Keycloak server URL | |
zvm_api_url = f"https://{base_server}/v1" | |
realm = "zerto" # Replace with your Keycloak realm name | |
client_id = "zerto-client" # Replace with your Keycloak client ID | |
username = "admin" | |
password = "Zertodata987!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define variables | |
$baseServer = "192.168.50.60" | |
$keycloakBaseUrl = "https://$baseServer/auth" # Replace with your Keycloak server URL | |
$zvmApiUrl = "https://$baseServer/v1" | |
$realm = "zerto" # Replace with your Keycloak realm name | |
$client_id = "api-script" | |
$client_secret = "fcYMFuA5TkIUwp6b3hDUxim0f32z8erk" # Replace with your client's secret key | |
$tokenUrl = "$keycloakBaseUrl/realms/$realm/protocol/openid-connect/token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define variables | |
$baseServer = "192.168.50.60" | |
$keycloakBaseUrl = "https://$baseServer/auth" # Replace with your Keycloak server URL | |
$zvmApiUrl = "https://$baseServer/v1" | |
$realm = "zerto" # Replace with your Keycloak realm name | |
$client_id = "zerto-client" # Replace with your Keycloak client ID | |
$username = "admin" | |
$password = "Zertodata987!" | |
$tokenUrl = "$keycloakBaseUrl/realms/$realm/protocol/openid-connect/token" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& console=tty0 console=ttyS0,115200n8/' /etc/default/grub | |
sed -i 's/GRUB_TERMINAL="[^"]*/& console serial/' /etc/default/grub | |
sed -i '/^GRUB_TERMINAL=.*/a GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"\n' /etc/default/grub | |
echo 'add_drivers+=" hv_vmbus hv_netvsc hv_storvsc "' > /etc/dracut.conf.d/50-zerto.conf | |
cat << 'EOF' >> /etc/sysconfig/network/ifcfg-eth99 | |
BOOTPROTO='dhcp' | |
STARTMODE='auto' | |
DHCLIENT_SET_DEFAULT_ROUTE='yes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "2.1" | |
services: | |
plex: | |
image: linuxserver/plex | |
container_name: plex | |
#devices: | |
# - "/dev/dri:/dev/dri" | |
environment: | |
- NVIDIA_VISIBLE_DEVICES=all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCwXf+G4iEuy7faSUWeaSivGWkRuvKvSk1SSxTGvSgYp9/XNOKuK+LHHykwfB3rfZW5WB7zQkR9DVgZCHj6urw1jLZyX4e18AsYUx1Z3S0PGDCf4cgva9rQsfR+EpXTf18uvvjLg/qoHWi5WEBaKTTwiExAhFaGCf+6e0SLnfVG4DKOoDQjqfyqUkY3Q3xj3Y0zdYAEj2HC6vQrtP9eY9FBaovFHedk6ISIXxWDl0HpcdBXgfHNoZbW2ucxEiHlEd/Cr/F3+ErdFlhvusAftiwgCEAg88YvWgJ2+H2oC97TT0mJ6/Kl4XXVQbez+uFf1r2XQNOjY+vUvo3d3PuI6KkGJuAmmgtm5A9R3/Xy4mea88pPDpmbtm0IfgTc27kM87FJtMvjqchwUHkUNxLDLooi7Ke4JhYw1BX5fQ7r2Jwsoc+e0CNjaYyxJ6rJ3NfsL9HMY+nO2upJl2nvvNg6W1/arvThaj68BS4hSTl62eREXb+bEfCwKOMGJew5Zuew6SM= [email protected] |
NewerOlder