As a Windows 2K/2K3 System Administrator, there are some command lines that a we need to know to help us solving the problem or to show information of the server or network. Go to windows command prompt by type “cmd” from Start -> Run to go into console mode.
Here some command line that is useful for a Windows System Administrator. Some command lines also exist in UNIX system.
- ping <hostname>
i.e : ping www.yahoo.com
When SA want to check if the server reachable over the network or not, ping should be the only command can be used. If there is a reply message that mean the connection to the server is OK but if there is message request time out, something wrong happen to that server connection. It can be caused by many matters like hardware failure, the network cable unplug, the server is down etc. You can add parameter -t to test connection to the server until you press ctrl+C. - IPConfig/all
This command used for display all current TCP/IP network configuration such as IP address, MAC Address etc. - IPConfig/flushdns
Purges the DNS Resolver cache. - nbstat-a <hostnamename>
Returns the NetBIOS name table and MAC address of the address card for the computer name specified. Few days ago, our network team ask us to collect all our server’s MAC Address. There are 2 ways to do this task. We can do it by remote console to the server one by one and use command ipconfig/all or use NBTSTAT command from our local PC
. - tasklist
This command line for displays list of applications / processes currently running either a local or remote server. To display remote server processes use Tasklist /s <hostname>. - taskkill
This command used to end one or more processes. We can kill the process by the process id or image name. To further information used this command type taskkill/?. - tracert <destination server>
used to determine the route taken by packets across an IP network. - nslookup
to find various details relating to DNS. i.e : when you type nslookup www.google.com, you can see the IP address that used by www.google.com. You can also type nslookup <IP Address> to get the server name which is used that IP address. - netstat
displays the active TCP connections and ports on which the computer is listening.