Sie sind auf Seite 1von 9

C:\Documents and Settings\reedip\Desktop>netstat -help

Displays protocol statistics and current TCP/IP network connections.


NETSTAT [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]
-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.
-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.
C:\Documents and Settings\reedip\Desktop>netstat -b -e
Interface Statistics
Received Sent
Bytes 93138405 31082864
Unicast packets 150654 127899
Non-unicast packets 325 138
Discards 0 0
Errors 0 0
Unknown protocols 0
C:\Documents and Settings\reedip\Desktop>netstat -a -s
IPv4 Statistics
Packets Received = 152700
Received Header Errors = 0
Received Address Errors = 0
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 7
Received Packets Delivered = 152649
Output Requests = 129356
Routing Discards = 0
Discarded Output Packets = 0
Output Packet No Route = 0
Reassembly Required = 86
Reassembly Successful = 42
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
ICMPv4 Statistics
Received Sent
Messages 586 10
Errors 3 0
Destination Unreachable 578 10
Time Exceeded 5 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 0 0
Echos 0 0
Echo Replies 0 0
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0
TCP Statistics for IPv4
Active Opens = 2975
Passive Opens = 1475
Failed Connection Attempts = 443
Reset Connections = 754
Current Connections = 24
Segments Received = 42259
Segments Sent = 44895
Segments Retransmitted = 2056
UDP Statistics for IPv4
Datagrams Received = 110376
No Ports = 22
Receive Errors = 0
Datagrams Sent = 82339

C:\Documents and Settings\reedip\Desktop>nbtstat


Displays protocol statistics and current TCP/IP connections using NBT
(NetBIOS over TCP/IP).
NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n]
[-r] [-R] [-RR] [-s] [-S] [interval] ]
-a (adapter status) Lists the remote machine's name table given its name
-A (Adapter status) Lists the remote machine's name table given its
IP address.
-c (cache) Lists NBT's cache of remote [machine] names and their IP
addresses
-n (names) Lists local NetBIOS names.
-r (resolved) Lists names resolved by broadcast and via WINS
-R (Reload) Purges and reloads the remote cache name table
-S (Sessions) Lists sessions table with the destination IP addresses
-s (sessions) Lists sessions table converting destination IP
addresses to computer NETBIOS names.
-RR (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr
esh
RemoteName Remote host machine name.
IP address Dotted decimal representation of the IP address.
interval Redisplays selected statistics, pausing interval seconds
between each display. Press Ctrl+C to stop redisplaying
statistics.

C:\Documents and Settings\reedip\Desktop>nbtstat -c


Local Area Connection:
Node IpAddress: [192.168.1.4] Scope Id: []
No names in cache
C:\Documents and Settings\reedip\Desktop>ipconfig -help
Error: unrecongnized or incomplete command line.
USAGE:
ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] ]
where
adapter Connection name
(wildcard characters * and ? allowed, see examples)
Options:
/? Display this help message
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.
The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.
For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.
For Setclassid, if no ClassId is specified, then the ClassId is removed.
Examples:
> ipconfig ... Show information.
> ipconfig /all ... Show detailed information
> ipconfig /renew ... renew all adapters
> ipconfig /renew EL* ... renew any connection that has its
name starting with EL
> ipconfig /release *Con* ... release all matching connections,
eg. "Local Area Connection 1" or
"Local Area Connection 2"
C:\Documents and Settings\reedip\Desktop>ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : hell-o
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : ad.syniverse.com
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethe
rnet NIC
Physical Address. . . . . . . . . : 00-19-D1-2B-65-7F
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.4
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
Primary WINS Server . . . . . . . : 172.28.198.22
Lease Obtained. . . . . . . . . . : Wednesday, August 25, 2010 6:20:53 P
M
Lease Expires . . . . . . . . . . : Saturday, August 28, 2010 6:20:53 PM
C:\Documents and Settings\reedip\Desktop>net -help
The syntax of this command is:

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |


HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
C:\Documents and Settings\reedip\Desktop>net Accounts
Force user logoff how long after time expires?: Never
Minimum password age (days): 0
Maximum password age (days): 42
Minimum password length: 0
Length of password history maintained: None
Lockout threshold: Never
Lockout duration (minutes): 30
Lockout observation window (minutes): 30
Computer role: WORKSTATION
The command completed successfully.
C:\Documents and Settings\reedip\Desktop>netsh
netsh>ls
The following command was not found: ls.
netsh>help
The following commands are available:
Commands in this context:
.. - Goes up one context level.
? - Displays a list of commands.
abort - Discards changes made while in offline mode.
add - Adds a configuration entry to a list of entries.
alias - Adds an alias.
bridge - Changes to the `netsh bridge' context.
bye - Exits the program.
commit - Commits changes made while in offline mode.
delete - Deletes a configuration entry from a list of entries.
diag - Changes to the `netsh diag' context.
dump - Displays a configuration script.
exec - Runs a script file.
exit - Exits the program.
firewall - Changes to the `netsh firewall' context.
help - Displays a list of commands.
interface - Changes to the `netsh interface' context.
lan - Changes to the `netsh lan' context.
nap - Changes to the `netsh nap' context.
offline - Sets the current mode to offline.
online - Sets the current mode to online.
popd - Pops a context from the stack.
pushd - Pushes current context on stack.
quit - Exits the program.
ras - Changes to the `netsh ras' context.
routing - Changes to the `netsh routing' context.
set - Updates configuration settings.
show - Displays information.
unalias - Deletes an alias.
winsock - Changes to the `netsh winsock' context.
The following sub-contexts are available:
bridge diag firewall interface lan nap ras routing winsock
To view help for a command, type the command, followed by a space, and then
type ?.
netsh>show
The following commands are available:
Commands in this context:
show alias - Lists all defined aliases.
show helper - Lists all the top-level helpers.
show mode - Shows the current mode.
netsh>show alias
netsh>show mode
online
netsh>show helper
Helper GUID DLL Filename Command
-------------------------------------- ------------ -------
{00770721-44EA-11D5-93BA-00B0D022DD1F} HNETMON.DLL bridge
{CC41B21B-8040-4BB0-AC2A-820623160940} DGNET.DLL diag
{8B3A0D7F-1F30-4402-B753-C4B2C7607C97} FWCFG.DLL firewall
{0705ECA1-7AAC-11D2-89DC-006008B0E5B9} IFMON.DLL interface
{89D00931-1E00-11D3-8738-00600837C775} IFMON.DLL ip
{05BB0FE9-8D89-48DE-B7BB-9F138B2E950C} IPV6MON.DLL ipv6
{F1EFA7E5-7169-4EC0-A63A-9B22A743E19C} IPV6MON.DLL 6to4
{F1EFA7E5-7169-4EC0-A63A-9B22A743E19C} IPV6MON.DLL isatap
{86A3A33F-4D51-47FF-B24C-8E9B13CEB3A2} IPV6MON.DLL portproxy
{1D8240C7-48B9-47CC-9E40-4F7A0A390E71} DOT3CFG.DLL lan
{00B399EA-447F-4B19-8393-F9D71D7760F9} NAPMONTR.DLL nap
{3F8A1180-FF5D-4B5B-934C-D08DFFBC9CBC} NAPMONTR.DLL client
{0705ECA2-7AAC-11D2-89DC-006008B0E5B9} RASMONTR.DLL ras
{42E3CC21-098C-11D3-8C4D-00104BCA495B} RASMONTR.DLL aaaa
{E0C5D007-D34C-11D2-9B76-00104BCA495B} RASMONTR.DLL appletalk
{13D12A78-D0FB-11D2-9B76-00104BCA495B} RASMONTR.DLL ip
{6FB90155-D324-11D2-9B76-00104BCA495B} RASMONTR.DLL ipx
{69F21BC3-D349-11D2-9B76-00104BCA495B} RASMONTR.DLL netbeui
{65EC23C0-D1B9-11D2-89E4-006008B0E5B9} IPMONTR.DLL routing
{0705ECA0-7AAC-11D2-89DC-006008B0E5B9} IPMONTR.DLL ip
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL autodhcp
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL dnsproxy
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL igmp
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL nat
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL ospf
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL relay
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL rip
{0705ECA3-7AAC-11D2-89DC-006008B0E5B9} IPPROMON.DLL routerdiscovery
{B1641451-84B8-11D2-B940-3078302C2030} IPXMONTR.DLL ipx
{D3FCBA3A-A4E9-11D2-B944-00C04FC2AB1C} IPXPROMN.DLL netbios
{D3FCBA3A-A4E9-11D2-B944-00C04FC2AB1C} IPXPROMN.DLL rip
{D3FCBA3A-A4E9-11D2-B944-00C04FC2AB1C} IPXPROMN.DLL sap
{B2C0EEF4-CCE5-4F55-934E-ABF60F3DCF56} IFMON.DLL winsock
C:\Documents and Settings\reedip\Desktop>nslookup www.google.com
*** Can't find server name for address 192.168.1.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.1
Non-authoritative answer:
Name: www.l.google.com
Address: 209.85.231.104
Aliases: www.google.com
C:\Documents and Settings\reedip\Desktop>ping 209.85.231.104
Pinging 209.85.231.104 with 32 bytes of data:
Reply from 209.85.231.104: bytes=32 time=113ms TTL=56
Reply from 209.85.231.104: bytes=32 time=81ms TTL=56
Reply from 209.85.231.104: bytes=32 time=73ms TTL=56
Reply from 209.85.231.104: bytes=32 time=75ms TTL=56
Ping statistics for 209.85.231.104:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 73ms, Maximum = 113ms, Average = 85ms
C:\Documents and Settings\reedip\Desktop>tracert
Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name
Options:
-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.
-w timeout Wait timeout milliseconds for each reply.
C:\Documents and Settings\reedip\Desktop>tracert www.google.com
Tracing route to www.l.google.com [209.85.231.104]
over a maximum of 30 hops:
1 * * * Request timed out.
2 42 ms 71 ms 27 ms triband-del-59.178.31.254.bol.net.in [59.178.31.
254]
3 55 ms 113 ms 47 ms triband-del-59.179.0.120.bol.net.in [59.179.0.12
0]
4 42 ms 43 ms 43 ms 115.113.254.190.static-delhi.vsnl.net.in [115.11
3.254.190]
5 42 ms 79 ms 55 ms 59.163.16.5.static.vsnl.net.in [59.163.16.5]
6 58 ms 41 ms 41 ms 59.163.55.213.static.vsnl.net.in [59.163.55.213]
7 47 ms 41 ms 39 ms 121.240.0.18.static-Mumbai.vsnl.net.in [121.240.
0.18]
8 40 ms 39 ms 55 ms 216.239.43.214
9 108 ms 77 ms 79 ms 72.14.232.100
10 87 ms 71 ms 71 ms 72.14.238.74
11 74 ms 131 ms 75 ms maa03s01-in-f104.1e100.net [209.85.231.104]
Trace complete.

C:\Documents and Settings\reedip\Desktop>pathping


Usage: pathping [-g host-list] [-h maximum_hops] [-i address] [-n]
[-p period] [-q num_queries] [-w timeout] [-P] [-R] [-T]
[-4] [-6] target_name
Options:
-g host-list Loose source route along host-list.
-h maximum_hops Maximum number of hops to search for target.
-i address Use the specified source address.
-n Do not resolve addresses to hostnames.
-p period Wait period milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout milliseconds for each reply.
-P Test for RSVP PATH connectivity.
-R Test if each hop is RSVP aware.
-T Test connectivity to each hop with Layer-2 priority tags.
-4 Force using IPv4.
-6 Force using IPv6.
C:\Documents and Settings\reedip\Desktop>pathping www.google.co.in
Tracing route to www.l.google.com [209.85.231.104]
over a maximum of 30 hops:
0 hell-o [192.168.1.4]
1 * * *
Computing statistics for 25 seconds...
Source to Here This Node/Link
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
0 hell-o [192.168.1.4]
100/ 100 =100% |
1 --- 100/ 100 =100% 0/ 100 = 0% hell-o [0.0.0.0]
Trace complete.
C:\Documents and Settings\reedip\Desktop>route
Manipulates network routing tables.
ROUTE [-f] [-p] [command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]
-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
-p When used with the ADD command, makes a route persistent across
boots of the system. By default, routes are not preserved
when the system is restarted. Ignored for all other commands,
which always affect the appropriate persistent routes. This
option is not supported in Windows 95.
command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry.
If not specified, it defaults to 255.255.255.255.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.
Examples:
> route PRINT
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
> route PRINT
> route PRINT 157* .... Only prints those matching 157*
> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
CHANGE is used to modify gateway and/or metric only.
> route PRINT
> route DELETE 157.0.0.0
> route PRINT
C:\Documents and Settings\reedip\Desktop>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 19 d1 2b 65 7f ...... Realtek RTL8139 Family PCI Fast Ethernet NIC - P
acket Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.4 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.1.0 255.255.255.0 192.168.1.4 192.168.1.4 20
192.168.1.4 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.4 192.168.1.4 20
224.0.0.0 240.0.0.0 192.168.1.4 192.168.1.4 20
255.255.255.255 255.255.255.255 192.168.1.4 192.168.1.4 1
Default Gateway: 192.168.1.1
===========================================================================
Persistent Routes:
None

Das könnte Ihnen auch gefallen