138 | | * |
| 138 | * Start each of the individual nodes using wget -O - -q 'http://cmc:5012/cmc/on?x=%x&y=%y' |
| 139 | * ssh into one of the current nodes which are turned on at root@nodex-y |
| 140 | * Check the running of the nodeAgent on the node by doing a ps -ef and locating process with /usr/sbin/nodeAgent |
| 141 | * Since you want to replace this code with a code that will be newly built, kill the instance of nodeagent based on PID. Also notice that there is another PID for another process using ruby, kill that process too. |
| 142 | * Go to the 'gateway' and compile nodeagent by doing a 'make nodeagent' --> Lookup definition in the makefile to determine exactly what is done --> Just compiles and builds the nodeagent script. If this script is compiled on the console, it will throw some errors while compiling as it is not able to access some of the libraries. |
| 143 | * Find the newly compiled nodeagent at the location /build/nodeagent in the compiled source code tree. |
| 144 | * Copy this file to the node: scp nodeHandler-3.6.4/build/nodeAgent root@node9-4:/usr/sbin/nodeagent (note the difference in cases here - nodeAgent in the original build and nodeagent in the deployment) |
| 145 | * Instantiate nodeagent by doing ssh in a client and executing /usr/sbin/nodeagent |
| 146 | * The new nodeagent code is now running on the client. |
| 147 | * |