Shutting Down an AHV Cluster for Maintenance
1. Shutdown all the user VMs in the Nutanix cluster.
2. Stop the Nutanix cluster. a. Stopping the Nutanix Cluster
Log on to any Controller VM using SSH with the Nutanix credentials and run the following command to stop the Nutanix cluster: #cluster stop
Confirm using that the command has stopped the services successfully before continuing :...
Friday, February 28, 2025
Thursday, February 27, 2025
Nutanix : Reset Prism stuck/incomplete task
1. SSH to Cluster of CVM IP
2. Enter the following to list running/failed tasks
#ecli task.list include_completed=false
3. Enter the following to cancel required task
#ergon_update_task --task_uuid='ENTER_TASK_UUID_HERE' --task_status=succeeded
4. Enter “Y” – Remember you do so at you own risk
5. Enter the following to confirm task have been completed/failed
#ecli task.list include_completed=fals...
Tuesday, December 31, 2024
Install Oracle Instant Client (oci8) for PHP5.6 on Ubuntu 22.04
*make sure php5.6 is already install 1. Install Basic and the SDK Instant Client packages. Download from OTNDownload version 12.1.0.2.0. This file is required:instantclient-basic-linux.x64-12.1.0.2.0.zipinstantclient-sdk-linux.x64-12.1.0.2.0.zip2. Install OCI8 version oci8-2.0.10. Download from pecl.php.net3. Manual install OCI8 #tar -xzf oci8-2.0.10.tgz#cd oci8-2.0.10#phpize#./configure -with-oci8=share,instantclient,/usr/lib/oracle/12.1/client64/lib#make...
Thursday, June 13, 2024
SSL : Generating Single or Wildcard SSL CSR
** Must install OpenSSL on your system1. Single-name SSL Certificates# openssl req -new -newkey rsa:2048 -nodes -keyout abc.com.key -out abc.com.csr After pressing enter, you’ll be prompted with the following:- Country Name (2 letter code) : Use your 2 char country code - State or Province Name (full name) : Use your current State - Locality Name (eg, city): City name- Organization Name (eg, company)...
Thursday, May 23, 2024
Prometheus and Grafana : Monitor MySQL/MariaDB
1.Install MySQL Exporter#curl -s https://api.github.com/repos/prometheus/mysqld_exporter/releases/latest | grep browser_download_url | grep linux-amd64 | cut -d '"' -f 4 | wget -qi -#tar xvf mysqld_exporter*.tar.gz#sudo mv mysqld_exporter-*.linux-amd64/mysqld_exporter /usr/local/bin/#sudo chmod +x /usr/local/bin/mysqld_exporter2.Checking version of mysql...
Tuesday, May 21, 2024
Prometheus and Grafana : Monitor NGINX
A: nginx configuration1.Expose the stub_status page at /stub_status on port 8080 server { listen 8080; server_name _; location /stub_status { stub_status; ...
Wednesday, May 15, 2024
Letsencrypt : Generate Let’s Encrypt Wildcard SSL Certificate
1.Install Let’s Encrypt Certbot Tool#sudo apt-get OR dnf install letsencrypt2.Generate Let’s Encrypt Wildcard SSL Certificate#sudo certbot certonly --manual --preferred-challenges=dns --email webmaster@example.com --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d example.com -d *.example.com 3.Certificates are generated and can be downloaded from the following path#/etc/letsencrypt/live/example.com/4.Generate...
Wednesday, April 24, 2024
Nginx : Deploy Laravel
1.Install Laravel2.Edit parament in Nginx configurationserver { server_name example.com; listen X.X.X.X; root /home/example/public_html/laravel/public; <- change the active laravel folder index index.php index.htm index.html; ...
Monday, April 22, 2024
Rocky 9 : Permanently Disable SELinux
1.Check the Linux OS and Kernel versions# cat /etc/rocky-release# uname -r2.Verify SELinux status.SELinux by default runs in Enforcing mode# sestatus3.To disable SELinux grubby command is required#dnf install -y grubby4.Execute following command to permanently disable SELinux.#grubby --update-kernel ALL --args selinux=05.Reboot the server# reboot6.Verify SELinux status# sestatus source : https://centlinux.com/permanently-disable-selinux/...
Monday, March 25, 2024
Raspberry Pi : Serial Console Server with ser2net

Configuration the console server1. Update your Pi and install ser2net#sudo apt update#sudo apt upgrade -y#sudo apt install ser2net -y 2. Find the serial adapters are listening on what port#dmesg | grep tty3. Configuration ser2net#sudo nano /etc/ser2net.yamldefine: &banner \r\nser2net port \p...
Subscribe to:
Posts (Atom)