Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/GNS3/dynamips

Dynamips development
https://github.com/GNS3/dynamips

cisco emulator

Last synced: 3 months ago
JSON representation

Dynamips development

Awesome Lists containing this project

README

        

Description of the hypervisor mode
==================================

The hypervisor mode of dynamips allows you to run simultaneously
many virtual router instances, and to simulate ATM, Ethernet
or Frame-Relay networks.

Available since version 0.2.5.

Running dynamips in hypervisor mode
===================================

dynamips -H [:]

Managing the hypervisor
=======================

You can connect directly to the TCP control port with telnet, or use
dynagen/dynagui that will pass commands transparently. The second method
is highly recommended.

The command syntax is simple: [arguments...]
For example: "vm start R1" starts virtual instance named "R1".

The modules that are currently defined are given below:

* hypervisor : General hypervisor management
* vm : General virtual machine (VM) management
* vm_debug : General virtual machine (VM) debugging
* c7200 : Virtual instances of Cisco 7200
* c3745 : Virtual instances of Cisco 3745
* c3725 : Virtual instances of Cisco 3725
* c3600 : Virtual instances of Cisco 3600
* c2691 : Virtual instances of Cisco 2691
* c2600 : Virtual instances of Cisco 2600
* c1700 : Virtual instances of Cisco 1700
* nio : Network Input/Output (NIO) descriptors
* nio_bridge : NIO bridges (shared media)
* atmsw : ATM switches
* atm_bridge : ATM bridges
* frsw : Frame-Relay switches
* ethsw : Ethernet switches
* object_store : Object store

Hypervisor management module ("hypervisor")
============================================

* "hypervisor version" : Display the version of dynamips.

* "hypervisor module_list" : Display the module list.

* "hypervisor cmd_list " : Display commands recognized by the
specified module.

* "hypervisor close" : Close the current session.

* "hypervisor stop" : Destroy all objects and stop hypervisor.

* "hypervisor reset" : Destroy all objects. (used to get an empty
configuration)

* "hypervisor working_dir " : Set the directory to use to store
files.

* "hypervisor save_config " : Save the configuration of all objects
into the specified file.

* "hypervisor parser_test [ [... ]]" : Display up to 10 arguments.
(since version 0.2.6-RC1)

* "hypervisor tsg_stats" : Dump statistics about JIT code sharing to
the console. (since version 0.2.8-RC3, unstable)

Virtual Machine module ("vm")
=============================

* "vm list" : List all VM instances.
(c7200, c3745, c3725, c3600, c2691, c2600, c1700)

* "vm list_con_ports" : List all VM console TCP port.
(since version 0.2.6-RC5)

* "vm create " :
Create a new router instance.
The ID must be unique and is used to name files on disk.
(since version 0.2.8-RC1)

* "vm rename " : Rename a router instance.
(since version 0.2.11)

* "vm delete " : Delete the specified instance.
(since version 0.2.8-RC1)

* "vm clean_delete " : Delete the specified instance and all
the related files (best effort). (since version 0.2.11)

* "vm start " : Start the instance.
At least the IOS image must be set.
(since version 0.2.8-RC1)

* "vm stop " : Stop the instance. The settings are kept.
(since version 0.2.8-RC1)

* "vm get_status " : Get the status of a VM instance.
Return values: 0=inactive, 1=shutting down, 2=running, 3=suspended.
(since version 0.2.11)

* "vm set_tsg " : Set translation sharing group.
(since version 0.2.8-RC3-community, unstable)

* "vm set_debug_level " : Set the debug level
(which is a number) for a VM. By default, no specific debug is enabled
(level = 0).

* "vm set_ios " : Set the IOS image file to
use. There is no default.

* "vm set_config []" :
Set the config files that are pushed to startup-config and
private-config in NVRAM when the instance is started.
To keep existing data, use an empty string ('') for the filename.
The optional is an empty string by default.
(supports since version 0.2.10)

* "vm extract_config " : Get the contents of the config files
startup-config and private-config from NVRAM. The data of each file is
encoded in a Base64 string, surrounded by single quotes.
(returns private-config since version 0.2.10)

* "vm push_config []" :
Push configuration to the config files startup-config and private-config
in NVRAM.
The data is a Base64 encoded string, or '(keep)' to keep existing data.
The optional is '(keep)' by default.
(supports since version 0.2.11)

* "vm set_ram " : Set the RAM size, specified
in Mbytes.

* "vm set_nvram " : Set the NVRAM size,
specified in Kbytes.

* "vm set_ram_mmap <0|1>" : Enable/Disable use
of a mapped file to simulate router memory. By default, a mapped file
is used. This is a bit slower, but requires less memory.

* "vm set_sparse_mem <0|1>" : Enable/disable use of
sparse memory. (since version 0.2.7-RC1)

* "vm suspend " : Suspend execution of the instance.

* "vm resume " : Resume execution of the instance.

* "vm set_clock_divisor " : Set the clock
divisor value. The higher is the value, the faster is the clock in the
virtual machine. The default is 4, but it is often required to adjust it.

* "vm set_blk_direct_jump <0|1>" : Enable/disable use
of block direct jump. (compatibility option, since version 0.2.7-RC2)

* "vm set_idle_pc " : Set the idle Pointer
Counter (PC). You must determine it through the method explained in the
main README file.

* "vm set_idle_pc_online " :
Set the idle PC value when the CPU is online.
(since version 0.2.6-RC2)

* "vm get_idle_pc_prop " :
Get the idle PC proposals.
Takes 1000 measurements and records up to 10 idle PC proposals.
There is a 10ms wait between each measurement.
(since version 0.2.6-RC2)

* "vm show_idle_pc_prop " :
Dump the idle PC proposals. (since version 0.2.6-RC2)

* "vm set_idle_max " :
Set CPU idle max value. (since version 0.2.6-RC2)

* "vm set_idle_sleep_time " :
Set CPU idle sleep time value. (since version 0.2.6-RC2)

* "vm show_timer_drift " :
Show info about potential timer drift.
(since version 0.2.6-RC3)

* "vm set_ghost_file " :
Set ghost RAM file. (since version 0.2.6-RC3,
needs an extra bogus argument before version 0.2.6-RC4)

* "vm set_ghost_status " :
Set ghost RAM status. (since version 0.2.6-RC3,
needs an extra bogus argument before version 0.2.6-RC4)

* "vm set_exec_area " : Set the exec area
size. The exec area is a pool of host memory used to store pages
translated by the JIT (they contain the native code corresponding to MIPS
code pages).

* "vm set_disk0 " : Set size of PCMCIA ATA disk0.

* "vm set_disk1 " : Set size of PCMCIA ATA disk1.

* "vm set_conf_reg " : Set the config register
value. The default is 0x2102.

* "vm set_con_tcp_port " : Set the TCP port
to use for console. By default, no TCP port is chosen, meaning that you
cannot get access to the console.

* "vm set_aux_tcp_port " : Set the TCP port
to use for AUX port. By default, no TCP port is chosen, meaning that you
cannot get access to the AUX port.

* "vm cpu_info " : Show info about the CPU identified
by "cpu_id". The boot CPU (which is typically the only CPU) has ID 0.

* "vm cpu_usage " : Show cpu usage of dynamips in
seconds. (experimental)
The instance must exist, "cpu_id" is ignored.
(since version 0.2.8-RC5-community)

* "vm send_con_msg []" :
(since version 0.2.6-RC3) Send a message on the console.
It only writes the bytes that fit in the console buffer.

(since version 0.2.14)
The optional argument indicates the string format.
On success it will report "X byte(s) written".

String formats:
* plain - plain string (default, old behavior)
* base64 - base64 encoded string

* "vm send_aux_msg []" :
(since version 0.2.6-RC3) Send a message on the AUX port.
It only writes the bytes that fit in the aux buffer.

(since version 0.2.14)
The optional argument indicates the string format.
On success it will report "X byte(s) written".

String formats:
* plain - plain string (default, old behavior)
* base64 - base64 encoded string

* "vm slot_bindings " :
Show slot bindings. (since version 0.2.8-RC1)

* "vm slot_nio_bindings " :
Show NIO bindings for the specified slot. (since version 0.2.8-RC1)

* "vm slot_add_binding " :
Add a slot binding. (since version 0.2.8-RC1)

* "vm slot_remove_binding " :
Remove a slot binding . (since version 0.2.8-RC1)

* "vm slot_add_nio_binding " :
Add a NIO binding for a slot/port. (since version 0.2.8-RC1)

* "vm slot_remove_nio_binding " :
Remove a NIO binding for a slot/port. (since version 0.2.8-RC1)

* "vm slot_enable_nio " :
Enable NIO of the specified slot/port. (since version 0.2.8-RC1)

* "vm slot_disable_nio " :
Disable NIO of the specified slot/port. (since version 0.2.8-RC1)

* "vm slot_oir_start " :
OIR to start a slot/subslot. (since version 0.2.8-RC3-community)

* "vm slot_oir_stop " :
OIR to stop a slot/subslot. (since version 0.2.8-RC3-community)

Virtual Machine debugging module ("vm_debug")
=======================================

Available since version 0.2.6-RC1.

* "vm_debug show_cpu_regs " :
Dump CPU registers to the console.

* "vm_debug show_cpu_mmu " :
Dump CPU MMU info to the console. (since version 0.2.7-RC1)

* "vm_debug set_cpu_reg " :
Set the value of a CPU register.

* "vm_debug add_cpu_breakpoint

" :
Add a breakpoint.

* "vm_debug remove_cpu_breakpoint

" :
Remove a breakpoint.

* "vm_debug pmem_w32

" :
Write a 32-bit memory word to physical memory.

* "vm_debug pmem_r32

" :
Read a 32-bit memory word from physical memory.

* "vm_debug pmem_w16

" :
Write a 16-bit memory word to physical memory.

* "vm_debug pmem_r16

" :
Read a 16-bit memory word from physical memory.

* "vm_debug pmem_cfind [ []]" :
Find a sequence of bytes in physical memory interval [first,last].
The byte sequence is composed of hexadecimal characters and must have a length
multiple of 2. The interval defaults to the complete memory space.
Only the memory of cacheable devices (ram, rom, disks, ...) is searched.
(since version 0.2.12)

Virtual Cisco 7200 instances module ("c7200")
==============================================

* "c7200 list" : List all existing Cisco 7200 instances.

* "c7200 set_npe " : Set the NPE model.
For example: npe-100, npe-400, ... The default is "npe-400".

* "c7200 set_midplane " : Set the midplane
model, it can be either "std" or "vxr". The default is "vxr".

* "c7200 get_mac_addr " : Get the base MAC
address of the router. By default, the address is automatically generated
with this pattern : ca..0000 (Cisco format).
(since version 0.2.11)

* "c7200 set_mac_addr " : Set the base MAC
address of the router. The MAC address patern can be the Cisco format
(e.g. ca01.1234.0000) or the standard format (e.g. ca:01:12:34:00:00).

* "c7200 set_system_id " :
Set the system id. (since version 0.2.8-RC3-community)

* "c7200 set_temp_sensor " :
Set temperature for a DS1620 sensor.
This can be used to simulate environmental problems like overheat.
(since version 0.2.8-RC3-community)

* "c7200 set_power_supply <0|1>" :
Set power supply status.
This can be used to simulate environmental problems like power loss.
(since version 0.2.8-RC3-community)

* "c7200 show_hardware " : Display virtual hardware info
about the instance.

Virtual Cisco 3745 instances module ("c3745")
==============================================

Available since version 0.2.6-RC3.

* "c3745 list" : List all existing Cisco 3745 instances.

* "c3745 set_iomem " : Set the I/O mem size.

* "c3745 get_mac_addr " : Get the base MAC
address of the router. By default, the address is automatically generated
with this pattern : c4..0000 (Cisco format).
(since version 0.2.11)

* "c3745 set_mac_addr " : Set the base MAC
address of the router. The MAC address patern can be the Cisco format
(e.g. c401.1234.0000) or the standard format (e.g. c4:01:12:34:00:00).

* "c3745 set_system_id " :
Set the system id. (since version 0.2.8-RC3-community)

* "c3745 show_hardware " : Display virtual hardware info
about the instance.

Virtual Cisco 3725 instances module ("c3725")
==============================================

Available since version 0.2.6-RC3.

* "c3725 list" : List all existing Cisco 3725 instances.

* "c3725 set_iomem " : Set the I/O mem size.

* "c3725 get_mac_addr " : Get the base MAC
address of the router. By default, the address is automatically generated
with this pattern : c2..0000 (Cisco format).
(since version 0.2.11)

* "c3725 set_mac_addr " : Set the base MAC
address of the router. The MAC address patern can be the Cisco format
(e.g. c201.1234.0000) or the standard format (e.g. c2:01:12:34:00:00).

* "c3725 set_system_id " :
Set the system id. (since version 0.2.8-RC3-community)

* "c3725 show_hardware " : Display virtual hardware info
about the instance.

Virtual Cisco 3600 instances module ("c3600")
==============================================

* "c3600 list" : List all existing Cisco 3600 instances.

* "c3600 set_chassis " : Set the chassis model.
Possible values: 3620, 3640, 3660. The default is "3640".

* "c3600 set_iomem " : Set the I/O mem size.

* "c3600 get_mac_addr " : Get the base MAC
address of the router. By default, the address is automatically generated
with this pattern : cc..0000 (Cisco format).
(since version 0.2.11)

* "c3600 set_mac_addr " : Set the base MAC
address of the router. The MAC address patern can be the Cisco format
(e.g. cc01.1234.0000) or the standard format (e.g. cc:01:12:34:00:00).

* "c3600 set_system_id " :
Set the system id. (since version 0.2.8-RC3-community)

* "c3600 show_hardware " : Display virtual hardware info
about the instance.

Virtual Cisco 2691 instances module ("c2691")
==============================================

Available since version 0.2.6-RC3.

* "c2691 list" : List all existing Cisco 2691 instances.

* "c2691 set_iomem " : Set the I/O mem size.

* "c2691 get_mac_addr " : Get the base MAC
address of the router. By default, the address is automatically generated
with this pattern : c0..0000 (Cisco format).
(since version 0.2.11)

* "c2691 set_mac_addr " : Set the base MAC
address of the router. The MAC address patern can be the Cisco format
(e.g. c001.1234.0000) or the standard format (e.g. c0:01:12:34:00:00).

* "c2691 set_system_id " :
Set the system id. (since version 0.2.11)

* "c2691 show_hardware " : Display virtual hardware info
about the instance.

Virtual Cisco 2600 instances module ("c2600")
==============================================

Available since version 0.2.7-RC1.

* "c2600 list" : List all existing Cisco 2600 instances.

* "c2600 set_chassis " : Set the chassis model.
Possible values: 2610, 2611, 2620, 2621, 2610XM, 2611XM, 2620XM,
2621XM, 2650XM, 2651XM. The default is "2610".

* "c2600 set_iomem " : Set the I/O mem size.

* "c2600 get_mac_addr " : Get the base MAC
address of the router. By default, the address is automatically generated
with this pattern : c8..0000 (Cisco format).
(since version 0.2.11)

* "c2600 set_mac_addr " : Set the base MAC
address of the router. The MAC address patern can be the Cisco format
(e.g. c801.1234.0000) or the standard format (e.g. c8:01:12:34:00:00).

* "c2600 set_system_id " :
Set the system id. (since version 0.2.8-RC3-community)

* "c2600 show_hardware " : Display virtual hardware info
about the instance.

Virtual Cisco 1700 instances module ("c1700")
==============================================

Available since version 0.2.8-RC1.

* "c1700 list" : List all existing Cisco 1700 instances.

* "c1700 set_chassis " : Set the chassis model.
Possible values: 1710, 1720, 1721, 1750, 1751, 1760. The default is "1720".

* "c1700 set_iomem " : Set the I/O mem size.

* "c1700 get_mac_addr " : Get the base MAC
address of the router. By default, the address is automatically generated
with this pattern : d0..0000 (Cisco format).
(since version 0.2.11)

* "c1700 set_mac_addr " : Set the base MAC
address of the router. The MAC address patern can be the Cisco format
(e.g. d001.1234.0000) or the standard format (e.g. d0:01:12:34:00:00).

* "c1700 set_system_id " :
Set the system id. (since version 0.2.8-RC3-community)

* "c1700 show_hardware " : Display virtual hardware info
about the instance.

Network Input/Output (NIO) module ("nio")
==========================================

* "nio list" : List all exiting NIOs.

* "nio create_udp " :
Create an UDP NIO with the specified parameters.

* "nio create_udp_auto " :
Create an auto UDP NIO.
(since version 0.2.8-RC3-community)

* "nio connect_udp_auto " :
Connect an UDP Auto NIO to a remote host/port.
(since version 0.2.8-RC3-community)

* "nio create_unix