Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

crm_simulate(8) [centos man page]

PACEMAKER(8)						  System Administration Utilities					      PACEMAKER(8)

NAME
Pacemaker - Part of the Pacemaker cluster resource manager SYNOPSIS
crm_simulate datasource operation [additional options] DESCRIPTION
crm_simulate - Tool for simulating the cluster's response to events OPTIONS
-?, --help This text -$, --version Version information -Q, --quiet Display only essentialoutput -V, --verbose Increase debug output Operations: -R, --run Determine the cluster's response to the given configuration and status -S, --simulate Simulate the transition's execution and display the resulting cluster status -X, --in-place Simulate the transition's execution and store the result back to the input file -s, --show-scores Show allocation scores -U, --show-utilization Show utilization information -P, --profile=value Run all tests in the named directory to create profiling data Synthetic Cluster Events: -u, --node-up=value Bring a node online -d, --node-down=value Take a node offline -f, --node-fail=value Mark a node as failed -i, --op-inject=value Generate a failure for the cluster to react to in the simulation Value is of the form ${resource}_${task}_${interval}@${node}=${rc}. Eg. memcached_monitor_20000@bart.example.com=7 For more infor- mation on OCF return codes, refer to: http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pace- maker_Explained/s-ocf-return-codes.html -F, --op-fail=value If the specified task occurs during the simulation, have it fail with return code ${rc} Value is of the form ${resource}_${task}_${interval}@${node}=${rc}. Eg. memcached_stop_0@bart.example.com=1 The transition will normally stop at the failed action. Save the result with --save-output and re-run with --xml-file -t, --set-datetime=value Set date/time -q, --quorum=value Specify a value for quorum -g, --ticket-grant=value Grant a ticket -r, --ticket-revoke=value Revoke a ticket -b, --ticket-standby=value Make a ticket standby -e, --ticket-activate=value Activate a ticket Output Options: -I, --save-input=value Save the input configuration to the named file -O, --save-output=value Save the output configuration to the named file -G, --save-graph=value Save the transition graph (XML format) to the named file -D, --save-dotfile=value Save the transition graph (DOT format) to the named file -a, --all-actions Display all possible actions in the DOT graph - even ones not part of the transition Data Source: -L, --live-check Connect to the CIB and use the current contents as input -x, --xml-file=value Retrieve XML from the named file -p, --xml-pipe Retrieve XML from stdin EXAMPLES
Pretend a recurring monitor action found memcached stopped on node fred.example.com and, during recovery, that the memcached stop action failed # crm_simulate -LS --op-inject memcached:0_monitor_20000@bart.example.com=7 --op-fail memcached:0_stop_0@fred.example.com=1 --save-output /tmp/memcached-test.xml Now see what the reaction to the stop failure would be # crm_simulate -S --xml-file /tmp/memcached-test.xml AUTHOR
Written by Andrew Beekhof REPORTING BUGS
Report bugs to pacemaker@oss.clusterlabs.org Pacemaker 1.1.10-29.el7 June 2014 PACEMAKER(8)

Check Out this Related Man Page

PACEMAKER(8)						  System Administration Utilities					      PACEMAKER(8)

NAME
Pacemaker - Part of the Pacemaker cluster resource manager SYNOPSIS
crm_mon mode [options] DESCRIPTION
crm_mon - Provides a summary of cluster's current state. Outputs varying levels of detail in a number of different formats. OPTIONS
-?, --help This text -$, --version Version information -V, --verbose Increase debug output -Q, --quiet Display only essential output Modes: -h, --as-html=value Write cluster status to the named html file -X, --as-xml Write cluster status as xml to stdout. This will enable one-shot mode. -w, --web-cgi Web mode with output suitable for cgi -s, --simple-status Display the cluster status once as a simple one line output (suitable for nagios) Display Options: -n, --group-by-node Group resources by node -r, --inactive Display inactive resources -f, --failcounts Display resource fail counts -o, --operations Display resource operation history -t, --timing-details Display resource operation history with timing details -c, --tickets Display cluster tickets -W, --watch-fencing Listen for fencing events. For use with --external-agent, --mail-to and/or --snmp-traps where supported -L, --neg-locations[=value] Display negative location constraints [optionally filtered by id prefix] -A, --show-node-attributes Display node attributes Additional Options: -i, --interval=value Update frequency in seconds -1, --one-shot Display the cluster status once on the console and exit -N, --disable-ncurses Disable the use of ncurses -d, --daemonize Run in the background as a daemon -p, --pid-file=value (Advanced) Daemon pid file location -E, --external-agent=value A program to run when resource operations take place. -e, --external-recipient=value A recipient for your program (assuming you want the program to send something to someone). EXAMPLES
Display the cluster status on the console with updates as they occur: # crm_mon Display the cluster status on the console just once then exit: # crm_mon -1 Display your cluster status, group resources by node, and include inactive resources in the list: # crm_mon --group-by-node --inactive Start crm_mon as a background daemon and have it write the cluster status to an HTML file: # crm_mon --daemonize --as-html /path/to/docroot/filename.html Start crm_mon and export the current cluster status as xml to stdout, then exit.: # crm_mon --as-xml AUTHOR
Written by Andrew Beekhof REPORTING BUGS
Report bugs to pacemaker@oss.clusterlabs.org Pacemaker 1.1.10-29.el7 June 2014 PACEMAKER(8)
Man Page