COM  DE 
 
Site navigation



SpaceGuard: Disk Quota, User Quota and Storage Management Software Download SpaceGuard: Disk Quota, User Quota and Storage Management Software
Démo Télécharger Fontionnalités Ecrans Support Témoignages


SpaceGuard SRM - CLI - Add Quotas

 

To add a quota using the Command Line Interface the following command needs to be entered: 

SgSRMCli ADD <COMPUTER> "<DIRECTORY>" "[LIMIT]" "[LIMIT]" .... "[LIMIT]"

where:

COMPUTER

The computer on which the SpaceGuard SRM service is running.

DIRECTORY

Directory for which quotas need to be Added.

LIMIT

Zero or more limits can be specified as:
"Size,A([ALARM ACTION])A,A([ALARM ACTION])A"
where:
" Size" is the limitsize in MB. The highest limit will be the 100 percent limit.

From zero up to two alarms can be specified.

Specify alarm actions as: '(<TYPE>;[COUNT];[DELAY];[TYPE specific data])'. 

<TYPE> may be one of the following:

COMMAND

A commandline utility (e.g. executable,script,batch) will be executed when the limit is exceeded.
[TYPE specific data]: command line (e.g. batch.bat)

EMAIL

An E-mail will be sent when the limit is exceeded.
[TYPE specific data]: E-Mail addresses (seperated by comma);[Subject];Message

EMAILMAPI

An E-mail using MAPI will be sent when the limit is exceeded.
[TYPE specific data]: E-Mail addresses (seperated by comma);[Subject];Message

LOG

An entry in the application event log will be made when the limit is exceeded.
[TYPE specific data]: Message

PAGERSMS

A pager or SMS message will be sent when the limit is exceeded.
[TYPE specific data]: Sender;Destination;Message

POPUP

A popup message will be sent when the limit is exceeded.
[TYPE specific data]: Destinations (seperated by comma);Message

REVOKEACCESS

Access to the directory will be revoked when the limit is exceeded and reset when the directory size drops below the limit.
[TYPE specific data]: [NewOwner];User


[COUNT]

Number of times the alarm action will be repeated after the limit has triggered.
Enter 0 for no repetition or -1 for infinite repetitions. Default is 0.

[DELAY]

Delay in seconds between repetitions. Default is 5.

Examples:

a) Add a quota on a specific directory with quota size 10 MB and a pop-up alarm when limit is exceeded.

command:

SgSRMCli ADD <SERVER> F:\UserData\JSmith "10,A(POPUP;1;5;JSmith;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: JSmith
  Message: You exceeded the limit!
  RepeatCount: 1
  RepeatDelay: 5
Quota directory: F:\UserData\JSmith 
Succesfully added the quota for directory 'F:\UserData\JSmith' on computer <SERVER>.

b) Add a quota on a specific directory with quota size 1 MB and an E-mail when limit is exceeded.

command:

SgSRMCli ADD <SERVER> F:\UserData\JSmith "1,A(EMAIL;1;5;j.smith@mycompany.com;You exceeded the limit!)A"

response:

Number of limits: 1
Limit number 1:
  Limit size: 1.00 MB
  Number of alarm actions: 1
  Alarm action number 1:
  Type of Alarm Action: EMAIL.
  Destinations: j.smith@mycompany.com
  Subject: You exceeded the limit!
  RepeatCount: 1
  RepeatDelay: 5
Quota directory: F:\UserData\JSmith 
Succesfully added the quota for directory 'F:\UserData\JSmith' on computer <SERVER>.

c) Add a quota of 10 MB with multiple limits (100%, 80%) on a specifc directory.

command:

SgSRMCli ADD <SERVER> F:\UserDate\JSmith "10,A(POPUP;1;5;JSmith;Reached 100%%)A" "8,A(POPUP;1;5;JSmith;Reached 80%%)A"

response:

Number of limits: 2
Limit number 1:
  Limit size: 10.00 MB
  Number of alarm actions: 1
  Alarm action number 1:
  Type of Alarm Action: POPUP.
  Destinations: JSmith
  Message: Reached 100%
  RepeatCount: 1
  RepeatDelay: 5
Limit number 2:
  Limit size: 8.00 MB
  Number of alarm actions: 1
  Alarm action number 1:
  Type of Alarm Action: POPUP.
  Destinations: JSmith
  Message: Reached 80%
  RepeatCount: 1
  RepeatDelay: 5
Quota directory: F:\UserDate\JSmith
Succesfully added the quota for directory 'F:\UserDate\JSmith' on computer <SERVER>.

 

Home | Products | Support | Pricing | Download | Press | About Us | Contact | Sitemap
QUICK LINKS: Mass / Bulk Import Software | Network Monitoring Software | Disk Quota Management
QUICK LINKS: User and Active Directory Management | Active Directory Migration | SSRPM Documentation