tanfwc's pings
Sort By:
Recently I had setup a HA-pair in my environment and if I do not have my computer with me, I need the NOC guys to be able to identify which is the ‘active’ unit and I found out that writing custom text to Dell LCD panel is pretty easy after some digging. If you have ...
Encountered this problem with one of my customer’s server. A quick fix will be logging in remotely using console session to clear up the connections mstsc /v:0.0.0.0 /admin Replace ’0.0.0.0′ ; with your server IP. After which, you can launch the Terminal Server Manager (Start -> Run -> tsadmin.exe) and clear up the sessions. Hope this ...
As I have been trying to figure out how to remove a specific string and not leave a blank line in a file, perl has really saved my day. perl -ni -e 'print unless/mydomain.com/ ' virtualdomains Back to developing scripts now Hope this helps someone too.
I have just completed a migration for a friend of mine. As he is upgrading the server from Windows 2003 32bit to 64bit version, the site was hit with alot of errors not loading the right stuff for his .aspx files. The following error was presented to me when trying to login to his administrative ...
If you have more than 100 spam comments to delete, you might need to spend quite a fair bit of time to delete. Time is precious. Here is a quick way to mass delete all the comments. DELETE swcomments, swcommentdata FROM swcomments, swcommentdata WHERE swcomments.commentid = swcommentdata.commen tdataid AND swcomments.isapprove d = '0'; I am not responsible ...
As I was performing a backup for a ~5GB database on a new db server, I encounter this error. DBD::mysql::db do failed: MySQL server has gone away at /usr/bin/mysqlhotcop y line 521. The above means that the MySQL timeout while doing the mysqlhotcopy, you just need to increase the timeout. If your database is really huge, ...
I was hit with this error. Code: 0x8007232B Description: DNS name does not exist. Quick Solution: slmgr.vbs -ipk [your product key] slmgr.vbs -ato Enjoy!
As I am storing backup remotely, I used GPG to encrypt my stuff on-the-fly using duplicity. As I am upgrading the host machine to a better spec, I need to move my GPG keys too. Here is how I do it. List the available GPG key in the store. [root@svr ~]# gpg --list-keys /root/.gnupg/pubring .gpg ...
As I am installing Cluster Glue, I bump into the following error. I was looking around the Internet and unable to find a answer thus I have to look into what package CentOS build libuuid into Problem: ./.libs/libplumb.so: undefined reference to `uuid_parse' ./.libs/libplumb.so: undefined reference to `uuid_generate' ./.libs/libplumb.so: undefined reference to `uuid_copy' …
WARNING: The following steps will stop your network interface, please ensure that you have KVM-Over-IP before attempting to do it remotely. If you ever had to change the bonding type while the server is live, follow the steps: [db2:/root]# ifdown bond0 [db2:/root]# modprobe -r bonding [db2:/root]# modprobe bonding mode=1 miimon=100 …
Encounter a problem that cause my windows box to be offline remotely I had to spend quite a fair bit of my time to look into this. If you attempt to start the Windows Firewall, you will notice that you will get this error message: Windows Firewall can not run because another program or service ...
Here is a quick command to retrieve Dell Service Tag number remotely. dmidecode|grep -A 2 "PowerEdge" Hope this helps…
As I am working on a project where I need to play external audio into a application, as you are aware that dealing with audio in Linux can be challenging. As such, here is a simple solution to it =) My test environment: CentOS 5.5 64bit Creative Blaster S80490 (USB) yum install -y alsa-utils Once ...
This is a quick command to get it installed. /usr/bin/perl -MCPAN -e 'install "DBD::mysql" ' Hope this helps!
Had a friend who want to backup all his files (300GB+) from a Linux server to a laptop harddisk, we hit with a error message that cause Linux unable to mount the shared folder in laptop. Problem: [root@localhost ~]# mount -t cifs "//192.168.1.10/ abc" -o username=admin,passw ord=1234 ed /mnt/laptop/ mount: Cannot allocate memory The server has at ...
Had a friend who want to backup all his files (300GB+) from a Linux server to a laptop harddisk, we hit with a error message that cause Linux unable to mount the shared folder in laptop. Problem: [root@localhost ~]# mount -t cifs "//192.168.1.10/ abc" -o username=admin,passw ord=1234 ed /mnt/laptop/ mount: Cannot allocate memory The server has at ...
I was about to head to bed when I receive a disturbing email from my BlackBerry phone. A email from weekly cron.d send me this: WARNING: mismatch_cnt is not 0 on /dev/md0 A quick command shows that the RAID array (md0) is the number of unsynchronized blocks in the raid. As you can see below, ...
I was about to head to bed when I receive a disturbing email from my BlackBerry phone. A email from weekly cron.d send me this: WARNING: mismatch_cnt is not 0 on /dev/md0 A quick command shows that the RAID array (md0) is the number of unsynchronized blocks in the raid. As you can see below, ...
In order to do a fsck on your disk on the next reboot, I prefer the following command: shutdown -Fr now -F: Force fsck on reboot. -r: reboot after shutdown. The next option that you can choose to use is as following: touch /forcefsck shutdown -r now Enjoy!!
In order to do a fsck on your disk on the next reboot, I prefer the following command: shutdown -Fr now -F: Force fsck on reboot. -r: reboot after shutdown. The next option that you can choose to use is as following: touch /forcefsck shutdown -r now Enjoy!!



…