'commands'에 해당되는 글 18건
- 2007/05/03 unix 계열의 os 에서 실시간으로 log 확인 하기
- 2006/04/26 윈도우 기본 명령어로 가상 드라이브 만들기. (10)
- 2006/01/24 arp 명령어
- 2006/01/23 netstat 명령어
- 2006/01/19 nslookup 명렁어
- 2006/01/13 ping 정리
- 2005/11/08 sh 명령어
- 2005/10/11 sh cdp neighbors detail
- 2005/08/16 switch의 연결된 host port정보 알기(?)
- 2005/08/05 sh port capabilities
unix 계열의 os 에서 실시간으로 log 확인 하기
unix 계열의 OS에서 log를 저장할 때 실시간으로 log 가 계속 쌓이는 것을 보려면
tail -f <로그파일명> 을 하면 됩니다.
log file 의 내용을 검색 할때는
more <로그파일명> | grep <필터대상> 을 하면 됩니다.
응용을 한다면 tail -f | grep <필터대상> 을 해서 실시간으로 필요한 log 만 확인 할 수도 있겠죠. :)
'tip' 카테고리의 다른 글
| 원격에서 터미널 서비스 세션 끊기 (2) | 2007/11/09 |
|---|---|
| svchost.exe cpu,memory 점유 문제 해결 (28) | 2007/05/23 |
| unix 계열의 os 에서 실시간으로 log 확인 하기 (0) | 2007/05/03 |
| 한영 자막 합치기 (4) | 2007/04/13 |
| SecurtCrt session을 backup & restore 하는 방법 (0) | 2007/04/04 |
| 다음 수신 확인 기능 피해 가기 (2) | 2007/03/13 |
윈도우 기본 명령어로 가상 드라이브 만들기.
C:\>subst /?
경로를 드라이브 문자로 지정합니다.
SUBST [드라이브1: [드라이브2:]경로]
SUBST 드라이브1: /D
드라이브1: 경로에 지정할 가상 드라이브를 지정합니다.
[드라이브2:]경로 가상 드라이브에 지정할 실제 드라이브와 경로를
지정합니다.
/D 가상 드라이브를 지웁니다.
매개 변수를 지정하지 않고 SUBST를 사용하면, 현재의 가상 드라이브를 표시합니다.
subst라는 명령어로 가상 드라이브를 만들 수 있습니다.
사용 법은 위에 설명 되어 있는 대로..
SUBST [드라이브1: [드라이브2:]경로]
C:\>subst d: c:\data\wlse
C:\>d:
D:\>dir
D 드라이브의 볼륨: C_DRIVE
볼륨 일련 번호: xxxx-abcd
D:\ 디렉터리
2006-04-26 오후 02:23 <DIR> .
2006-04-26 오후 02:23 <DIR> ..
2001-06-07 오전 11:29 917 autorun.bat
2001-05-25 오전 09:49 31 AUTORUN.INF
2001-06-02 오후 05:01 991 check-server.xml
2001-06-07 오전 11:27 390 index.html
2006-03-13 오후 12:08 <DIR> install
2000-08-10 오후 12:23 56 java.policy.all
2006-03-13 오후 12:08 <DIR> jini
2006-03-13 오후 12:08 <DIR> jre
2006-03-13 오후 12:08 <DIR> packages
2001-05-24 오후 05:24 2,901 server.xml
2001-06-02 오후 06:35 807 startWebServer.bat
2001-06-05 오전 08:41 757 stopWebServer.bat
2006-03-13 오후 12:08 <DIR> tomcat
예제를 보시면 "c:\data\wlse" 의 폴더를 d: 드라이브로 인식하게 만들어 줄 수 있습니다.
탐색기에서도 d: 로 인식을 합니다.
c:\data\wlse 에 자동 실행되는 파일이 있었는데 d: 드라이브로 인식하면서 자동으로 실행 되는 군요.
삭제할때는 위의 경우에는 SUBST d: /D 를 하면 되겠네요. :)
'tip' 카테고리의 다른 글
| HDD 구매시 AS 기간 조회 (0) | 2006/07/07 |
|---|---|
| 처음 하는 dvd rw firmware update (0) | 2006/05/07 |
| 윈도우 기본 명령어로 가상 드라이브 만들기. (10) | 2006/04/26 |
| 구글 검색 방법 & 기능 (6) | 2006/03/23 |
| 이미지 파일에 대한 무단 링크 방지!! (0) | 2006/02/22 |
| 보일러 동파 후기 (6) | 2006/02/07 |
-
-
-
bang 2006/04/27 09:35
서브 디렉토리를 하나의 가상 드라이브로 지정하여 Access 할 수 있다는 거죠.
활용 하기에 따라 유용하게 사용 할 수 있는 명령어 입니다. ^^
-
-
-
-
C:>arp -a
Interface: 192.168.0.22 --- 0x2
Internet Address Physical Address Type
192.168.0.1 00-00-00-aa-bb-cc dynamic
192.168.0.3 00-00-aa-bb-cc-00 dynamic
# Delete the current arp entry for 192.168.0.1
c:>arp -d 192.168.0.1
# add a static entry for 192.168.0.1
c:>arp -s 192.168.0.1 00-00-00-11-22-33
# Display the arp table
C:>arp -a
Interface: 192.168.0.22 --- 0x2
Internet Address Physical Address Type
192.168.0.1 00-00-00-11-22-33 static
192.168.0.3 00-00-aa-bb-cc-00 dynamic
'network' 카테고리의 다른 글
| EIGRP(Enhanced Interior Gateway Routing Protocol) (0) | 2006/04/06 |
|---|---|
| Ccnp - 642-891 Composite (0) | 2006/03/20 |
| arp 명령어 (0) | 2006/01/24 |
| netstat 명령어 (0) | 2006/01/23 |
| nslookup 명렁어 (0) | 2006/01/19 |
| ping 정리 (0) | 2006/01/13 |
netstat 명령어
Displays protocol statistics and current TCP/IP network connections.
NETSTAT [-a] [-e] [-n] [-o] [-s] [-p proto] [-r] [interval]
-a Displays all connections and listening ports.
-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.
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.
2.옵션
Proto Local Address Foreign Address State
TCP bang:4057 localhost:19801 ESTABLISHED
TCP bang:19801 localhost:4057 ESTABLISHED
c:>netstat -n
Proto Local Address Foreign Address State
TCP 127.0.0.1:4057 127.0.0.1:19801 ESTABLISHED
TCP 127.0.0.1:19801 127.0.0.1:4057 ESTABLISHED
C:>netstat -e
Interface Statistics
Received Sent
Bytes 1481212865 483074368
Unicast packets 1648675 1259168
Non-unicast packets 61286 8634
Discards 0 0
Errors 0 0
Unknown protocols 97189
C:>netstat -s
IPv4 Statistics
Packets Received = 1665232
Received Header Errors = 0
Received Address Errors = 83
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 0
Received Packets Delivered = 1665149
Output Requests = 1269804
Routing Discards = 0
Discarded Output Packets = 0
Output Packet No Route = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
ICMPv4 Statistics
Received Sent
Messages 8320 4837
Errors 0 4
Destination Unreachable 3979 0
Time Exceeded 2 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 0 0
Echos 69 4768
Echo Replies 4270 65
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0
TCP Statistics for IPv4
Active Opens = 25332
Passive Opens = 6437
Failed Connection Attempts = 3345
Reset Connections = 3321
Current Connections = 13
Segments Received = 1538885
Segments Sent = 1151813
Segments Retransmitted = 7219
UDP Statistics for IPv4
Datagrams Received = 117560
No Ports = 8635
Receive Errors = 0
Datagrams Sent = 105812
'network' 카테고리의 다른 글
| Ccnp - 642-891 Composite (0) | 2006/03/20 |
|---|---|
| arp 명령어 (0) | 2006/01/24 |
| netstat 명령어 (0) | 2006/01/23 |
| nslookup 명렁어 (0) | 2006/01/19 |
| ping 정리 (0) | 2006/01/13 |
| Telnet log를 file로 자동 저장. (0) | 2006/01/13 |
nslookup 명렁어
Default Server: xxx.xxx.com
Address: 192.168.1.100
Non-authoritative answer:
Name: banggae.com
Address: 218.144.240.79
Default Server: xxx.xxx.com
Address: 192.168.1.100
> set query=all (모든 정보를 표시 해 줍니다.)
> banggae.com
Server: xxx.xxx.com
Address: 192.168.1.100
Non-authoritative answer:
banggae.com MX preference = 10, mail exchanger = mail.banggae.com
banggae.com nameserver = ns.80port.com
banggae.com nameserver = ns1.80port.com
banggae.com nameserver = ns1.80port.com
banggae.com nameserver = ns.80port.com
mail.banggae.com internet address = 218.144.240.71
ns.80port.com internet address = 218.144.240.65
ns1.80port.com internet address = 218.144.240.66
>
>
> set query=MX (mail server records만 보여 줍니다.)
> banggae.com
Server: xxx.xxx.com
Address: 192.168.1.100
Non-authoritative answer:
banggae.com MX preference = 10, mail exchanger = mail.banggae.com
banggae.com nameserver = ns1.80port.com
banggae.com nameserver = ns.80port.com
mail.banggae.com internet address = 218.144.240.71
ns.80port.com internet address = 218.144.240.65
ns1.80port.com internet address = 218.144.240.66
>
>
> set query=HINFO
> banggae.com
Server: xxx.xxx.com
Address: 192.168.1.100
banggae.com
primary name server = ns.80port.com
responsible mail addr = webmaster.80port.com
serial = 2005092710
refresh = 21600 (6 hours)
retry = 1800 (30 mins)
expire = 604800 (7 days)
default TTL = 21600 (6 hours)
> exit
C:>
아래와 같은 방법으로 사용 하셔도 됩니다.
nslookup banggae.com
nslookup -querytype=mx banggae.com
nslookup -querytype=HINFO banggae.com
기타 옵션으로는 A,ANY,CNAME,NS,MX,PTR,SOA,TXT,LOC,RP,AXFR 등이 있습니다.
'network' 카테고리의 다른 글
| arp 명령어 (0) | 2006/01/24 |
|---|---|
| netstat 명령어 (0) | 2006/01/23 |
| nslookup 명렁어 (0) | 2006/01/19 |
| ping 정리 (0) | 2006/01/13 |
| Telnet log를 file로 자동 저장. (0) | 2006/01/13 |
| 삽질 #2 (0) | 2006/01/12 |
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] target_name
Options:
-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.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.
Pinging 192.168.0.10 with 32 bytes of data:
Reply from 192.168.0.10: bytes=32 time=30ms TTL=255
Reply from 192.168.0.10: bytes=32 time=15ms TTL=255
Reply from 192.168.0.10: bytes=32 time=15ms TTL=255
Reply from 192.168.0.10: bytes=32 time=10ms TTL=255
Ping statistics for 192.168.0.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 30ms, Average = 17ms
ping은 매번 32 byte를 data에 적재 하여 output를 보여 줍니다.
C:WINDOWSsystem32>ping 172.16.10.99
Pinging 172.16.10.99 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 172.16.10.99:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
ping time를 5000으로 늘려 줍니다.
5초 이하로 reply가 돌아 온다면 output가 출력 되겠죠~
C:WINDOWSsystem32>ping 172.16.10.99 -w 5000
Pinging 172.16.10.99 with 32 bytes of data:
Reply from 172.16.10.99: bytes=32 time=1032ms TTL=103
Reply from 172.16.10.99: bytes=32 time=1055ms TTL=103
Reply from 172.16.10.99: bytes=32 time=1059ms TTL=103
Reply from 172.16.10.99: bytes=32 time=1096ms TTL=103
Ping statistics for 172.16.10.99:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1055ms, Maximum = 1032ms, Average = 1010ms
ping 명령어를 이용하여 MTU(Maximum Transfer Unit)를 확인
ping -t 옵션 확인
ping -a 옵션 확인
to be continued......
'network' 카테고리의 다른 글
| netstat 명령어 (0) | 2006/01/23 |
|---|---|
| nslookup 명렁어 (0) | 2006/01/19 |
| ping 정리 (0) | 2006/01/13 |
| Telnet log를 file로 자동 저장. (0) | 2006/01/13 |
| 삽질 #2 (0) | 2006/01/12 |
| Network cabling (4) | 2006/01/11 |
NAT 사용시 송신지 address와 수신지 address의 적절한 변환, 사용된 트랜스포트 계층 프로토콜, 세션에 사용된 포트(또는 Application)를 확인 할 수 있다.
'network' 카테고리의 다른 글
| - Internal Configuration (Service) Components. (0) | 2005/11/29 |
|---|---|
| 특정 범위의 IP를 스캔할 수 있는 WPSweep (2) | 2005/11/17 |
| sh 명령어 (0) | 2005/11/08 |
| 192.168.1.67인 ip packet이 router로 전송 되는 시나리오 (0) | 2005/11/08 |
| Cisco IOS Reference Guide (0) | 2005/11/03 |
| Three Layer (4) | 2005/11/03 |
sh cdp neighbors detail
------------------------------------------------------
sh cdp neighbors detail(=sh cdp entry *)
Device ID: xxx
Entry address(es):
IP address: x.x.x.x
Platform: cisco WS-C3548-XL, Capabilities: Trans-Bridge Switch
Interface: FastEthernet0, Port ID (outgoing port): FastEthernet0/1
Holdtime : 120 sec
Version :
Cisco Internetwork Operating System Software
IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5)WC9a, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Tue 13-Jan-04 11:26 by antonino
advertisement version: 2
Protocol Hello: xxxxxx, Protocol ID=xxxxxx; payload len=xx, value=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
VTP Management Domain: 'xxx'
Native VLAN: 100
Duplex: full
------------------------------------------------------
sh cdp traffic
CDP counters :
Total packets output: 742477, Input: 126463
Hdr syntax: 0, Chksum error: 0, Encaps failed: 0
No memory: 0, Invalid packet: 0, Fragmented: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 742477, Input: 126463
------------------------------------------------------
no cdp run
cdp run
'network' 카테고리의 다른 글
| Wap Flash 에 ios가 없을때 boot loader 상태에서 image 올리는방법 (0) | 2005/10/14 |
|---|---|
| Adminstative Distance (1) | 2005/10/13 |
| sh cdp neighbors detail (0) | 2005/10/11 |
| Static Routing & Default Routing (0) | 2005/10/11 |
| ccnp (0) | 2005/09/22 |
| Routing protocol (0) | 2005/09/21 |
switch의 연결된 host port정보 알기(?)
switch에 host가 연결 되어 있습니다.
어느 port에 연결 되어 있는 지가 궁금 할 때가 있을 것입니다.(과연 -_-)
찾는 방법
1. switch에 접속한다.
2. ping ip(알고자 하는 host)
3. sh arp(알고자 하는 ip & mac address가 나옵니다.)
4. sh mac-address-table | inc mac(알고자 하는 host의 mac)
sh mac-address-table address hh.hh.hh
여기 까지 하면 어느 interface에 연결 되어 있는지 확인 가능 합니다.
더 쉬운 방법이 있다면 귀띔을 ^^
switch의 port 연결 정보 알기(catos)
1.switch에 접속한다.
2.ping ip
3.sh arp
catos는 3번가지만 하면 어느 port에 연결 되어 있는지 확인 가능 합니다.
역시 더 쉬운 방법이 있다면 귀띔을 부탁드립니다.
내용 추가
catos의 경우
명령으로 상대편의 연결 되어 있는 port를 확인 할 수 있습니다.
'network' 카테고리의 다른 글
| vlan test (0) | 2005/08/18 |
|---|---|
| port mirroring setting (0) | 2005/08/18 |
| switch의 연결된 host port정보 알기(?) (0) | 2005/08/16 |
| sh port capabilities (0) | 2005/08/05 |
| switch password recovery (0) | 2005/08/05 |
| Cisco ACS upgrade 문제 해결 (0) | 2005/08/04 |
Trackback : http://www.banggae.com/trackback/268
-
Subject t ttoioeeiNnsuoN lq
2008/08/05 21:13
t vigtontyeord acnnlf'ikma dgarokou e btd uoesDiToaorb c I n.sw eedIt p y
sh port capabilities
sh port capabilities
bang (enable) sh port capabilities 4/25
Model WS-X4148-RJ
Port 4/25
Type 10/100BaseTX
Speed auto,10,100
Duplex half,full
Trunk encap type 802.1Q
Trunk mode on,off,desirable,auto,nonegotiate
Channel 4/1-48
Flow control no
Security yes
Dot1x yes
Membership static,dynamic
Fast start yes
QOS scheduling rx-(none),tx-(2q1t)
CoS rewrite no
ToS rewrite no
Rewrite no
UDLD yes
Inline power no
AuxiliaryVlan 1..1000,1025..4094,untagged,none
SPAN source,destination,reflector
Link debounce timer yes
IGMPFilter yes
Dot1q-all-tagged no
Jumbo frames no
'network' 카테고리의 다른 글
| port mirroring setting (0) | 2005/08/18 |
|---|---|
| switch의 연결된 host port정보 알기(?) (0) | 2005/08/16 |
| sh port capabilities (0) | 2005/08/05 |
| switch password recovery (0) | 2005/08/05 |
| Cisco ACS upgrade 문제 해결 (0) | 2005/08/04 |
| User Guide for Cisco Secure ACS Solution Engine Version 3.3 (0) | 2005/07/25 |





