thanks Vasiliy for the hint, finally got this right, found quotes within
quotes work, both of these seems to work fine:
bin/ignitevisorcmd.sh -e="'open -cpath=config/test-one.xml;cache'"
bin/ignitevisorcmd.sh -e='"open -cpath=config/test-one.xml;cache"'
f.e.:
# bin/ignitevisorcmd.sh -e='"open -cpath=config/test-one.xml;cache"'
OpenJDK Server VM warning: ignoring option MaxPermSize=128M; support was
removed in 8.0
___ _________________________ ________
__ | / /____ _/__ ___/__ __ \___ __ \
__ | / / __ / _____ \ _ / / /__ /_/ /
__ |/ / __/ / ____/ / / /_/ / _ _, _/
_____/ /___/ /____/ \____/ /_/ |_|
ADMIN CONSOLE
2015 Copyright(C) Apache Software Foundation
+----------------------------+
| Status | Disconnected |
| Grid name | <n/a> |
| Config path | <n/a> |
| Uptime | <n/a> |
+----------------------------+
Type 'help' for more information.
Type 'open' to join the grid.
Type 'quit' to quit form Visor console.
visor> open -cpath=config/test-one.xml
Mar 31, 2016 10:12:06 AM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[file:/root/apache-ignite/config/test-one.xml]
Mar 31, 2016 10:12:06 AM
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing
org.springframework.context.support.GenericApplicationContext@80cdf3:
startup date [Thu Mar 31 10:12:06 HKT 2016]; root of context hierarchy
[10:12:06] __________ ________________
[10:12:06] / _/ ___/ |/ / _/_ __/ __/
[10:12:06] _/ // (7 7 // / / / / _/
[10:12:06] /___/\___/_/|_/___/ /_/ /___/
[10:12:06]
[10:12:06] ver. 1.5.0-final#20151229-sha1:f1f8cda2
[10:12:06] 2015 Copyright(C) Apache Software Foundation
[10:12:06]
[10:12:06] Ignite documentation: http://ignite.apache.org
[10:12:06]
[10:12:06] Quiet mode.
[10:12:06] ^-- Logging to file
'/root/apache-ignite/work/log/ignite-dbaab967.0.log'
[10:12:06] ^-- To see **FULL** console log here add
-DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[10:12:06]
[10:12:06] OS: Linux 4.3.4-200.fc22.i686+PAE i386
[10:12:06] VM information: OpenJDK Runtime Environment 1.8.0_71-b15
Oracle Corporation OpenJDK Server VM 25.71-b15
[10:12:06] Configured plugins:
[10:12:06] ^-- None
[10:12:06]
[10:12:07] Security status [authentication=off, tls/ssl=off]
[10:12:08] To start Console Management & Monitoring run
ignitevisorcmd.{sh|bat}
[10:12:08]
[10:12:08] Ignite node started OK (id=dbaab967)
Some useful commands:
+--------------------------------------------+
| Type 'top' | to see full topology. |
| Type 'node' | to see node statistics. |
| Type 'cache' | to see cache statistics. |
| Type 'tasks' | to see tasks statistics. |
| Type 'config' | to see node configuration. |
+--------------------------------------------+
Type 'help' to get help.
+-----------------------------------+
| Status | Connected |
| Grid name | <default> |
| Config path | config/test-one.xml |
| Uptime | 00:00:00 |
+-----------------------------------+
visor> cache
(wrn) <visor>: No caches found.
(wrn) <visor>: Type 'help cache' to see how to use this command.
visor> quit
[10:12:08] Ignite node stopped OK [uptime=00:00:00:217]
+----------------------------+
| Status | Disconnected |
| Grid name | <n/a> |
| Config path | <n/a> |
| Uptime | <n/a> |
+----------------------------+
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/How-to-script-with-visor-cli-tp3733p3803.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.