Tuesday, December 11, 2007

Set up IP from Command Prompt

Setting up IP addresses from the Command Prompt is a fundamental skill for network administrators and IT professionals tasked with managing and configuring network connectivity. The Command Prompt, also known as cmd or cmd.exe, is a command-line interpreter available in Windows operating systems. It provides a powerful and efficient way to execute various network-related commands, including those related to IP address configuration. In this article, we will explore the step-by-step process of setting up IP addresses using the Command Prompt, covering essential commands and best practices for effective network configuration.

You can set up IP from Command Prompt by using this NETSH command.
Syntax: netsh interface ip
 
Usage:
set address [name=]<string>
[[source=]dhcp |
[source=] static [addr=]IP address [mask=]IP subnet mask]
[[gateway=]<IP address>|none [gwmetric=]integer]


Parameters:

  • Tag: Value
  • name: The name of the interface.
  • source: One of the following values:
    • dhcp: Sets DHCP as the source for configuring IP addresses for the specific interface.
    • static: Sets the source for configuring IP addresses to local static configuration.
  • gateway      - One of the following values:
    • <IP address>: A specific default gateway for the static IP address you are setting.
    • none: No default gateways are set.
  • gwmetric: The metric for the default gateway. This field should not be set if gateway is set to 'none'.

The following options are used only if source is 'static':
  • addr: An IP address for the specified interface.
  • mask: The subnet mask for the specified IP address.

 
Remarks: 

Used to change the IP address configuration mode from either DHCP to static mode or static mode to DHCP. Adds IP addresses on an interface with static IP address or adds default gateways.

 
Examples:
set address name="Local Area Connection" source=dhcp
set address local static 10.0.0.9 255.0.0.0 10.0.0.1 1


full syntax:
netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1

In conclusion, mastering the ability to set up IP addresses from the Command Prompt is a valuable skill that empowers network administrators and IT professionals to efficiently manage network configurations. By following the step-by-step instructions outlined in this article, users can gain confidence in utilizing the Command Prompt for IP address configuration tasks, such as assigning static IP addresses, configuring DNS settings, and troubleshooting network connectivity issues. Continual practice and exploration of command-line tools like the Command Prompt contribute to a deeper understanding of networking concepts and enhance the ability to maintain a stable and reliable network infrastructure.

Thursday, November 08, 2007

Setup could not find a file on the specified path or disk

Error Message

---------------------------
Unicenter Service Desk
---------------------------

Setup could not find a file on the specified path or disk.
Please check that the proper disk is inserted or specify a new path.
Unable to locate file D:\Source\USD_r11.2_Server\winsrvr.nt\disk1\Unicenter Service Desk.msi.


---------------------------
Retry Cancel
---------------------------


I’ve got that error message although the file is there. I’ve got that error when I want to modify component (add feature/remove). When I click Cancel, I’ve got this following error:


---------------------------
Unicenter Service Desk Error
---------------------------

Error 1706.No valid source could be found for product Unicenter Service Desk. The Windows Installer cannot continue.

---------------------------
OK
---------------------------


---------------------------
Feature transfer error
---------------------------


Error: -1603 Fatal error during installation.
Consult Windows Installer Help (Msi.chm) or MSDN for more information.


---------------------------
OK
---------------------------

Possible Cause

  • Registry is corrupt
  • The installation source file is corrupt
  • Windows could not find original installation source

Resolution

  • Use Windows Installer CleanUp utility to fix the problem.
  • Provide new installation source file to the path.
  • Check this following registry, and make sure it direct to correct path:

Per-user unmanaged installations:
  • HKCU\Software\Microsoft\Installer\Products\\SourceList\Media

Per-user managed installations:
  • HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\Managed\\Installer\Products\\SourceList\Media

Per-machine installations:
  • HKLM\Software\Classes\Installer\Products\\SourceList\Media
  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall


Wednesday, November 07, 2007

Could not attach Document

Error message while attaching document on Unicenter Service Desk r11

'Unable to connect to ‘http://hostname:8080/Caisd/UploadServlet’.
Please make sure that the servlet path is correct, and that Tomcat is up and running.
Woul you like to retry?


Resolution:
Check wheter the tomcat is running by run “pdm_tomcat_nxd –c status” on command prompt.
If the tomcat running it should say something like this: “The Tomcat application container was started on Wed Nov 07 08:52:42 PST 2007”
If the message is something like this:

“The Tomcat application container was stopped on Wed Nov 07 09:09:05 PST 2007” or “The Tomcat application container appears to be down at this time”

It’s mean the Tomcat was stopped or down. Startup the Tomcat by running this command:

pdm_tomcat_nxd –c start”

It’s take sometime for Tomcat to startup (for about 3 minutes). Check Tomcat status again.
If the Tomcat still could not be start, check out Tomcat log file on “C:\Program Files\CA\Service Desk\log\pdm_tomcat.log” to find errors.

Or you can to reconfigure Unicenter Service Desk by running “
pdm_configure” from the command prompt. If it still failed, try to reconfigure by select to use “Tomcat server only” as web server. Check Tomcat status, if it already start, try to reconfigure using “Tomcat and IIS http Server (default)”

Test to attach document.


Friday, October 26, 2007

How to turn off Security Center alerts

  1. Click Start and then click Control Panel.
  2. Double-click Security Center.
  3. In the Security Center, under Resources, click Change the way Security Center alerts me.
  4. In the Alert Settings dialog box, clear the Firewall, Automatic Updates, or Virus Protection check boxes, and then click OK.

Monday, September 10, 2007

IE 7 opening to Run Once page

You've got error while IE 7 opening to Run Once page  http://runonce.msn.com/runonce2.aspx

Resolution:
Edit this following registry:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\RunOnceHasShown
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\RunOnceComplete

changed their value to "1".
or created them both if you couldn't find it (Right click where they should be, new DWORD) and changed their value to "1".

Monday, August 27, 2007

The Open Procedure for service "ASP.NET is Failed

Error messages:

The Open Procedure for service "ASP.NET_1.0.3705.6060" in DLL "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_isapi.dll" failed. Performance data for this service will not be available. The Status code returned is the first DWORD in the attached data.

Resolution:
Try to rebuild your Performance Counter Library values.

http://support.microsoft.com/kb/300956

Wednesday, June 20, 2007

Direct3D functionality not available

Problem:
You’ve got note below when run Dxdiag

“Direct3D functionality not available. You should verify that the driver is a final version from the hardware manufacturer”

Solution:
<![if !supportLists]>1.<![endif]>goto the settings tab of display properties
<![if !supportLists]>2.<![endif]>click advanced
<![if !supportLists]>3.<![endif]>click on the troubleshoot tab and turn hardware acceleration to “Full”
<![if !supportLists]>4.<![endif]>Recheck with Dxdiag

Friday, May 04, 2007

How to re-create the Show Desktop icon

Manual steps to re-create the Show Desktop icon on the Quick Launch toolbar

The Show Desktop icon is not an ordinary program shortcut. If the icon is deleted, the procedure for re-creating the icon is not obvious. To manually re-create the Show Desktop icon, follow these steps:

1. Click Start , click Run, type notepad, and then click OK.
2. In Notepad, type the following text on individual lines:

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

3. On the File menu, click Save As, and then save the file to your desktop as Show Desktop.scf.

Note Notepad might automatically append a .txt extension to the file name. Remove this extension if present. The file name should be Show Desktop.scf.

Ref: http://support.microsoft.com/kb/190355

Thursday, March 29, 2007

Convert a non-Unicode data file (.pst) to a Unicode data file (.pst)

Error Message:

The Personal Folders file (.pst) you selected does not match the format of your Offline Folder file (.ost). To correct this, select a Personal Folders file that supports Unicode or disable the use of offline folders.

Solution:

Convert a non-Unicode data file (.pst) to a Unicode data file (.pst)There is no automatic way of converting a Microsoft Outlook 97-2002 Personal Folders file (.pst) to a Unicode-capable Microsoft Outlook Personal Folders file (.pst) file. The easiest way to convert a non-Unicode .pst file is to create a new data file in the Microsoft Outlook Personal Folders file (.pst) format that supports Unicode and then import items from the old data file to the new Microsoft Outlook Personal Folders file (.pst).

Create a new data file

  1. On the File menu, point to New, and then click Outlook Data File.
  2. To create a Microsoft Outlook Personal Folders File (.pst) that offers greater storage capacity for items and folders and supports multilingual Unicode data, click OK.
  3. In the File name box, type a name for the file, and then click OK.
  4. In the Name box, type a display name for the .pst folder.

5. Select any other options you want, and then click OK. The name of the folder associated with the data file appears in the Folder List. To view the Folder List, on the Go menu, click Folder List. By default, the folder will be called Personal Folders.

Import items to the new data file

  1. On the File menu, click Import and Export.
  2. Click Import from another program or file, and then click Next.
  3. Click Personal Folder File (.pst), and then click Next.
  4. In the File to import box, specify the path and file name of the old non-Unicode Microsoft Outlook 97-2002 Personal Folders File (.pst) file you want to import and click Next.
  5. Select Import items into the same folder in: and select the name of your new Unicode Personal Folders File (.pst).
  6. Follow the remaining instructions in the Import and Export Wizard.