Ensure that you take the time to plan your Oracle FS CLI script implementation before you start to write scripts.
Some commands require that you gather information before you can successfully implement the commands in your script. For example, when mapping hosts for a LUN, you need to know the fully qualified name (FQN) for the LUN.
Use the following considerations when designing your scripts.
Note: The following considerations are just guidelines. Add and subtract from the lists below as needed.
Design considerations
- Do you require cross-platform (for example Windows and UNIX) scripts?
- Do you know your corporate coding standards in regards to creating Oracle FS CLI scripts?
- Do you require structured output? If your scripting environment handles XML parsing, consider using the global XML output option ({–outputformat | -o} xml).
- Will you perform all management tasks from Oracle FS CLI or will you use Oracle FS CLI scripts in conjunction with Oracle FS System Manager (GUI)?
- How will you obtain the information, typically variables, that you will use in your script? For example, variables can come from the output of Oracle FS CLI commands, or a spreadsheet.
Implementation considerations
- Have you tested the syntax of all the commands using the ‑verify option before you added the commands to your script?
- Can an administrator intervene while the scripts run?
- Did you create script-specific administrator accounts? (Strongly recommended.)