Writing commands in a macro

Add administrative commands to a macro. The administrative client ignores any blank lines included in your macro. However, a blank line ends a command that is continued (with a continuation character).

About this task

The following is an example of a macro that is called REG.MAC that registers and grants authority to a new administrator:

register admin pease mypasswd -
  contact='david pease, x1234'
grant authority pease -
  classes=policy,storage -
  domains=domain1,domain2 -
  stgpools=stgpool1,stgpool2

This example uses continuation characters in the macro file. For more information about continuation characters, see Including continuation characters in a macro.

After you create a macro file, you can update the information that it contains and use it again. You can also copy the macro file. After you have a copy of the macro, you can modify and run the copy.