manipulate data from table
Posted: 06 Nov 2013 10:21
Hi,
I have a abtch that doing process with cluster.
I need to get date from table like:
I run the command :
cluster res "ABC" /stat
and get the output:
I need to print to file the node name (try00481)
And also like this I run the command:
cluster node
and get the output:
I need to print to the file the 2 nodes (try00481,try00481)
Thanks in advance...
EDIT aGerman: Code Tags
I have a abtch that doing process with cluster.
I need to get date from table like:
I run the command :
cluster res "ABC" /stat
and get the output:
Code: Select all
Listing status for resource 'ABC':
Resource Group Node Status
-------------------- -------------------- --------------- ------
ABC PHX00483 try00481 Online
I need to print to file the node name (try00481)
And also like this I run the command:
cluster node
and get the output:
Code: Select all
Listing status for all available nodes:
Node Node ID Status
-------------- ------- --------------------
try00481 1 Up
try00481 2 Up
I need to print to the file the 2 nodes (try00481,try00481)
Thanks in advance...
EDIT aGerman: Code Tags