Using Logger Commands in the Text Interface

The Logger text interface lets you enter commands in a console window instead of, or in addition to, using the graphical user interface.

To start the Logger with the console enabled, in the lgrConfig.xml file, set the value of the showConsole variable to true.

<var name="showConsole" type="bool" value="true" />

or start the Logger with the -c command-line option:

logger -c 1

Entering Commands

The text interface has commands for most Logger functions. Most commands consist of a command and one or more arguments, for example:

OpenFile ../logger_tapes/test.lgr

Commands must include all arguments and the arguments must be typed in the correct order. (For command descriptions, please see Command Descriptions.) For example, in the SetTimeManagement command, you must include values for each time management mode, even if you only want to use one of them:

SetTimeManagement true true true true 0.1

String list parameters are encoded as quoted strings separated by spaces. Strings in a string list may not have spaces, for example:

SetSubscriptionLists "ObjectRoot.BaseEntity.PhysicalEntity.Platform.Aircraft ObjectRoot.BaseEntity.PhysicalEntity.Radio InteractionRoot.WeaponFire"

You can manipulate the command line as follows:

  • To execute a command, press <Enter>.
  • To reset a command entry, press <Escape>.
  • To execute a previously executed command, press the <Up Arrow> key until the command is displayed. Then, press <Enter>.
  • If you have displayed a previous command by pressing <Up Arrow>, press <Down Arrow> to move back down the command list.

Displaying a List of Commands

You can display a list of commands. They are displayed in the format:

command_name argument_1_name(argument_type) argument_2_name(argument_type) ...

To display the list of available commands, type help in the console window and press <Enter>.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com