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
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 |
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
#!/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 |
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
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. |
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
# 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 |