Use the crsctl get nodename command to obtain the name of the local node.
crsctl get nodename
The crsctl get nodename command returns output similar to the following:
node2
Scripting on this page enhances content navigation, but does not change the content in any way.