Year: 2012

How to enable SSH for the ESXi Server?

Enabling SSH for the ESXi Shell
By default, you cannot access the ESXi Shell using a Secure Shell client. You can enable SSH access from the direct console.
To enable SSH access in the direct console
1. At the direct console of the ESXi host, press F2 and provide credentials when prompted.
2. Scroll to Troubleshooting Options, and press Enter.
3. Select Enable SSH and press Enter once. On the left, Enable SSH changes to Disable SSH. On the right, SSH is Disabled changes to SSH is Enabled.
4. Press Esc until you return to the main direct console screen.
You can enable remote command execution from the vSphere Client.

To enable SSH from the vSphere Client
1. Select the host and click the Configuration tab.
2. Click Security Profile in the Software panel.
3. In the Services section, click Properties.
4. Select SSH and click Options.
5. Change the SSH options.
■ To temporarily start or stop the service, click the Start or Stop button.
■ To enable SSH permanently, click Start and stop with host. The change takes effect the next time you reboot the host.
6. Click OK.
After you have enabled SSH, you can use an SSH client to log in to the ESXi Shell and run ESXi Shell commands.

Accessing the ESXi Shell with SSH
If SSH is enabled on your ESXi host, you can use an SSH client to run commands on that shell.
To access the ESXi Shell with SSH
1. Open an SSH client.
2. Specify the IP address or domain name of the ESXi host.Precise directions vary depending on the SSH client you use. See vendor documentation and support.
3. Provide credentials when prompted.

Thanks,
Winteladmin.com

Filed under: VMware (ESX / vSphere)Tagged with: , , , , ,

Windows 2003 RDP: “The system cannot log you on due to the following error: The RPC server is unavailable

I was recently having issues in taking the RDP session of a Windows 2003 server. When I use the RDP Session, it was giving me an error stating “The system cannot log you on due to the following error: The RPC server is unavailable”. This issue is dependent on the below listed reasons:

1. Incorrect DNS settings.
2. Incorrect Time and Time zone settings.
3. The “TCP/IP NetBIOS Helper” service isn’t running.
4. The “Remote Registry” service isn’t running.

In my case, the issue was due to the service “TCP/IP NetBIOS Helper” was not running. I logged on to the server using the local admin credentials and was able to start the service to fix the issue.

Thanks,
WintelAdmin.com

Filed under: Windows(2003/2008/2012)Tagged with: , , , ,

How to add a new VLAN on an HP Enclosure?

1. Open the Virtual Connect Manager for the enclosure.
2. Click on Ethernet Networks.
3. Right click on External Connections and choose “Add”.
4. Input the network name ” ” (including the vlan id is encouraged).
5. Place a check mark on “Use Shared Uplink Set:”
6. Select the appropriate “Shared Uplink Set”.
7. Enter the VLAN ID on “External VLAN ID:”
8. Click “Apply”.

Thanks,
WintelAdmin.com

Filed under: HP (Servers/products)Tagged with: , , , ,

Robocopy: How to copy files to a another drive, or server – only if they have changed?

With the robocopy, we can use the below syntax to copy everything from “x:\source” to “\\server\x\dest” including sub-directories:

robocopy x:\source \\server\x\dest /e /r:0 /w:0

Robocopy will look for the date and time stamp of each file. If the file has not changed, it will skip it.

Usage of parameters is as follows:

/e – This will include sub-folders, even if empty

/r:0 – Retry on failure zero times. No retries in this example. It will keep restarting the copy on failure

/w:0 – The number of seconds to wait between failures

Above won’t do is delete files on the destination if they have been deleted on the source. This can be attained by using /purge option:

robocopy X:\source \\server\X\dest /e /r:0 /w:0 /purge

Note: Usage of /purge will delete files on the destination. If you have an empty directory in source, you will end up with an empty directory on the destination.

-WintelAdmin

Filed under: Storage (EMC/NetApp), Windows(2003/2008/2012)Tagged with: , , , , , , ,

Backup and Restore Network Configuration on Windows Servers

While server re-image you would need to make a note of existing network configuration settings and then manually complete the configuration once the server is completed with OS Deployment. This is bit uneasy task and Sometimes, this is more tough while using ILO.

Therefore, it is good to use command to backup and restore the settings. This should complete the task in seconds.

Use the following command to backup your network configuration:
netsh interface dump > netcfg.dat

Use the following command to restore your network configuration:
netsh exec netcfg.dat

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

A temporary profile is loaded after you log on to Windows 2008.

To resolve this problem, follow the steps given below:

1. Click Start, type regedit in the Start Search box, and then press ENTER.

2. If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

3. Under the ProfileList subkey, delete the subkey that is named SID.bak.

Note SID is a placeholder for the security identifier (SID) of the user account that is experiencing the problem. The SID.bak subkey should contain a ProfileImagePath registry entry that points to the original profile folder of the user account that is experiencing the problem.

4. Exit Registry Editor.

5. Log off the system.

6. Log on to the system again.

Filed under: Windows(2003/2008/2012)Tagged with: , , , ,

How to manually rebuild Performance Counters for Windows?

To rebuild all Performance counters including extensible and third-party counters in Windows, type the below commands at a command prompt.

cd\windows\system32

lodctr /R

Ensure that the counters are not disabled in the registry

The counters may be disabled via registry settings. Please check the following registry locations to ensure that the counters have not been disabled.

HKLM\System\CurrentControlSet\Services\%servicename%\Performance

%servicename% represents any service with a performance counter. For example: PerfDisk, PerfOS, etc.

There may be registry keys for “DisablePerformanceCounters” in any of these locations. This value should be set to 0. If the value is anything other than 0 the counter may be disabled.

A value of 1 means the counter is disabled.
A value of 2 means the 32-bit counter is disabled.
A value of 4 measn the 64-bit counter is disabled.

Thanks
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , ,

How to Enable and disable NICs from command line?

Often when you are troubleshooting an issue with Windows Operating System, you would use the Command Prompt and there are scenarios were you would need to disable one of the NIC using command line, I often need this while troubleshooting with imaging issue. I’ve got the handy command.

C:\>wmic nic get name, index

you will find the output like
1 Broadcom NetLink (TM) Gigabit Ethernet
2 Broadcom NetLink (TM) Gigabit Ethernet #2
3 WAN Miniport (L2TP)
4 WAN Miniport (PPTP)
5 WAN Miniport (PPPOE)
6 WAN Miniport (IP)
7 Intel(R) WiFi Link 5100 AGN
8 WAN Miniport (Network Monitor)

Now, if you wish to disable “Broadcom NetLink (TM) Gigabit Ethernet #2”

Please execute the below command

C:\>wmic path win32_networkadapter where index=2 call disable

This should now disable the NIC “Broadcom NetLink (TM) Gigabit Ethernet #2”

Thanks
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , ,

Convert HP Standard TCP/IP ports to MS Standard TCP/IP ports

The print spooler may crash or experience unexpected behavior such as high CPU utilization. Additionally, some printers may display “offline” status.

This behavior can occur due to HPTCPMON.DLL, HP’s Standard TCP/IP port.

Most network printers support the TCP/IP protocol. The standard TCP/IP port simplifies connecting to remote printers using the TCP/IP protocol. A computer that acts as a print server must run the TCP/IP protocol in order to print.

Follow the below steps to convert to MS Standard TCP/IP Ports:

1. Open the registry editor and export the following key to a .REG file.
2. HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\HP Standard TCP/IP Port
3. Delete the following registry key.
4. HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\HP Standard TCP/IP Port
5. Open the .REG file created in step 1 with Notepad.
6. From the Edit menu, choose Replace.
7. Replace all instances of “HP Standard TCP/IP Port” with “Standard TCP/IP Port” and save the file.
8. Double click the .REG file to import it.
9. Change the “Driver” value under the following key back to “tcpmon.dll”.
10. HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port
11. Restart the Print Spooler service.

-WintelAdmin.

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , , , ,

Unable to ping the server with ipnat.sys error in services.

Recently I faced issue with one of the Windows 2003 Server and I was unable to ping the server. Whereas, I was able to ping other server form the same Windows 2003 server in the network.

I got the error message “Windows firewall cannot run because another program or service is running that might use the network address translator component (ipnat.sys)”.

After lots of reference and research I got the solution to fix the issue.

Using the syntax “NET STOP IPNAT” in the command prompt fixed the issue.

Filed under: Windows(2003/2008/2012)Tagged with: , ,