Harry Sukumar's Weblog

Archive for April 15th, 2008

Posted by hsukumar on 15/04/2008

  • Check the status of the ntpd service:
    /sbin/service ntpd status
  • If ntpd is running, stop the process with the following command:
    /sbin/service ntpd stop
  • Use the ntpdate command to sync the system clock. Note: you can use any NTP server that the system can reach:
    /usr/sbin/ntpdate kirk.bond.edu.au
  • Restart the ntpd service:
    /sbin/service ntpd start
  • Verify this worked with the ntpd command,/usr/sbin/ntpq. Then use the peer option within this command. Type q or quit to exit.
  • See the sequence below on a live system:

ntpq> peer
remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
caffeine.cc.com .INIT.          16 u    -   64    0    0.000    0.000   0.000
202-89-184-139. .INIT.          16 u    -   64    0    0.000    0.000   0.004
203.12.144.65   .INIT.          16 u    -   64    0    0.000    0.000   0.004
LOCAL(0)        .LOCL.          10 l    2   64    1    0.000    0.000   0.004
ntpq> q

Lastly

$ chkconfig –list | grep ntpd

if it turned off, please turn it back on

$ chkconfig –levels 35 ntpd on

Thats it all done well done

Posted in Redhat MIX | Leave a Comment »

Static IP Address on Unix and Redhat Machine

Posted by hsukumar on 15/04/2008

In Unix it is possible to directly change the IP address, netmask, and broadcast address, using the ifconfig command like s

# ifconfig eth0 143.229.xxx.yyy netmask 255.255.255.0

# ifconfig eth0 broadcast 143.229.xxx.255

Here xxx represents the subnet, and depends on which dorm or building you are in, and yyy is unique to your computer. The netmask is used to determine what part of a network address is considered local – The part of the address which is zero in the netmask is the local part of the address.

To send to an address outside of the local subnet reqires that the packets be sent to a gateway host or router. In Unix the default route (gateway) is set with the route command

# route add -net default gw 143.229.xxx.1 eth0

(The syntax of the route command is slightly different on Mac OS X, but the idea is the same.) You can verify these settings by giving the ifconfig or route commands with no arguments, in which case the network interface status or routing tables are printed to the screen.

These changes will go away after the next reboot. You can make permanent changes by editing the appropriate configuration files. Red Hat Linux keeps the network settings in the file /etc/sysconfig/network. This is also where the host name is kept. The file should look something like:

NETWORKING=yes
HOSTNAME=hsukumar
BOOTPROTO=static
IPADDR=100.200.300.400
NETMASK=255.255.255.192
GATEWAY=100.200.300.500

Figure 1: The file /etc/sysconfig/network for a static IP address.

You can edit this file with your favourite editor (eg. emacs) to change the IP address, netmask, gateway, or host name, and the changes will take effect the next time the network services are restarted.

Also change the file The file /etc/sysconfig/network-scripts/ifcfg-eth0

   DEVICE=eth0
ONBOOT=yes
BOOTPROTO=DHCP

where BOOTPROTO=static

save the file

and type the following command

$ service network restart

All done thats it…

Posted in CentOS, General Linux, Redhat MIX | 1 Comment »

Importing Virtual Machines to ESX Server

Posted by hsukumar on 15/04/2008

Description: Import an ESX 3 VM to an ESX 3 host
You may have recently completed an in place upgrade from ESX 2.x to 3, are working in a stand-alone environment or maybe carrying out a site migration and are wondering how to import an existing ESX 3 VM to an ESX server.  By using the Virtual Infrastructure Client either by logging directly onto the ESX server or via VirtualCenter it can be done simply using the GUI.
 
Pre-Requisites:
1. Source VM must be in version 3 format
2. Require access to the host via Virtual Infrastructure Client
3. Source VM must be on a vmfs3 Datastore that is visible to the ESX server
 
Tasks:
Log onto VirtualCenter or the local ESX server via the Virtual Infrastructure Client.
From the inventory, select the ESX server you wish to import the VM into.
From the Summary tab right-click the vmfs Datastore where the VM is residing and select Browse Datastore from the context menu
Navigate to the folder containing the VM and select the vmx file.  Right-click it and select Add to Inventory.

A wizard will appear.  Follow the instructions to name the VM and add it to a Resource Pool and click Finish to complete. 

The VM will now appear to the esx host and can be powered on.

Posted in VMWare | Tagged: | Leave a Comment »

Repair Internet Explorer

Posted by hsukumar on 15/04/2008

1) From the Start menu, select Run.
In the Open field, type sfc /scannow
2) Select the OK button.
3) Follow the prompts throughout the System File Checker process.
4) Reboot the computer when System File Checker completes

Posted in Windows | Leave a Comment »