ControlTier > core
 

node-get

Command Reference

Description

Retrieve node data

Retrieve a Node object's properties.

static: This command can be run outside of an object context.

Usage

ctl -m modelutil -c node-get [-ctlbase] [-ctlhome] [-ctluser] -depot <> [-description] [-format <sh>] [-hostname] -name <> [-osarch] [-osfamily] [-osname] [-osversion] [-output <>] [-tags] -type <Node>

Options

All of the boolean parameters return the property value for the object.

Option Description Type Default
ctlbase return the ctl base dir boolean
ctlhome return the ctl home dir boolean
ctluser return the ctl user boolean
depot project depot name string ${context.depot}
description return the description boolean
format output format: properties,sh

Recognized formats:

  • properties: key/value pairs: key=value
  • sh: result defined as environment variables: key=value; export key
  • bat: result defined as environment variables: set key=value
string sh
hostname return the node hostname boolean
name the node name string
osarch return the node architecture boolean
osfamily return the os family boolean
osname return the os name boolean
osversion return the os version boolean
output output file string
tags return the node tags boolean
type the node type string Node

Examples

Retrieve the data for a node already defined in the model. Return the results to the console in Java properties format

ctl -p demo -m modelutil -c node-get -- -name centos2 -format properties\
		-hostname -osfamily -osname -osarch -ctluser -tags 
		

Output would resemble this:

osname=Linux
ctluser=demo
hostname=centos2
tags=[mytag]
osfamily=unix
osarch=i386