Tuesday, April 3, 2012

Interacting with Nodemanager

Nodemanager is a network daemon, which you can connect to and interact with. The basic functionality can be tested using a connection to Node Manager, using telnet, or in the case of SSL, ssh.

Commands which can be issued to Node Manager includes the starting, stopping and querying the state of servers.

Example:
telnet nodemanagerhost port

domain soa_domain    <- Set the current working domain, as specified in the nodemanager file
+OK Current domain set to 'soa_domain'
server AdminServer   <- Set the current working server AdminServer
+OK Current server is now 'AdminServer'
start AdminServer      <- Issue a start command to AdminServer
+OK Server 'AdminServer' started
getStates                        <- Get status of the servers
+OK AdminServer=RUNNING soa_server1=RUNNING AdminServerTag=UNKNOWN domain_bak=UNKNOWN

Other commands include: kill (server), getLog (last command issues, kill, start), execscript (server migration script)

Complete list of commands:
VERSION

DOMAIN
SERVER
COHERENCESERVER
USER
PASS
STAT
QUIT
START
STARTP
KILL
GETLOG
GETNMLOG
HELLO
CHGCRED
GETSTATES
EXECSCRIPT