Skip to content

Instantly share code, notes, and snippets.

View eCompassion's full-sized avatar
🎯
Focusing

Evie Blackwell eCompassion

🎯
Focusing
View GitHub Profile
Delete VCP ports while switches are stacked
Evidently, Juniper disregards it's own terminology "fpc" in favor of going straight to "pic" in referring to each switch in the stack.
Odd...
Commands used to delete VCP on ports where two switches are stacked:
"fpc0" (switch 0)
QSFP 0: request virtual-chassis vc-port delete pic-slot 0 member 1 port 0
@TheJJ
TheJJ / idracclient.py
Last active April 11, 2024 17:26
Dell iDRAC linux/mac/windows client launcher
#!/usr/bin/env python3
"""
Dell iDRAC client launcher for Linux, macOS and Windows.
probably works with Dell iDRAC 6/7/8
Downloads needed Java files and sets up port forwarding via SSH.
example usage: ./idracclient.py -J jumphost.lol.domain srv42-serviceprocessor.lol.domain
for more info, see ./idracclient.py --help
@xbb
xbb / README
Last active May 14, 2024 14:33
IDRAC6 Virtual Console Launcher
Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
You can use the user and password that you use for the web interface.
You need an old JRE... I used 1.7.0_80 from the Server JRE package, also I have tested successfully 1.7.0_79 with MacOS.
You don't need to install it, just extract it or copy the files in "jre" folder.
Open the viewer.jnlp file that you get by launching the virtual console from the web interface with a text editor.
Note the urls to the jar files. Download the main jar file avctKVM.jar and the libs for your operating system and architecture.
Extract the dlls (.so Linux, .jnilib MacOS) from the jar libs.
@widnyana
widnyana / dump.sh
Created June 24, 2016 06:01
Dump Current Nginx Config
# Set pid of nginx master process here
pid=8192
# generate gdb commands from the process's memory mappings using awk
cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory mem_" addrs[1] " 0x" addrs[1] " 0x" addrs[2] ;}END{print "quit"}' > gdb-commands
# use gdb with the -x option to dump these memory regions to mem_* files
gdb -p $pid -x gdb-commands
# look for some (any) nginx.conf text