Getting Familiar with Using Commands
The following steps illustrate how you might get familiar using the Command Central and Platform Manager commands. For more information about the commands used in the examples in the following table, see the section about landscape commands in this help.
- Use a
listcommand to view the type of information the command returns.For example, execute the following command to view a list of installations.
sagcc list landscape nodesThe output includes alias names for all the installations. You can use the alias names in subsequent commands to get data for an installation, update an installation, execute actions against an installation, or delete an installation.
- Use a
getorlistcommand to retrieve information for a specific instance.Note: Thegetandlistcommands are equivalent.For example, assume the
listcommand provided information for an installation that has the alias name “sag01”. To retrieve information for the “sag01” installation, returning the information to an output file in XML format, execute the following command:sagcc get landscape nodes sag01 --output info --format xml - Use a
createcommand to create a new instance.You can edit the output file that a
getcommand returns to specify the information for the new instance. Then you can use that file as input to thecreatecommand.For example, to create a new installation with alias name “new”, edit the info.xml file that the
getcommand returned to supply the alias name, URL, and description for the new installation. Then execute the following command:sagcc create landscape nodes --input info.xmlNote: If you execute thelistcommand again, the command lists the “new” installation. - Use an
updatecommand to update data for an instance.You can use a
getcommand to retrieve information for the specific instance you want to update, returning the output to a file. Then you can update the output file thegetcommand returns and use that as the input to theupdatecommand.For this example, update the “new” installation. Execute the following command to retrieve information for the “new” installation, returning the output to a file in XML format:
sagcc get landscape nodes new --output updatefile --format xmlUpdate the data in the returned “updatefile”. For example, you might specify a new description. Then execute the following command to update the installation information:
sagcc update landscape nodes new --input updatefile - Use an
execcommand to execute an action against an instance.To generate a new ID for the “new” installation, execute the following command:
sagcc exec landscape nodes new generateNodeId - Use a
deletecommand to remove an instance.To delete the “new” installation, execute the following command:
sagcc exec landscape nodes new
list,
get,
create,
update,
exec, and
delete, might not be
available.