sales@gambitcomm.com   (603) 889 5100.
x
This website uses cookies. More info . That's Fine

Get Started

  Home / Get Started

Get started with the MIMIC CLI / IOS Simulator

MIMIC CLI / IOS Simulator is an optional MIMIC protocol module that allows to simulate command line interfaces (CLI) such as Cisco IOS and Juniper JUNOS. This page helps you to get started with IOS simulation. To get started with JUNOS CLI simulation see this other page.

It can be enabled after the base MIMIC installation as below.

    Enable CLI Simulator in MIMIC

  1. At this point you should have MIMIC installed, and the MIMICview GUI running (see details) . If you don't have MIMICview running, please consult your license e-mail to get it installed and running.

  2. Check whether you already have TELNET and SSH enabled in MIMIC as shown in the Help -> About Mimic... dialog in MIMICview. It should be listed under Loaded protocols. If already there, then skip to step 7.

  3. Run Protocol Wizard using the Wizards -> Protocol Wizard menu in MIMICView (see details)

  4. Select IOS Simulator in Select Protocols dialog if not already selected. Press Next.

  5. Supply corresponding license keys from the license email in the Supply License Keys dialog. Then press Next.

  6. The Result Installing/Uninstalling Protocols dialog shows what got done. Press Finish to proceed. When the simulator restarts, you should have CLI Simulator enabled.

    Download optional sample CLI packages

  7. At this point, you should have CLI Simulator enabled in MIMIC as shown in the Help -> About Mimic... dialog in MIMICview. TELNET, SSH should be listed under Loaded protocols. If not, send us the MIMIC log. (see details)

  8. Invoke the MIMICview Wizard -> Update menu to download and install Cisco devices which is listed under Device Library. (see details)

    Firewall permission for www.gambitcomm.com , port 80 is needed to run the Update Wizard over the web.

    Please visit this link for alternative MIMIC update instructions in case you don't have Internet to use the Update Wizard over the web connection on the MIMIC system:

    http://www.mirror1.gambitcommunications.com/update/mibs/mimic-update-xxxx/

    where xxxx is current MIMIC version e.g. for 20.10 it is 2010

    Configure a CLI agent for SSH

  9. After the installation is complete, load the lab configuration ios.cfg using the MIMICview File -> Open menu. (see details) . It is already configured for TELNET.

  10. Select agent 1 and invoke the Edit -> Configure -> All dialog (see details) . Go to the Advanced tab and select SSH for protocol. Keep others as they are.

    NOTE: If you are running a SSH server on your MIMIC host, by default it will prevent starting simulated SSH servers on the standard port. You can either configure your simulated SSH servers on a different port, or instruct the host SSH server to only listen on a single IP address, eg. on Linux change the ListenAddress in /etc/ssh/sshd_config (see details) . You can configure different ports in MIMIC agent using respective tabs in the "Edit->Configure->All" dialog.

  11. Start the agent and now it is accessible using both SSH and Telnet clients and it has full support of Cisco IOS commands that are implemented in MIMIC.

    Default username/password is lab/lab123 and enable mode password is enable123

  12. You can implement any CLI in your own simulated device by applying the rule files similar to ones found in our Cisco Device Library, e.g., c3640_v124.rul. Moreover you can add more commands by following same procedures for the commands that already exist in those rule files. Please invoke the Help->Contents menu and refer to the section "Optional Protocol Modules->MIMIC TELNET Protocol Module Guide", or on the cloud .

MIMIC CLI Simulator

MIMIC simulations can be configured to respond to CLI commands over SSH/TELNET connections through use of pre-configured rule files.

The simulations, when configured to use Telnet, are associated with specific rules files. The rules file in use can be configured by clicking the TELNET tab in either the Edit->Add Agent dialog (when adding the agent to the MIMICView GUI) or the Edit->Configure->TELNET dialog (for existing agents).

The rules file contains instructions for the simulation to use in matching it's response to CLI commands received. These can be static (canned) responses, or dynamic by invoking procedures using the MIMIC TELNET extensions. Our online help provides reference for the available commands found in the MIMIC TELNET extensions, as well as usage examples.

We ship a sample rules file with MIMIC which can be found in the /scripts/telnet directory. This is a default rules file which is used when any simulation is configured to run telnet protocol. Also in the same directory are .mtcl files. These sample files contain a subset of the possible CLI commands and are provided as guidance to users who wish to expand the simulations' CLI support.

Another, more extensive set of rules is available with our Cisco Device Library, downloadable with the Wizard->Update menu.

It is designed to work with devices using syntax similar to the C2600 series routers, and contains support for "configure terminal" mode, selection and configuration of serial and Ethernet interfaces.

A file will be unpacked in the MIMIC installation directory called README_mimic_ios.txt which will contain specific instructions on using the included simulations, as well as general instructions on installing MIMIC CLI simulation.

We encourage you to look at the rules files and associated scripts for an idea on the type of configuration which will be required to accommodate your testing needs.

MIMIC CLI Recorder

The MIMIC CLI Recorder is a utility used to create basic CLI simulations. One or more sessions between a telnet client (or management application) and a CLI device can be recorded and used as input for the recorder.

The recorder will produce a rules file, which can be used for responding to CLI commands from a TELNET/SSH client or as a basis for adding support for the additional CLI commands. MIMICView has "Wizard->CLI" menu for this purpose.

Please see the MIMIC Online Help sections for IOS Simulator Guide for further guidance, or access it here .