Bonus Commands

Download Report

Transcript Bonus Commands

Bonus Commands
arp*
getmac
ipconfig*
ncpa.cpl
netsh
netstat
net use*
pathping
ping*
tracert*
Displays and modifies the IP-to-Physical address
translation tables used by address resolution protocol
(ARP)
Shows the mac address(es) of your network adapter(s)
Configure IP
Network Connections
Display or modify the network configuration of a
computer that is currently running
Display networking statistics
Connects a computer to or disconnects a computer
from a shared resource, displays information about
computer connections, or mounts a local share with
different privileges
A traceroute that collects detailed packet loss stats
Test a network connection
Trace route to a host
Bonus Commands (13 slides)
CTEC 110
1
Bonus Commands
mmc*
msconfig*
net
netsh
regedit*
runas
shutdown
Defrag
Bonus Commands (13 slides)
Microsoft management console
system configuration console
manage network resources
configure network interfaces,
Windows firewall & remote access
import or export registry settings
execute a program under a different user
account
shutdown the computer
Disk Defragmenter
CTEC 110
2
Bonus Commands
(Frequently Used!)
arp
ipconfig
mmc
msconfig
net use
nslookup
ping
regedit
Defrag
tracert
***
Bonus Commands (13 slides)
- Displays and modifies the IP-to-Physical
Address translation tables
- Display adapter IP information
- Administer networks, computers, services, and
other system components
- System Configuration tool
- Show network connections
- Domain Name Service lookups
- Test a device connection (ICMP) ***
- System Registry tool
- Disk Defragmenter tool
- IP route tracing tool (ICMP) ***
- Some devices have ICMP turned off
CTEC 110
3
Bonus Commands
arp
- Displays and modifies the IP-to-Physical Address translation tables
ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr] [-v]
-a
-v
-d
-s
Displays current ARP entries by interrogating the current protocol data.
Displays current ARP entries in verbose mode. All invalid entries and
entries on the loop-back interface will be shown.
Deletes the host specified by inet_addr. inet_addr may be wildcarded
with * to delete all hosts.
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.
Examples:
> arp -s 157.55.85.212 00-aa-00-62-c6-09
> arp -a
Bonus Commands (13 slides)
CTEC 110
.... Adds a static entry.
.... Displays the arp table.
4
Bonus Commands
Ipconfig – Display adapter IP information
IPCONFIG [options]
Examples:
Ipconfig
ipconfig /all
ipconfig /renew
ipconfig /renew EL*
ipconfig /release *Con*
... Show information
... Show detailed information
... renew all adapters
... renew any connection that has its name starting with EL
... release all matching connections,
eg. "Local Area Connection 1" or "Local Area Connection 2"
ipconfig /allcompartments ... Show information about all compartments
ipconfig /allcompartments /all ... Show detailed information about all compartments
Bonus Commands (13 slides)
CTEC 110
5
Bonus Commands
mmc – Microsoft Management Console
Microsoft Management Console (MMC) hosts administrative tools that you
can use to administer networks, computers, services, and other system
components.
Bonus Commands (13 slides)
CTEC 110
6
Bonus Commands
msconfig – Microsoft Configuration Tool
System Configuration is a tool that can help identify problems
that might prevent Windows from starting correctly.
You can start Windows with common services and startup
programs turned off and then turn them back on, one at a time.
If a problem doesn't occur when a service is turned off, but does
occur when that service is turned on, then the service could be
the cause of the problem.
System Configuration is intended to find and isolate problems,
but it's not meant as a startup management program.
Bonus Commands (13 slides)
CTEC 110
7
Bonus Commands
net use – Display network connections
NET USE
[devicename | *] [\\computername\sharename[\volume] [password |
*]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]
Bonus Commands (13 slides)
CTEC 110
8
Bonus Commands
nslookup - Nslookup.exe is a command-line
administrative tool for testing and
troubleshooting DNS servers.
Usage:
nslookup [-opt ...]
# interactive mode using default server
nslookup [-opt ...] - server # interactive mode using 'server'
nslookup [-opt ...] host
# just look up 'host' using default server
nslookup [-opt ...] host server # just look up 'host' using 'server'
Bonus Commands (13 slides)
CTEC 110
9
Bonus Commands
PING – test a network connections
PING [options] destination_host
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
Options:
-t
-a
-n
-l
-f
-i
-v
-r
-s
-j
-k
-w
-R
-S
-4
-6
count
size
TTL
TOS
count
count
host-list
host-list
timeout
srcaddr
Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
Resolve addresses to hostnames.
Number of echo requests to send.
Send buffer size.
Set Don't Fragment flag in packet (IPv4-only).
Time To Live.
Type Of Service (IPv4-only. This setting has been deprecated
and has no effect on the type of service field in the IP Header).
Record route for count hops (IPv4-only).
Timestamp for count hops (IPv4-only).
Loose source route along host-list (IPv4-only).
Strict source route along host-list (IPv4-only).
Timeout in milliseconds to wait for each reply.
Use routing header to test reverse route also (IPv6-only).
Source address to use.
Force using IPv4.
Force using IPv6.
Bonus Commands (13 slides)
CTEC 110
10
Bonus Commands
regedit – Registry Editor
System configuration information is stored centrally in a
hierarchical database called the registry. You can use Registry
Editor to add and edit registry keys and values, restore the
registry from a backup or to default values, and to import or
export keys for reference or backup
Bonus Commands (13 slides)
CTEC 110
11
Bonus Commands
Defrag - Locates and consolidates fragmented files on local volumes to improve system
performance.
Syntax:
defrag <volumes> | /C | /E <volumes> [/H] [/M | [/U] [/V]]
defrag <volumes> | /C | /E <volumes> /A [/H] [/M | [/U] [/V]]
defrag <volumes> | /C | /E <volumes> /X [/H] [/M | [/U] [/V]]
defrag <volume>
/T [/H]
[/U] [/V]
Parameters:
Value
/A
/C
/E
/H
/M
/T
/U
/V
/X
Description
Perform analysis on the specified volumes.
Perform the operation on all volumes.
Perform the operation on all volumes except those specified.
Run the operation at normal priority (default is low).
Run the operation on each volume in parallel in the background.
Track an operation already in progress on the specified volume.
Print the progress of the operation on the screen.
Print verbose output containing the fragmentation statistics.
Perform free space consolidation on the specified volumes.
Examples:
defrag C: /U /V
defrag C: D: /M
defrag C:\mountpoint /A /U
defrag /C /H /V
Bonus Commands (13 slides)
CTEC 110
12
Bonus Commands
tracert – Trace IP Route
Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout]
[-R] [-S srcaddr] [-4] [-6] target_name
Options:
-d
-h
-j host-list
-w timeout
-R
-S srcaddr
-4
-6
Bonus Commands (13 slides)
Do not resolve addresses to hostnames.
maximum_hops Maximum number of hops to search
for target.
Loose source route along host-list (IPv4-only).
Wait timeout milliseconds for each reply.
Trace round-trip path (IPv6-only).
Source address to use (IPv6-only).
Force using IPv4.
Force using IPv6.
CTEC 110
13