Tuesday, May 26, 2009

7 Troubleshoot Commands for young admin

7 Troubleshoot Commands
1. IPconfig
/all -This option will display for all network information of this computer --> Computer name, Joined domain or work group, IP address, Gateway, DNS, WIN, DHCP IP & etc.
/renew -Renew the IP address for the specified adapter.
/flushdns -Purges the DNS Resolver cache.
/displaydns -Display the contents of the DNS Resolver Cache. http://technet2.microsoft.com/windowsserver/en/library/7356d145-e8ee-4dae-9edb-8b08a37e53841033.mspx?mfr=true
2.Route sub command of NetSH
route PRINT
Destination ^mask {Gateway IP} ^gateway metric ^ Interface ^IF number
Test acknowledge from destination
-t Ping the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C.
-a Resolve addresses to hostnames. -n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet (IPv4-only).
-i TTL Time To Live.
-v TOS Type Of Service (IPv4-only).
-r count Record route for count hops (IPv4-only).
-s count Timestamp for count hops (IPv4-only).
-j host-list Loose source route along host-list (IPv4-only).
-k host-list Strict source route along host-list (IPv4-only).
-w timeout Timeout in milliseconds to wait for each reply.
-R Trace round-trip path (IPv6-only).
See route of network packet from source to destination
• -d Do not resolve addresses to hostnames.
• -h maximum_hops Maximum number of hops to search for target.
• -j host-list Loose source route along host-list (IPv4-only).
• -w timeout Wait timeout milliseconds for each reply.
• -R Trace round-trip path (IPv6-only).
• -S srcaddr Source address to use (IPv6-only).
• -4 Force using IPv4.
• -6 Force using IPv6.
See detail of mapping IP table with MAC address
-a Displays current ARP entries by interrogating the current protocol data. If inet_addr is specified, the IP and Physical addresses for only the specified computer are displayed. If more than one network interface uses ARP, entries for each ARP table are displayed.
-s Adds the host and associates the Internet address inet_addr with the Physical address eth_addr. The Physical address is given as 6 hexadecimal bytes separated by hyphens. The entry is permanent.
-d Deletes the host specified by inet_addr. inet_addr may be wildcarded with * to delete all hosts.
Main problem of VIP (NLB or cluster)
Test destination TCP service port over network & FW
telnet {destination IP} {service port}
• -a Displays all connections and listening ports.
• -b Displays the executable involved in creating each connection or listening port.
In some cases well-known executables host multiple independent components, and in these cases the sequence of components involved in creating the connection or listening port is displayed. In this case the executable name is in [] at the bottom, on top is the component it called, and so forth until TCP/IP was reached. Note that this option can be time-consuming and will fail unless you have sufficient permissions.
• -e Displays Ethernet statistics. This may be combined with the -s option.
• -n Displays addresses and port numbers in numerical form.
• -o Displays the owning process ID associated with each connection.
• -p proto Shows connections for the protocol specified by proto;
proto may be any of: TCP, UDP, TCPv6, or UDPv6. If used with the –s option to display per-protocol statistics, proto may be any of: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
• -r Displays the routing table.
• -s Displays per-protocol statistics.
By default, statistics are shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6; the -p option may be used to specify a subset of the default.
• -t Displays the current connection offload state.
• -v When used in conjunction with -b, will display sequence of components involved in creating the connection or listening port for all executables.
• Interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop redisplaying statistics. If omitted, netstat will print the current configuration information once.

Load Document

No comments:

Post a Comment