I had an issue where an Ubuntu Linux server was trying to send SPAM, but as it had no DNS set up, it thankfully couldn’t send messages and it was queueing them.
To clear the queue , do the following
1. sudo postfix stop
2. sudo postsuper -d ALL
3. sudo postfix start
You should now have an empty queue
I had a DC that wouldn’t replicate with other domain controllers and was causing issues.
I ran repadmin /showrepl form a Powershell prompt and saw the following error being returned on the screen
Last error: 8457 (0x2109): The destination server is currently rejecting replication requests.
To fix this , run the following commands and replace the <DC NAME> with the name of your DC. Replication should begin again soon.
repadmin /options <DC NAME> -disable_inbound_repl
repadmin /options <DC NAME> -disable_outbound_repl
We have a shared mailbox that is used for it’s calendar function for booking in training.
We had a user who would delete canceled training, then the next day the appointment would be back in the calendar!
The reason for this is that Exchange has an automated “calendar repair assistant” that runs each night and checks calendars and repairs them if it finds inconsistencies.
To turn this off on a mailbox, simply run the following Exchange Powershell command: remember to replace MAILBOX with the name of the mailbox that you wish to modify.
Set-Mailbox -Identity MAILBOX -CalendarRepairDisabled $true
Sometimes when you ping a computer , you will get an IPV6 repsonse which may not be much help to you.
To specifically get an IPV4 IP address back, do the following.
ping -4 hostname For example: ping -4 www.google.com
To specifically get an IPV6 IP address back, do the following.
ping -6 hostname For example: ping -6 www.google.com
I had a problem with an AWS Micro instance running WordPress on Ubuntu Linux where mysql would shut down randomly, at least once per week.
Looking in the error.log file I found the following error “fatal error: cannot allocate memory for the buffer pool” and “InnoDB: mmap(137363456 bytes) failed; errno 12“
I did some research and found that an Ubuntu micro instance doesn’t have a swap file configure due to it’s low memory capacity.
TO create a swap file, type the following commands:
- sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
- sudo mkswap /swapfile
- sudo swapon /swapfile
- Add this line: /swapfile swap swap defaults 0 0 to /etc/fstab
Net Stop W32Time
W32tm /config /syncfromflags:manual /manualpeerlist:"time.windows.com"
W32tm /config /reliable:yes
Net Start W32Time
W32tm /config /update
I wanted to be able to work out how much internet bandwidth I was using via a Cisco router. To do this i needed to turn on NetFlow and then send that data to Solarwinds Network Traffic Analyzer.Here are the steps.
Log into your router.
Enter global configuration mode (configure terminal)
Enable NetFlow for each interface(in this case Dialer0) by typing: interface Dialer0
Then type: ip route-cache flow
then type (replacing xxx.xxx.xxx.xxx with the ip adderess the analyzer server) : ip flow-export destination xxx.xxx.xxx.xxx
Open up the Active Directory Module for Windows PowerShell from Administrative tools on your AD domain controller.
Type the following: Search-ADAccount -PasswordNeverExpires | FT Name,ObjectClass -A
And you will be returned a list of the accounts.
sudo apt-get install php5-curl
sudo service apache2 restart
I was getting this error on a Windows 2003 server with SQL 2005
Event ID 17182 “TDSSNIClient initialization failed with error 0x7e, status code 0x1″ and “TDSSNIClient initialization failed with error 0x7e, status code 0x60″
The fix for this is to disable the VIA protocol.
To do this, open up the SQL Server Configuration Manager, click on SQL Server 2005 Network Configuration , then click on Protocols for MSSQLSERVER and then right click on VIA and choose Disable.
You should then be able to start the MSSQLSERVER service.