SpaceGuard SRM supports a robust Command Line Interface (CLI) for network administrators to use in scripts or batch files. The Command Line Interface is perfect for scripting quota reports and adding and deleting quotas.
Options:
Examples:
| Add Quota | |
| Command: | SgSRMCli ADD <SERVER> F:\Users\JDOE" 10,A(POPUP;1;5;JDOE;You exceeded the limit!)A" |
| Response: | Number of limits: 1 Limit number 1: Limit size: 10.00 MB Number of alarm actions: 1 Alarm action number 1: Type of Alarm Action: POPUP. Destinations: JDOE Message: You exceeded the limit! Repeat Count: 1 Repeat Delay: 5 Quota directory: F:\Users\JDOE Successfully added the quota for directory 'F:\Users\JDOEh' on computer <SERVER>. |
| Delete Quota | |
| Command: | SgSRMCli DELETE <SERVER> F:\Users\JDOE |
| Response: | Removing quota from directory F:\Users\JDOE\rock on computer <SERVER>. |
The command line interface can also be used to install local or remote services from a batch file or script, allowing unattended installations. The command line interface application provides options to "INSTALL", "UNINSTALL" and "CONFIGURE" local and remote services, facilitating all basic installation and configuration functions provided by the SpaceGuard SRM console.
Options: