Command Reference > infacmd isp Command Reference > GetNodeName


Returns the name of a node.
Gets the node name from the nodemeta.xml file on the node. You must enter this command on the node for which you want to fetch the name.
The infacmd isp GetNodeName command uses the following syntax:
[<-OutputFile|-o>] output_file
When you use the command without the -o option, the command prints the node name to the command window. When you use the -o option to specify an output file, you provide the file name and path. For example:
isp\bin\infacmd.bat getNodeName -o c:\node_name.txt
The command creates a file, node_name.txt, in the path that you specify. It prints the node name in the file. If the file exists, the command overwrites the file.