Use > Server Automation > SA Global Shell > Global Shell examples > Managing custom attributes

Managing custom attributes

On the server abc.opsware.com, create a custom attribute named MyGreeting with the value hello there:

cd /opsw/Server/@/abc.opsware.com/CustAttr
echo -n "hello there" > MyGreeting
cat MyGreeting
 

Execute runit.bat on the abc.opsware.com server, passing the value of the My Test custom attribute as a command-line parameter for runit.bat:

cd /opsw/Server/@/abc.opsware.com
TESTPARAM=`cat CustAttr/"My Test"`
rosh -l Administrator "C:\temp\runit.bat $TESTPARAM"
 

When you create or edit custom attributes within the OGFS, Server Automation preserves leading and trailing white space characters in custom attribute values.