Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS Scripting for Novel

Status
Not open for further replies.
Apr 11, 2003
105
US
Is it posible to wrtie a VBS Script to monitory a novel Server disk drive space. I know with a microsoft enviroment you would use somthing like this
Code:
Const HARD_DISK = 3

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colDisks = objWMIService.ExecQuery _
    ("Select * from Win32_LogicalDisk Where DriveType = " & HARD_DISK & "")

For Each objDisk in colDisks
    Wscript.Echo "DeviceID: "& vbTab &  objDisk.DeviceID       
    Wscript.Echo "Free Disk Space: "& vbTab & objDisk.FreeSpace
Next
 
you are implying that WMI is installed on a Novell server?
i havent touched novell in a few years.
is WMI available on a Novell box, i woulodnt have thought so. if it is then you would be bang on the money.
does novell have its own scripting language? all interesting stuff, i work right next to novell and have a pal who works there, i can ask her if you like.

if not and you really want to use vbscipt then you might be stuck with something horrid like mapping a dirve to the systemroot or whereever and have a 'monitoring'machine which keeps an eye on the mapped drive?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top