Author: Ciro Iriarte
Created: 2021-11-02
Updated: 2021-11-02
guacamole-reset-user-otp.sh is a quick script to disable OTP for a user for Guacamole (using native OTP module)
Default view
guacamole-reset-user-otp.sh the.userAuthor: Ciro Iriarte
Created: 2025-06-05
Updated: 2025-06-07
nic-xray.sh is a diagnostic script that provides a detailed overview of all physical network interfaces on a Linux system. It displays:
- PCI slot
- Firmware version
- Interface name
- MAC address
- MTU
- Link status (with color)
- Negotiated speed and duplex
- Bond membership (with color)
- LLDP peer information (switch and port)
Originally developed for OpenStack node deployments, it is suitable for any Linux environment.
- Must be run as root
- Required tools:
ethtoollldpctlawk,grep,cat,readlink
- Switch configuration:
- Switch should advertise LLDP messages
- Cisco doesn't include VLAN information by default.
Hint:
lldp tlv-select vlan-name
-
Copy the script to
/usr/local/sbinfor easy access:sudo cp nic-xray.sh /usr/local/sbin/ sudo chmod +x /usr/local/sbin/nic-xray.sh
-
Ensure lldpd service is running to retrieve LLDP information:
sudo systemctl enable --now lldpd
Default view
sudo nic-xray.shShow VLAN information
sudo nic-xray.sh --vlanShow LACP peer information
sudo nic-xray.sh --lacpecho "Sorry, can't share"Author: Ciro Iriarte Created: 2025-06-06 Updated: 2025-06-06
create-ssl-csr.shHelps to create a SSL Certificate Signing Request to be shared with a CA entity.
- Required tools:
openssl
Edit the variables to match your environment and run the script.
./create-ssl-csr.shAuthor: Ciro Iriarte
Created: 2025-09-10
Updated: 2025-09-10
Reports memory usage for KVM-based virtual machines using virsh. It provides host memory usage, per-VM allocation, and total memory consumption.
- Required tools:
virshawk,grep,sed
Run the script on a KVM host with libvirt installed:
./kvm-memory-usage-report.shAuthor: Ciro Iriarte
Created: 2025-09-10
Updated: 2025-09-10
Reports memory usage and optimization metrics for ESXi hosts and virtual machines. Uses native ESXi tools to extract host memory, per-VM allocation, and advanced metrics like ballooning, swapping, compression, and shared memory.
- Must be run directly on the ESXi host (via SSH or shell)
- Required tools:
virshawk,grep,sed
Run the script from the ESXi shell:
./esxi-memory-usage-report.sh