คำสั่ง “show” นั้นมีอยู่มากมายซึ่งเป็นตัวช่วยในการตรวจสอบข้อมูลภายในไฟล์ต่างๆ
ของ Router และมีประโยชน์สำหรับการค้นหาข้อบกพร่องที่เกิดขึ้นในระบบ
ในแต่ละสถานะเมื่อ login เข้าสู่ Router แล้ว คำสั่ง “show ?” จะถูกนำมาใช้เพื่อแสดงตัวเลือกทั้งหมดสำหรับคำสั่ง
show ที่มีอยู่
ตาราง
Show Commands
คำสั่ง
|
คำอธิบาย
|
show interfaces
|
แสดงข้อมูลทางสถิติทั้งหมดสำหรับส่วนเชื่อมต่อทั้งหมดบน Router ถ้าผู้ใช้ต้องการเห็นข้อมูลทางสถิติของส่วนเชื่อมต่อใดเป็นพิเศษ
ก็ให้ใช้คำสั่ง show interfaces ตามด้วยหมายเลขของส่วนเชื่อมต่อนั้นๆ
เช่น Router#show interfaces serial 1
|
show controllers serial
|
แสดงข้อมูลเฉพาะเกี่ยวกับส่วนเชื่อมต่อทางฮาร์ดแวร์
คำสั่งนี้จะต้องใส่หมายเลข port หรือ
slot/port number ของ serial interface ลงไปด้วย เช่น Router#show controllers serial 0/1
|
show clock
|
แสดงเวลาของ
Router
|
show hosts
|
แสดงรายชื่อโฮสและที่อยู่ของโฮสที่บันทึกไว้ใน Router
|
show users
|
แสดงผู้ใช้ทั้งหมดที่กำลังเชื่อมต่อเข้ามาที่ Router
|
show history
|
แสดงรายการคำสั่งทั้งหมดที่ได้ถูกป้อนเข้าสู่ Router
|
show flash
|
แสดงข้อมูลเกี่ยวกับ flash memory และไฟล์ Cisco IOS
Software ที่บันทึกอยู่ที่ Router นั้น
|
show version
|
แสดง
ข้อมูลเกี่ยวกับซอฟต์แวร์และหมายเลขรุ่นที่ได้ถูกอ่านเข้ามาและกำลังใช้
งานอยู่พร้อมทั้งข้อมูลฮาร์ดแวร์และข้อมูลเกี่ยวกับอุปกรณ์นั้น
|
show arp
|
แสดงข้อมูล address
resolution (ARP) table ของ Router
|
show protocols
|
แสดงข้อมูลสถานะ global และ interface-specific ของโพรโตคอลในชั้นสื่อสารชั้นที่ 3
|
show startup-config
|
แสดงข้อมูลตั้งค่ากำหนดที่บันทึกไว้ใน NVRAM
|
show running-config
|
แสดงข้อมูลค่าขอตัวตั้งค่ากำหนดในไฟล์ตั้งค่ากำหนดหรือค่าของตัวตั้งค่ากำหนดสำหรับส่วนเชื่อมต่อใดๆ
ที่กำลังใช้งานอยู่ หรือ ข้อมูลเกี่ยวกับ map class
|
คำสั่ง show
versions
Show
version Command Output
Router# show version
IOS (tm) 4500 Software
(C4500-J-M), Version 12.1.5
Copyright (c) 1986-1997 by
cisco Systems, inc.
Compiled Tue 08-Oct-13
16:17 by Rbew
Image text base:
0x0303ED8C, data-base: 0x00001000
ROM: System Bootstrap,
Version 5.2 (8a), RELEASE SOFTWARE
ROM: 4500-XBOOT Bootstrap
Software, Version 10.1 (1), RELEASE SOFTWARE (fcl)
Router uptime is 1 week, 3
days, 32 minutes
System start by reload
System image file is
"c4500-js-1", booted via tffp from 171.69.1.129
----- more -----
ข้อมูลข่าวสารจาก
show version มีความสำคัญมาก
หากได้มีการ Upgrade Software บน Router หรือในกรณีที่ต้องการจะค้นหาจุดเสีย
สังเกตว่า คำ สั่งนี้มิเพียงแต่แสดงข้อมูลข่าวสารเกี่ยวกับ
Version ของ Software
ที่กำลังใช้งานใน Router เท่านั้น แต่ยังแสดงสถิติถึงระยะเวลาที่ได้เปิด
router ตัวนี้ ใช้งาน รวมทั้งชื่อของ image File
คำสั่ง show startup-config
show startup-config
Router# show startup-config
Using 1108 out of 130048 bytes
!
version 12.1.5
!
hostname router
------ more -----
Using 1108 out of 130048 bytes
!
version 12.1.5
!
hostname router
------ more -----
คำสั่ง show startup-config เป็นคำสั่งที่ทำให้ผู้บริหารเครือข่าย สามารถมองเห็น ขนาดของ image และคำสั่ง Startup configuration ที่จะถูกนำมาใช้ในครั้งต่อไปที่มีการ Start ตัว router
คำสั่ง show interfaces
คำสั่ง show interfaces เป็นคำสั่งที่ใช้แสดงค่าพารามิเตอร์ที่ได้ถูกจัดตั้งไว้แล้ว
รวมทั้งสถิติการทำงานของ Interface
แบบเวลาจริงที่เกิดขึ้นบน router
ในขณะนั้น คำสั่งนี้มีประโยชน์มาก ในการใช้เพื่อติดตามดู
Interface ชนิดเจาะจง หรือเพื่อดูการเปลี่ยนแปลงที่เกิดขึ้น
หลังจากที่ได้เปลี่ยนแปลง Configuration ของ Interface ไปแล้ว ข้อมูลอันเป็นสถิติที่จะได้จาก
router หลังจากที่เรียกคำสั่งนี้ มีดังนี้
- สถานะของ Interface
- ค่า maximum transmission unit ของ Interface (ค่า Maximum Transmission Unit หรือ MTU เป็นค่าที่กำหนดขนาดของเฟรมหรือ แพ็กเก็ตที่ Router จะอนุญาติให้วิ่งผ่านได้โดยไม่ต้องมีการทำแฟลกเมนต์ หรือแบ่งขนาดของแพ็กเก็ตออกเป็นส่วนๆ)
- ค่าไอพีแอดเดรสของ Interface
- แสดง MAC Address ของ LAN Card
- ชนิดของ Encapsulation ที่ใช้
- จำนวนของแพ็กเก็ตที่ได้รับมาทั้งหมด
- จำนวนของแพ็กเก็ตที่เกิดความผิดพลาด ขณะที่วิ่งเข้าวิ่งออกจาก Router
- จำนวนของ Collision ที่ถูกตรวจพบ (หาก Interface ที่ใช้เป็นระบบอีเทอร์เน็ต)
- คำ สั่ง Show interface เป็นคำสั่งที่มีประโยชน์มาก ในการพิสูจน์ดูการทำงานของ Router อีกทั้งสามารถตรวจสอบความผิดพลาด จากการทำงานของ Router และเครือข่าย ต่อไปนี้เป็นหน้าจอที่แสดงข่าวสาร หลังจากใช้คำสั่ง show interface
Router#show interfaces
Serial0 is up, line protocol is up
Hardware is MK5025
Internet address is 183.8.64.129, subnet mask is 255.255.255.128
MTU 1500 bytes, BW 56 kbit, DLY 20000 usec, rely 255/255, load 9/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 0:00:00, output 0:00:01, output hang never
Last clearing of "show interface" counters never
Output queue 0/40, 0 drops:input queue 0/75, 0 drops
Five minute input rate 1000 bits/sec, 0 packets/sec
Five minute output rate 2000 bits/sec, 0 no buffer
Internet address is 183.8.64.129, subnet mask is 255.255.255.128
MTU 1500 bytes, BW 56 kbit, DLY 20000 usec, rely 255/255, load 9/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 0:00:00, output 0:00:01, output hang never
Last clearing of "show interface" counters never
Output queue 0/40, 0 drops:input queue 0/75, 0 drops
Five minute input rate 1000 bits/sec, 0 packets/sec
Five minute output rate 2000 bits/sec, 0 no buffer
331885 packets input, 62400237 bytes, 0 no buffer
Received 230457 broadcasts, 0 runts, 0 giants
3 input errors, 3 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
403591 packets output, 66717279 byres, 0 underruns
0 output errors, 0 collisions, 8 interface resets, 0 restarts
45 carrier transitions
Received 230457 broadcasts, 0 runts, 0 giants
3 input errors, 3 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
403591 packets output, 66717279 byres, 0 underruns
0 output errors, 0 collisions, 8 interface resets, 0 restarts
45 carrier transitions
------ more -----
0 ความคิดเห็น:
แสดงความคิดเห็น