Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to monitor remaining drive space without RDP access (only SSMS sysadmin rights have been granted) Expand / Collapse
Author
Message
Posted Tuesday, April 8, 2014 2:33 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 12, 2014 4:03 PM
Points: 47, Visits: 146
I have been asked to monitor the DRIVE space where our data (mdf) and log (ldf) files are located for each of our SQL Server installations. I have sysadmin rights to each SQL Server and am able to connect to each instance via SQL Server Management Studio. I can successfully run queries to monitor the log and data file size within the SQL Server.

I am not able to RDP into the server to look at the remaining free space on the DRIVES. I would like to know how other DBAs address this issue without being able to RDP into the host Windows Server. The server admin is reluctant to grant this right. While I can see how the data and log files are doing from a SQL point of view, I need a way to see how it affecting drive space.

Thanks for any suggestions.
Post #1559704
Posted Tuesday, April 8, 2014 3:12 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 11:36 AM
Points: 17,710, Visits: 15,583
Do you have permissions to run powershell scripts?



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1559713
Posted Tuesday, April 8, 2014 3:19 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 12, 2014 4:03 PM
Points: 47, Visits: 146
Unfortunately no I do not. Our server admin does not like to give any more permission than necessary. He feels sysadmin is enough and that it should be able to be done via SSMS. The drive space is an OS object, not a SQL object. I do not see how this can be achieved.
Post #1559715
Posted Tuesday, April 8, 2014 3:26 PM This worked for the OP Answer marked as solution


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 11:36 AM
Points: 17,710, Visits: 15,583
Then try this
http://www.databasejournal.com/features/mssql/article.php/3080501/Using-xpfixeddrives-to-Monitor-Free-Space.htm




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1559723
Posted Tuesday, April 8, 2014 3:48 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 12, 2014 4:03 PM
Points: 47, Visits: 146
Hey thanks a lot! That gets me what I need to know to watch over the drives. I can at least see when disk space is getting low.
Post #1559728
Posted Tuesday, April 8, 2014 3:53 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 11:36 AM
Points: 17,710, Visits: 15,583
You're welcome



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1559729
Posted Tuesday, April 8, 2014 9:02 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, September 19, 2014 2:15 AM
Points: 213, Visits: 854
defyant_2004 (4/8/2014)
Our server admin does not like to give any more permission than necessary.


This is me trying to be positive: Nice. That absolves you from a whole bunch of responsibility when the server dies.

But actually I feel that declining all access is a cop-out and one that I would fight vigorously. I guess this is an artifact of huge organizations though and I work for smaller ones (e.g < 50 employees). Maybe in those bigger environments this is the norm.
Post #1559761
Posted Wednesday, April 9, 2014 7:57 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, September 12, 2014 4:03 PM
Points: 47, Visits: 146
I have actually been arguing for more access for a long time now. I came real close about 3 months ago, but then he had 'change of mind'.
Post #1559958
Posted Wednesday, April 9, 2014 9:08 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 11:36 AM
Points: 17,710, Visits: 15,583
defyant_2004 (4/9/2014)
I have actually been arguing for more access for a long time now. I came real close about 3 months ago, but then he had 'change of mind'.


Patience, eventually it will work out for the best. When the day comes that you need to troubleshoot the server and have to wake him up, he will begin to regret you not having those permissions.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1560012
Posted Wednesday, April 9, 2014 3:01 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 10:29 AM
Points: 6,420, Visits: 13,810
defyant_2004 (4/8/2014)
Unfortunately no I do not. Our server admin does not like to give any more permission than necessary. He feels sysadmin is enough and that it should be able to be done via SSMS. The drive space is an OS object, not a SQL object. I do not see how this can be achieved.

Be aware that xp_fixeddrives does not work for mounted volumes. For reliable disk space info, from SSMS you can enable XP_Cmdshell and use the following

exec xp_cmdshell 'wmic volume get capacity, "free space", name'



-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1560191
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse