2026/03/07

451 5.7.3 STARTTLS is required to send mail

Posted in by HungNguyen | Edit

 Cert hết hạn làm mail từ 365 về On-prem lỗi

Reason: [{LED=450 4.4.317 Cannot establish session with remote server [Message=451 5.7.3 STARTTLS is required to send mail] 


Get-ExchangeCertificate | fl Subject,Issuer,Thumbprint

$cert = Get-ExchangeCertificate -Thumbprint THUMBPRINT_CERT

$tlscertificatename = "<I>$($cert.Issuer)<S>$($cert.Subject)"

Set-ReceiveConnector "Default Frontend XXX" -TlsCertificateName $tlscertificatename

Restart-Service MSExchangeFrontEndTransport
Restart-Service MSExchangeTransport

2022/06/24

GLPI notification CLI mode

Posted in by HungNguyen | Edit

chạy trên mỗi phút:

 # sudo crontab -e

*/1 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php

 


 

2022/06/07

Enable timezone after upgrade to GLPI 10

Posted in by HungNguyen | Edit

Enable timezone after upgrade from GLPI 0.83 to GLPI 10

 Login as root

sudo -s

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql

systemctl restart mariadb

cd /var/www/html/glpi

php bin/console glpi:database:enable_timezones

 

 

2022/04/12

Change default port 25 send connector

Posted in by HungNguyen | Edit

 Change default port smtp 25 send connector to another port for using Proxmox mail gateway

Set-SendConnector -Identity "connector name" -Port 26

Get-SendConnector "connector name"|fl Port

2021/11/02

Bigbluebutton not load default.pdf presentation

Posted in by HungNguyen | Edit

affect servers: Ubuntu 16.04 user Let's encrypt certificates (old root certificate expired)

sudo apt-get remove certbot

sudo apt-get install snapd

sudo snap install --classic certbot

sudo certbot renew --force-renewal --cert-name bbb.xxxxxxx.com --preferred-chain "ISRG Root X1"

bbb-conf --restart

2018/06/01

Shutting Down an AHV Cluster for Maintenance or Relocation

Posted in by HungNguyen | Edit

Description

You might need to shut down an AHV cluster to perform maintenance or tasks such as relocating hardware.
To shut down all hosts in an AHV cluster, perform the following steps.
Note: Upgrade to the most recent version of NCC before proceeding with the following steps.

Solution

Shutting down an AHV cluster​

To shut down all hosts in an AHV cluster, perform the following:
  1. Prior to the scheduled shutdown, SSH to a Controller VM and run ncc health_checks run_all.  If there are any errors or failures, contact Nutanix Support.
  2. Shut down all the user VMs in the Nutanix cluster.
  3. Stop all AFS cluster VMs if applicable
  4. Stop the Nutanix cluster.
  5. Shut down each node in the cluster.
  6. After completing maintenance or other tasks, power on the nodes and start the cluster.

Shutting down guest VMs​

Guest VMs can be powered off in 3 ways:
  • Power off the guest VM from within the guest OS.
  • From Prism, go to VM > Table. 
    • Select each guest VM and clcik the Power Off Actions.
  • If there are a large number of VMs to shut down, perform the following tasks to power them off by using aCLI:
    • SSH into any Controller VM in the cluster.
    • Shut down all non Controller VMs.
      • nutanix@CVM$ for i in `acli vm.list power_state=on | awk '{print $1}' | grep -v ^VM$` ; do acli vm.shutdown $i ; done
    • Confirm that all VMs are powered off:
      •  vm.list power_state=on
    • If any VMs are on, consider powering them off through the guest OS.  To force power-off through AHV use the following:
      •  vm.off

 Shutting down AFS (file server) VMs

  • Please see KB-4429 for version specific details.

(Data Protection) Ensure there are no on-going replications if running Async DR Protection Domains:

  • For Async DR: Ensure no schedules or replications are running by executing the following command from any Controller VM. If there are on-going replications, wait until they are complete before proceeding.
    nutanix@cvm$ ncli pd ls-repl-status

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:
  • nutanix@CVM$ cluster stop
Confirm using that the command has stopped the services successfully before continuing.

Shutting down the Controller VMs
Perform the following on each AHV host.
  1. virsh list
  2. virsh shutdown

Shutting down each node in the cluster

Perform the following steps for each node in the cluster you have stopped.
  1. Log into the IPMI web console on each node.
  2. Under Remote Control > Power Control, select Power Off Server - Orderly Shutdown to gracefully shut down the node.

      3. Confirm that the AHV hosts are no longer powered on or pingable.

Powering on the nodes and cluster after a shutdown

Perform these steps for each node in the cluster.
  1. If the host is powered off, turn it on by pressing the power button on the front of the block for the host.
  2. ​Log in to each host's IPMI interface.  Confirm that the host is powered on. 

Start the cluster

  1. All Controller VMs start automatically after the node powers on.  Wait approximately 5 minutes after the last node is powered on to allow services to begin.
  2. Log on to any one Controller VM in the cluster with SSH using Nutanix credentials.  
  3. Start the Nutanix cluster by issuing the following command: 
    nutanix@cvm$ cluster start
  4. Confirm that the cluster services are running:
    nutanix@cvm$ cluster status
  1. Power on the guest VMs.  
    • From the Prism web console, navigate to Home > VM and select the Table view.  
  2. If a large number of VMs need to be powered on, type the following aCLI command to power on the VMs:
    • nutanix@cvm$ for i in `acli vm.list power_state=off | awk '{print $1}' | grep -v ^VM$` ; do acli vm.on $i; done
  3. Confirm that all VMs are powered on.
2017/02/12

Self Signed Exchange 2010 SSL certificate

Posted in by HungNguyen | Edit
My domains:
Local domain: vtj-toms.comOutside domain: vtj-toms.com
#NETBIOS name of Client Access exchange server: mail
#Internal FQDN (AD name): mail.vtj-toms.com
#External FQDN (Public name): mail.vtj-toms.com
#Autodiscover name: autodiscover.vtj-toms.com
#SubjectName: cn=mail.vtj-toms.com
Run the following command on the Client Access Server for generating the new Self-Signed SSL cert using the names listed above:
New-ExchangeCertificate -FriendlyName "SelfSigned Cert" -SubjectName "cn=mail.vtj-toms.com" -DomainName mail,vtj-toms.com,mail.vtj-toms.com,autodiscover.vtj-toms.com -PrivateKeyExportable $True