آخر الأخبار

2.3 The Command Structureبنية الأوامر

 2.3 The Command Structureبنية الأوامر    

Basic IOS Command Structure       IOS البنية الأساسية لأمر    


        Keyword – This is a specific parameter defined in the operating system (in the figure, ip protocols).

        –- هي علامة معيَّنة تحدد في نظام التشغيل (في الشكل،  ip protocols)

        Argument - This is not predefined; it is a value or variable defined by the user (in the figure, 192.168.10.5).

        لا تُحدد مسبقًا؛ وهي قيمة أو متغيّر يُحدده المستخدم (في الشكل،  192.168.10.5)

 IOS Command Syntax Check       IOS فحص صياغة أمر

A command might require one or more arguments. To determine the keywords and arguments required for a command, refer to the command syntax.

قد يتطلب الأمر argument واحدة أو أكثر. ولتحديد keywords و arguments اللازمة للأمر، راجع صياغة الأمر.

        Boldface text indicates commands and keywords that are entered as shown.

        يشير النص المكتوب بخط غامق إلى الأوامر و keywords التي تقوم بإدخالها حرفيًا كما هو موضح.

        Italic text indicates an argument for which the user provides the value.

        ويشير النص المكتوب بخط مائل إلى argument قام المستخدم بتوفير قيمة لها.

 

Convention

Description

boldface

Boldface text indicates commands and keywords that you enter literally as shown.

italics

Italic text indicates arguments for which you supply values.

[x]

Square brackets indicate an optional element (keyword or argument).

{x}

Braces indicate a required element (keyword or argument).

[x {}]

Braces and vertical lines within square brackets indicate a required choice within an optional element. Spaces are used to clearly delineate parts of the command.

 The command syntax provides the pattern, or format, that must be used when entering a command.

  • The command is ping and the user-defined argument is the ip-address of the destination device. For example, ping 10.10.10.5.


  • The command is traceroute and the user-defined argument is the ip-address of the destination device. For example, traceroute 192.168.254.254.


  • If a command is complex with multiple arguments, you may see it represented like this:


  IOS Help Features

The IOS has two forms of help available: context-sensitive help and command syntax check.

التعليمات الحساسة للسياق ومدقق صياغة الأوامر.

        Context-sensitive help enables you to quickly find answers to these questions:

        تمكنك التعليمات الحساسة للسياق من العثور بسرعة على إجابات لهذه الأسئلة:

 Which commands are available in each command mode?

ما هي الأوامر المتوفرة في كل وضع أوامر؟

 Which commands start with specific characters or group of characters?

ما هي الأوامر التي تبدأ بأحرف محددة أو مجموعة من الأحرف؟

 Which arguments and keywords are available to particular commands?

ما هي arguments و keywords المتاحة لأوامر معينة؟

 


        Command syntax check verifies that a valid command was entered by the user.

        يتحقق مدقق صياغة الأمر من إدخال المستخدم لأمر صالح.

If the interpreter cannot understand the command being entered, it will provide feedback describing what is wrong with the command.

إذا لم يتمكن مترجم الأوامر من فهم الأمر الذي يتم إدخاله، فسيقدم تعليقًا لوصف الخطأ الموجود بالأمر.

 


Hot Keys and Shortcutsمفاتيح التشغيل السريع والاختصارات 

        The IOS CLI provides hot keys and shortcuts that make configuring, monitoring, and troubleshooting easier.

        تقدم واجهة سطر الأوامر (CLI) لنظام تشغيل الشبكة البينية (IOS) مفاتيح التشغيل السريع والاختصارات التي تجعل من عملية التكوين والمراقبة واستكشاف الأخطاء وإصلاحها أمرًا أكثر سهولة.


        Commands and keywords can be shortened to the minimum number of characters that identify a unique selection. For example, the configure command can be shortened to conf because configure is the only command that begins with conf.

        يمكن اختصار الأوامر والكلمات الأساسية إلى الحد الأدنى لعدد الأحرف التي تحدد تحديدًا فريدًا. على سبيل المثال, يمكن اختصار الأمر configure إلى conf لأن configure هو الأمر الوحيد الذي يبدأ بالأحرف conf.


 Hot Keys and Shortcuts (Cont.)

  • The table below is a brief list of keystrokes to enhance command line editing.
  • الجدول أدناه هو قائمة موجزة من ضربات المفاتيح (Keystroke) لتحسين تحرير سطر الأوامر.

Keystroke

Description

Tab

Completes a partial command name entry.

يكمل إدخال اسم الأمر الجزئي.

Backspace

Erases the character to the left of the cursor.

لمسح الحرف الموجود على يسار المؤشر.

Left Arrow or Ctrl+B

Moves the cursor one character to the left.

لتحريك المؤشر بمقدار حرف واحد إلى اليسار.

Right Arrow or Ctrl+F

Moves the cursor one character to the right.

لتحريك المؤشر بمقدار حرف واحد إلى اليمين.

Up Arrow or Ctrl+P

Recalls the commands in the history buffer, beginning with the most recent commands.

لاستدعاء الأمر في مخزن المحفوظات، بدايةً من الأوامر الأحدث.

         When a command output produces more text than can be displayed in a terminal window, the IOS will display a “--More--” prompt. The table below describes the keystrokes that can be used when this prompt is displayed.

        عندما ينتج إخراج الأمر نصًا أكثر مما يمكن عرضه في نافذة طرفية، سيعرض IOS موجه «—More—» . يوضح الجدول أدناه ضغطات المفاتيح (keystrokes) التي يمكن استخدامها عند عرض هذه المطالبة.

Keystroke

Description

Enter Key

Displays the next line.

Space Bar

Displays the next screen.

Any other key

Ends the display string, returning to privileged EXEC mode.

 The table below lists commands that can be used to exit out of an operation

        يسرد الجدول أدناه الأوامر التي يمكن استخدامها للخروج من العملية.

Keystroke

Description

Ctrl-C

When in any configuration mode, ends the configuration mode and returns to privileged EXEC mode.

في أي وضع تكوين، يؤدي إلى إنهاء وضع التكوين والعودة إلى الوضع التنفيذي (EXEC) ذي الامتيازات.

Ctrl-Z

When in any configuration mode, ends the configuration mode and returns to privileged EXEC mode.

في أي وضع تكوين، يؤدي إلى إنهاء وضع التكوين والعودة إلى الوضع التنفيذي (EXEC) ذي الامتيازات.

Ctrl-Shift-6

All-purpose break sequence used to abort DNS lookups, traceroutes, pings, etc.

تسلسل فاصل متعدد الأغراض يستخدم لإحباط عمليات البحث عن  وDNS traceroutes و pings وغيرها.

Post a Comment

إذا كان لديك أي استفسار أو سؤال حول الموضوع، لا تتردد في كتابة تعليقك. سنقوم بالرد عليك في أقرب وقت بعد رؤية تعليقك

Previous Post Next Post

نموذج الاتصال