Hi Michael. Sounds like you have quotas set up well. RSH from an NT client is pretty easy to set up and then make a batch file for. This is what I do...
1) Just type in "rsh filername command" eg: rsh toronto1 df from a dos prompt of the machine that you wish to schedule this from. At the filer console you'll get an rsh error similar to:
toronto1> Thu Oct 18 07:34:26 EDT [rshd_0]: Permission denied to rsh request fro m gberry at 99.118.225.53
2) Using that info for an example go and edit your <filerroot>/etc/host.equiv file with wordpad and add a line that contains "99.118.225.53 gberry" and make sure you hit <enter> at the end of the line, save the file.
Then try "rsh toronto1 df" again to test and it should work just fine.
A .bat file to do this would simply contain the command(s) you wish to execute. You can also use the "-l <username>" option on the rsh command if that's handy. Just type rsh at a dos prompt and it'll give you the syntax.
I hope this helps.
Regards,
Grant
-----Original Message----- From: Grey, Michael [mailto:Michael.Grey@ttc.ca] Sent: Wednesday, October 17, 2001 11:12 PM To: 'toasters@mathworks.com' Subject: quotas file
Well I have figured out how to set quotas based on global groups in Windows NT, but I'm having a little problem with the quotas file once completed.
My script checks to see if a user is a member of a global group for a quota alocation (200MB, 350MB, and 500MB) via the "Global" command. This script runs automatically when a change is made to a quota global group. If the user ID is not in any global group then they would receive the default quota. The users who are members of a global group for quotas are written to a scratch file in the format of the quotas file. Once the script is complete the quotas file is deleted and then this scratch file is renamed to the quotas file.
Everything works excellent but quota changes are not applied until I perform a "quota resize" command. I need to know if the filer automatically recalculates the quotas based on this file and if so, under what conditions? or, is there any way to have the filer recalculate quotas based on the quota file other then via the "quota resize" command. I'm trying to do this from a batch script under NT. I'm not sure how to RSH to the box via a script from NT if at all possible.
Any help would be appreciated.
Thanks.
Ah, I am enlightened.
Jordan
-----Original Message----- From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com]On Behalf Of Berry, Grant Sent: Thursday, October 18, 2001 4:30 AM To: Grey, Michael Cc: 'toasters@mathworks.com' Subject: RE: quotas file
Hi Michael. Sounds like you have quotas set up well. RSH from an NT client is pretty easy to set up and then make a batch file for. This is what I do...
1) Just type in "rsh filername command" eg: rsh toronto1 df from a dos prompt of the machine that you wish to schedule this from. At the filer console you'll get an rsh error similar to:
toronto1> Thu Oct 18 07:34:26 EDT [rshd_0]: Permission denied to rsh request fro m gberry at 99.118.225.53
2) Using that info for an example go and edit your <filerroot>/etc/host.equiv file with wordpad and add a line that contains "99.118.225.53 gberry" and make sure you hit <enter> at the end of the line, save the file.
Then try "rsh toronto1 df" again to test and it should work just fine.
A .bat file to do this would simply contain the command(s) you wish to execute. You can also use the "-l <username>" option on the rsh command if that's handy. Just type rsh at a dos prompt and it'll give you the syntax.
I hope this helps.
Regards,
Grant