ExecuteShortCommand

From Array Suite Wiki


Overview

Like ExecuteCommand, ExecuteShortCommand allows script-based management of an OmicSoft Server for advanced users.

Syntax

Begin ExecuteShortCommand /Namespace=Server;
Server "tcp://pathToServer:8065/RemoteServer" /UserID=UserName /Password=PasswordOfUser;
Command CommandToRun;
Options OptionsForServerCommand;
OutputFile PathToOutputFileForResults;
End;

Warning.png WARNING: Unlike ExecuteCommand, the OutputFile must be specified


The script can be run in Oshell and also ArrayStudio:

ExecuteCommand.png

Examples

Get Virtual OmicSoft Server Folder Mappings

Begin ExecuteShortCommand /Namespace=Server;
Server "tcp://192.168.3.228:8065" /UserID=gary /Password=abc123;
Command FetchMappedFolderList;
Options "";
OutputFile "/tmp/GetFolderMapping.txt"
End;

Get Virtual Cloud Folder Mappings

Begin ExecuteShortCommand /Namespace=Server;
Server "tcp://192.168.3.228:8065" /UserID=gary /Password=abc123;
Command FetchMappedCloudFolderList;
Options "";
OutputFile "/tmp/GetCloudFolderMapping.txt"
End;