Product Documentation and Knowledge Base - HomeDocumentation


Charon-VAXCharon-AXPCharon-PDPCharon-SSPCharon-PAR
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Name

ss20 – CHARON-SSP/V8 32-bit SPARC Virtual Machine

e450 – CHARON-SSP/V9 64-bit SPARC Virtual Machine

Synopsis

ss20 [ [ -a alias_name ] [ -d ] -f config_file [ -s ] ] [ -h ] [ -k pid ] [ -l ]

Description

The sma utility is the lowest level access to the CHARON-AXP/SMA virtual machine software.  It can be started in four different modes:

  • Utility,
  • Foreground,
  • Background, and
  • Interactive.

In utility mode it is possible to specify the -l and -k options to list and terminate running instances.  In both foreground and background mode, the sma software can be used to start a running Alpha virtual machine.  The difference between the two being that background mode will run the virtual machine as a daemon, releasing the controlling terminal.  Lastly, interactive mode will run a virtual machine as well as start an interactive command line described in the section Interactive Mode

The following table describes all the options that can be passed to the sma command line utility.

sma Command Line Utility Options
OptionDescription
-a alias_name

Assign alias_name to the new virtual machine instances. This option can be very useful when attempting to locate a specific instance in the list reported by the -l option.

If this option is not specified, a name of the form instance-%02d will be assigned by the sma utility.

-d

Run the virtual machine as a daemon.

This option cannot be specified with -s.

-f config_file

When starting a new instance, use this option to specify the location of the virtual machine configuration file. For further details of the format of this file see the /wiki/spaces/DocCHAXPSMAv2240L/pages/32473949 section.

This is not an optional argument.

-s

Start the sma virtual machine in interactive mode. See the section Interactive Mode below.

This option cannot be specified with -d.

-hDisplay a brief usage message.
-k pid

Stop the virtual machine instance specified by pid. Use the -l to determine the process id of the relevant instance.

This option cannot be specified with an others.

-l

This option lists the currently running CHARON-AXP/SMA instances. The list is constructed of the following columns:

  • pid – process id of the virtual machine,
  • alias – instance alias specified by the -a option at startup,
  • start time – timestamp indicating when the virtual machine instance was started,
  • log time – timestamp indicating last event, and
  • log code – descriptive code indicating the type of event.

This option cannot be specified with any others.

Interactive Mode 

Running the sma virtual machine with the -s option will, as well as starting a virtual machine, start an interactive command line on the controlling terminal.  This command line is indicated by the CHARON-AXP/SMA> prompt and allows the user to query and manipulate the operation of the running virtual machine.  The terminal output shown below shows the tail end of the virtual machine start up messages before displaying the prompt.

Interactive Mode Session

2015-01-09 11:30:21 INFO    ES40     DIT is ON
2015-01-09 11:30:21 INFO    Thread   System has 2 processor(s).
2015-01-09 11:30:22 INFO    CPU      Host CPU frequency is 2494Mhz
2015-01-09 11:30:23 ERROR   PC16550  Failed to start putty!
 
2015-01-09 11:30:24 INFO    Thread   Set CPU thread to No.1 processor
2015-01-09 11:30:25 INFO    SRM CONSOLE model es40
CHARON-AXP/SMA>

Interactive Mode does not refer to running the Alpha SRM console in the current tty.

The following command reference describes the syntax and operation of the commands supported in this version of CHARON-AXP/SMA for GNU/Linux.

Interactive Mode Command Reference
CommandDescription
dit [ on | off | reset ]



Control the operation of the Dynamic Instruction Translation (DIT) engine. To display the current DIT execution counters do not specify any argument.
Arguments
onEnable the DIT engine.
offDisable the DIT engine.
resetReset the DIT engine statistics counters.
help [ command ]

Display command line help.
Arguments
commandSpecify a command name to return more specific help. This argument is optional.
memory [ address size ]


Display a region of memory within the virtual machine. If no parameters are specified the command will use the previous values for address and size.
Arguments
address 
size 
set address value


Set the 8-bit value at address to value.
Arguments
addressAddress of memory location to update. This address is specified in hexadecimal notation.
value8 bit value to be stored at address. This value is specified in hexadecimal notation.
quitExit the virtual machine. This is equivalent of executing power off from the Alpha SRM console.

Exit Status

The sma virtual machine exits 0 on success and 255 if an error occurs.

Examples

The following is a very basic example configuration file.

[system]
model = AS200
toy = vm.toy
env = vm.env
  
[memory]
size = 128
  
[ewa0]
interface = eth0
  
[opa0]
type = socket
port = 9000
  
[log]
severity = info
destination = console
path = vm.log

Assuming the configuration file above is stored in vm.config the following commands can be used to start the virtual machine and connect to the console.

# /opt/charon-axp-sma/sma -f vm.config

This will generate output similar to the following on the current terminal:

CHARON-AXP/SMA Virtual Machine Output

***********************************************************
 
   CHARON-AXP/SMA V2.2.14
   Copyright (C) 2015 Stromasys S.A. All Rights Reserved.
 
***********************************************************
 
2015-01-21 16:30:47 INFO    EMULATOR Build time: Sep 25 2014 10:54:10
2015-01-21 16:30:47 INFO    EMULATOR Version: CHARON-AXP/SMA/as200 V2.2.14
2015-01-21 16:30:47 INFO    EMULATOR Copyright (C) 2015 Stromasys S.A. All Rights Reserved.
2015-01-21 16:30:47 INFO    System   OS  : Linux snoopy 3.10.0-123.13.2.el7.x86_64 x86_64
2015-01-21 16:30:47 INFO    System CPU : Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (running under 64bit)
2015-01-21 16:30:47 INFO    System   Total memory: 3003MB
2015-01-21 16:30:47 INFO    System   Free memory : 1664MB
2015-01-21 16:30:49 INFO    License  Licensed product: "CHARON-AXP/SMA VAR all Signatures for Windows and Linux x64"
2015-01-21 16:30:49 INFO    License  Licensed virtual hardware: AS200
2015-01-21 16:30:49 INFO    License  Virtual hardware model as200 is licensed
2015-01-21 16:30:49 INFO    License  Maximum concurrent instances are limited to 3
2015-01-21 16:30:49 INFO    License  Maximum allowed virtual CPU(s) are 4
2015-01-21 16:30:49 INFO    License  Maximum virtualized RAM is 16384MB
2015-01-21 16:30:49 INFO    License  Major version number is 2
2015-01-21 16:30:49 INFO    License  Minor version number is 2
2015-01-21 16:30:49 INFO    License  Maximum build number is 100
2015-01-21 16:30:49 INFO    License  Minimum build number is 1
2015-01-21 16:30:49 INFO    License  Maximum allowed CPU speed is 100%
2015-01-21 16:30:49 INFO    License  Current UTC time:    2015-01-21 08:36:49
2015-01-21 16:30:49 INFO    License  Expiration UTC time: 2015-04-29 23:55:00
2015-01-21 16:30:49 INFO    EB164    DIT is ON
2015-01-21 16:30:49 INFO    Thread   System has 2 processor(s).
2015-01-21 16:30:49 INFO    CPU      Host CPU frequency is 2494Mhz
2015-01-21 16:30:49 INFO    NET      Find 2 interfaces.
2015-01-21 16:30:49 INFO    NET      Connected to eth0.
2015-01-21 16:30:49 INFO    NET      Set 'eth0' to promiscuous mode successfully
2015-01-21 16:30:50 INFO    ALPHA_SYS Use local MAC 4A:83:68:E0:65:11
2015-01-21 16:30:50 INFO    NET      Network RX started on eth0
2015-01-21 16:30:52 INFO    Thread   Set CPU thread to No.1 processor
2015-01-21 16:30:53 INFO    SRM CONSOLE model as200

The following shows the Alpha SRM console after the virtual machine has started:

Alpha SRM Console Ouptut

Alpha Emulator Firmware
Version 2.2.14
AlphaStation 200
Initialized physical memory: 128 MB
Loaded HWRPB: physical address 2000
Initialized CPU0
 
CPU0 halted: power up
 
P00>>>

  • No labels