You are here: Home >Archive for the ‘Tips&Info’ Category

Rebuild a corrupted RPM database

Strange things sometimes happen,one of them is a rpm database got corrupted . This means that the computer tells you something is installed and it really is not. i personally encountered this few times before and usually this happens when the ssh session/connection to the server cut off(i used to ssh to the server , [...]

Tags: , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Send email notification on successful ssh login using ssmtp

Sometime i wants to know who is login and when user login to my server  but i don’t want to setup and run my own mail server, this can be done easily by using tcpwrapper and ssmtp , first make sure ssmtp is installed # dpkg -l|grep ssmtp iF  ssmtp                                  2.64-4fakesync1                                 extremely simple MTA to [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

HTTP status codes

When a request is made to your server for a page on your site (for instance, when a user accesses your page in a browser or when Googlebot crawls the page), your server returns an HTTP status code in response to the request. This status code provides information about the status of the request. This [...]

Tags: ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Find out MySQL and MsSQL on Windows

This might be helpful in case you are maintaining Windows server and need to find out whether your MsSQL and MySQL is applicable for patches or fixes from vendors, because sometimes Windows not displaying the exact version until application minor number. To check Microsoft SQL/mssql version: SELECT SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’) To check mysqld [...]

Tags: , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

ip_conntrack: table full, dropping packet

Today i found this message in one of my server, although the server’s load is quite low. using dmesg , i kept getting this, and it kept coming ip_conntrack: table full, dropping packet I’d seen this message before, but I headed over to Red Hat’s site for more details. Generally, the ip_conntrack_max is set to [...]

Tags: , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Resizing LVM Logical Volume

——————- Reducing(Offline):: ——————- Scenario: -There is existing LVM partition 50GB in total and has been used up 5GB -We will reduce the LVM partition from 50GB to 10GB -We need to unmount the FS before we can proceed -Please do proper backup before proceed as there might be chances that you would lose your data [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Log all DNS queries to my DNS server

We can log all the  DNS queries , type this single command (as root) on your DNS server (Bind) ————- rndc querylog ————- once this done, all DNS queries will be logged in /var/log/messages, the results will be similar to Oct 24 03:01:43 ns1 named[30660]: client 200.23.242.196#35545: query: parentsascoaches.net IN MX Oct 24 03:01:43 ns1 [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Ethernet Wiring Diagram

3 types of Ethernet Wiring Diagram >Straight (for both ends) 1)white/orange 2)orange 3)white/green 4)blue 5)white/blue 6)green 7)white/brown 8)brown   >CrossOver, used for pc to pc connection, DTE to DTE devices, DCE to DCE devices 1)white/orange——–white/green 2)orange————–green 3)white/green———white/orange 4)blue—————-blue 5)white/blue———-white/blue 6)green—————orange 7)white/brown———white/brown 8)brown—————brown   >RollOver, (also known as Cisco console cable)is a type of null-modem cable [...]

Tags: , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Replace faulty disk in Solaris

[Please proceed with your own risk] Here’s simple tutorials on how to replace faulty disk on solaris, in this example my customer using RAID 0 (don’t ask me why RAID 0, cause they using this RAID partition is for development only, but sometimes there are many comapnies using RAID 0 because it’s has a highest [...]

Tags: , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Speed up shutdown time for windows 2003

Sometimes Windows servers seems take forever to shutdown escpecialyl the one with Active Directory or ISA or Exhange installed on it. I’ve known several people who’ve caused problems for themself by geting impatient and shutting off the server via the power button, rather than waiting for a graceful shutdown. You can try this one : [...]

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS