Skip to content

ciroiriarte/misc-scripts

Repository files navigation

🔍 guacamole-reset-user-otp.sh

Author: Ciro Iriarte
Created: 2021-11-02 Updated: 2021-11-02

📝 Description

guacamole-reset-user-otp.sh is a quick script to disable OTP for a user for Guacamole (using native OTP module)

🚀 Usage

Default view

guacamole-reset-user-otp.sh the.user

🔍 nic-xray.sh

Author: Ciro Iriarte
Created: 2025-06-05
Updated: 2025-06-07

📝 Description

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.


⚙️ Requirements

  • Must be run as root
  • Required tools:
    • ethtool
    • lldpctl
    • awk, grep, cat, readlink
  • Switch configuration:
    • Switch should advertise LLDP messages
    • Cisco doesn't include VLAN information by default. Hint:
      lldp tlv-select vlan-name

💡 Recommendations

  • Copy the script to /usr/local/sbin for 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

🚀 Usage

Default view

sudo nic-xray.sh

Show VLAN information

sudo nic-xray.sh --vlan

Show LACP peer information

sudo nic-xray.sh --lacp

📤 Output Example

echo "Sorry, can't share"

🔍 create-ssl-csr.sh

Author: Ciro Iriarte Created: 2025-06-06 Updated: 2025-06-06

📝 Description

create-ssl-csr.shHelps to create a SSL Certificate Signing Request to be shared with a CA entity.


⚙️ Requirements

  • Required tools:
    • openssl

🚀 Usage

Edit the variables to match your environment and run the script.

./create-ssl-csr.sh

About

Various scripts to automate tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages