Monday 27 September 2010

Restart of ESX management agents

This is just a post to remember the commands for restarting the management agents on an VMware ESX server:

#service mgmt-vmware restart

#service vmware-vpxa restart (the HA agent)

Both of these agents can be restarted without affecting VM operation. Restarting them can be a useful step in troubleshooting if vCenter has trouble connecting to a host or if you experience HA errors.


For restarting mgmt agents in ESXi, this can be done via the console menu interface, see link above.

Thursday 23 September 2010

Console-setup - service console tool for network config in ESX4

As of ESX 4.0 U2 a new tool for configuring network in the service console (COS) has been introduced. If you're not too comfortable with CLI then this might come in handy. The tool will give you a numbered menu and you can list and configure nics, vswitches, vswifs, etc.

Here's a link to a VMware KB article that presents the tool.

To run the tool, type console-setup in the COS.

Menu entry 1, 2, and 3 will show the output of esxcfg-vswif -l, esxcfg-nics -l, and esxcfg-vswitch -l respectively.

Menu entry 5 will let you configure your service console without having to remember any of the commands. Pretty neat..

Thursday 2 September 2010

How to remove Autorun.inf Virus



There is a very simple process to remove autorun.inf virus file. Follow the method below...

1. open up a command prompt (i.e. cmd.exe) ; to load it go to Run, type cmd, enter.
2. Now see the Four code lines highlighted below... you have to use them all one by one.
e.g. for f: drive...


F: \

F: \attrib
F: \attrib -s -h -r autorun.inf
F: \del autorun.inf

  • First for entering into any drive
  • Second, for checking virus's attributes.After pressing enter, you will see all files of that drive. Check for autorun.inf  file in them. 


You should see something like:
    SHR    Autotun.inf        C:\Autorun.inf
  • third, for changing file's  to attributes.  Usually this virus has attributes SHR(checked by second line) where S stands for system, H for hide,  R for read-only. So To clear an attribute we use  -  (the minus sign) with attrib. 
  • fourth, for deleting virus file.

3. Repeat Second step for all drives of ur system.
Next previous home