This topic describes how to start VCS simulator from the command-line:
To start VCS Simulator from the command line (UNIX)
For example, if the cluster to be simulated runs on the AIX platform, copy the file types.cf.aix.
VCS_SIMULATOR_HOME/bin/hasim -start system_name
where VCS_SIMULATOR_HOME is the Simulator installation directory, typically /opt/VRTScssim.
The variable system_name represents a system name, as defined in the configuration file main.cf. This command starts Simulator on port 14153.
For example, to start the default cluster:
VCS_SIMULATOR_HOME/bin/hasim -start sys1
Note that the default configuration includes system sys1.
VCS_SIMULATOR_HOME/bin/hasim -sys -add system_name VCS_SIMULATOR_HOME/bin/hasim -up system_name
VCS_SIMULATOR_HOME/bin/hasim -sys -state
Use the command line or the Java Console to manage the simulated cluster.
To start VCS Simulator from the command line (Windows)
VCS Simulator installs platform-specific types.cf files at the path %VCS_SIMULATOR_HOME%\types\. The variable %VCS_SIMULATOR_HOME% represents the Simulator installation directory, typically C:\Program Files\Veritas\VCS Simulator\.
For example, if the cluster to be simulated runs on the AIX platform, copy the file types.cf.aix.
%VCS_SIMULATOR_HOME%\bin> hasim -start system_name
The variable system_name represents a system name, as defined in the configuration file main.cf.
This command starts Simulator on port 14153.
%VCS_SIMULATOR_HOME%\bin> hasim -sys -add system_name %VCS_SIMULATOR_HOME%\bin> hasim -up system_name
%VCS_SIMULATOR_HOME%\bin> hasim -sys -state
To simulate global clusters from the command line
sim_dir/hasim -setupclus clustername -simport port_no -wacport port_no
Do not use default_clus as the cluster name when simulating a global cluster.
VCS Simulator copies the sample configurations to the path sim_dir/clustername and creates a system named clustername_sys1.
For example, to add cluster clus_a using ports 15555 and 15575, run the following command:
sim_dir/hasim -setupclus clus_a -simport 15555 -wacport 15575
Similarly, add the second cluster:
sim_dir/hasim -setupclus clus_b -simport 15556 -wacport 15576
To create multiple clusters without simulating a global cluster environment, specify -1 for the wacport.
sim_dir/hasim -start clustername_sys1 -clus clustername
Set the following environment variables to access VCS Simulator from the command line:
VCS_SIM_PORT=port_number
VCS_SIM_WAC_PORT=wacport
You can use the Java Console to link the clusters and to configure global service groups.
You can also edit the configuration file main.cf manually to create the global cluster configuration.