Dec 27, 2022

Ubuntu : Install SNMP Agent

 Ubuntu Server v.22.04.1 64-bit - Install SNMP Daemon.

1. sudo apt update && sudo apt upgrade -y

2. sudo apt install snmpd -y

3. sudo nano /etc/snmp/snmpd.conf

4. Search for --> agentAddress     udp:161,udp6:[::1]:161

eg. agentAddress     192.168.0.100:161

Note: The "udp:161,udp6:[::1]:161" means Enabled All Access.

5. Search for --> rocommunity     public

6. Change to --> rocommunity     [Your Community String]

7. Search for --> rocommunity6     public

8. Change to --> rocommunity6     [Your Community String]

9. sudo systemctl restart snmpd


!!! HAPPY COMPUTING !!!


VMWare : Enabled SNMP Services

 VMWare ESXi v.6.7.0 (Update 3) - Enabled SNMP Services.

1. Display current SNMP status --> esxcli system snmp get

2. Enabled SNMP services --> esxcli system snmp set --enable true

3. Configure SNMP Server (aka Target) --> esxcli system snmp set --targets=[SNMP Server IP Address]@161/[Community String]

eg. esxcli system snmp set --targets=192.168.1.100@161/public

4. Configure SNMP System Location (if any) --> esxcli system snmp set --syslocation=[Location Name]

5. Configure SNMP System Contact (if any) --> esxcli system snmp set --syscontact=[Email Address]

6. Configure ESXi Firewall Rule #1 --> esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true

7. Configure ESXi Firewall Rule #2 --> esxcli network firewall ruleset set --ruleset-id snmp -enabled true


Update, 11-Jan-2023.

--> Disable SNMP = esxcli system snmp set --enable false


!!! HAPPY COMPUTING !!!


Dec 15, 2022

Exchange Server 2016 : Command Line

1. Get-ExchangeServer | Format-List Name,Edition,AdminDisplayVersion

2. Get-MailboxDatabase -Status | Select Name,LastFullBackup

3. Get-AuthConfig | fl CurrentCertificateThumbPrint

4. Get-ExchangeCertificate


Exchange Server 2016 : Outlook Search Not Working

 Microsoft Exchange Server 2016 : Outlook Search Not Working.

This issue happen when the "Content Index State" is either corrupted or incorrect.

1. Open --> Exchange Management Shell

2. Get-MailboxDatabaseCopyStatus * | sort name | Select name,status,contentindexstate

3. If the "Content Index State" = FailedandSuspended = Corrupted.

4. Stop-Service MSExchangeFastSearch

5. Stop-Service HostControllerService

6. Get-MailboxDatabase [DB Name] | select EdbFilePath

7. Open --> File Explorer --> Browse to [EDB Path] (eg. F:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database)

8. Find a Sub-Folder with a GUID Name (eg. C5B6A9C4-DDA8-xxxx-xxx), DELETE the entire Sub-Folder.

9. Start-Service MSExchangeFastSearch

10. Start-Service HostControllerService

11. It will take some times to regenerate the index, be patient.

12. To check status --> Get-MailboxDatabaseCopyStatus * | sort name | Select name,status,contentindexstate

13. The status should either be "Crawling" = Work-in-Progress or "Healthy" = Good.


!!! HAPPY COMPUTING !!!