Skip to content

Instantly share code, notes, and snippets.

View fredless's full-sized avatar
👨‍🚀
far out

Fred Nielsen fredless

👨‍🚀
far out
View GitHub Profile
@fredless
fredless / disable SLM countdown.md
Last active October 8, 2025 22:28
Cisco CUCM hacking

To keep that CUCM 12+ demo license ticking just a little while longer:

  1. Disable SLM:

    chmod 000 /usr/local/cm/bin/SmartLicenseMgr

  2. Prevent DRF from trying to back up SLM (if backups are something that matters to you):

    /usr/local/platform/script/slm/slm_drf_reg.py unregister

@fredless
fredless / linuxshortcuts.sh
Created March 28, 2018 19:24
Quick and dirty Linux shortcuts
# tail most recently modified file in a folder
tail -f `ls -t | head -1`
@fredless
fredless / find_webex_cluster.py
Last active June 17, 2023 12:23
routine to find Webex Meeting site cluster
"""sample module to discover WebEx Meeting site clusters"""
import socket
def findcluster(site_name):
"""accepts provided Webex Meeting URL as string, returns a cluster string via DNS PTR"""
site_ip = socket.gethostbyname(site_name)
site_dns_a = socket.gethostbyaddr(site_ip)
cluster_rawname = site_dns_a[0].rsplit('nebula')[1].rsplit('.webex')[0]
return cluster_rawname
@fredless
fredless / WakeServer.tcl
Created January 28, 2020 23:20
Generate Wake on LAN packet from Cisco IOS Router with VRF
# Based on solution originally provided here https://wiki.tcl-lang.org/page/TclUDP by @Shedi
# Several have adapted this script to Cisco IOS over the years, but I needed to also have it work with VRFs
# Wrapping this up with a 'alias exec WakeServer tclsh WakeServer.tcl' in the router config makes this hyperconvenient
set net [binary format H* [join [split "bc5ff4e65ba7" -:] ""]]
set pkt [binary format c* {0xff 0xff 0xff 0xff 0xff 0xff}]
for {set i 0} {$i < 16} {incr i} {
append pkt $net
}
@fredless
fredless / webex_dc.md
Last active April 28, 2020 11:04
Webex Meetings and Messenger Data Centers

Not official Cisco documentation

Scrapes from various data sources, definitely incomplete, quite likely inaccurate. Additions and corrections gleefully accepted.

- Fred

Code Site Country Type Owner
AMS01 Almere Netherlands Colo Getronics
AMS10 Amsterdam Netherlands iPoP Equinix