Query to List Folders

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Query to List FoldersExpand / Collapse
Author
Message
Posted 10/9/2008 5:21:00 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/21/2008 11:36:18 AM
Posts: 113, Visits: 133
Hi, I am trying to create a world map for our networked sites. I need to dynamically query all folders and their devices in Whatsup. What would the SQL query look like to retrieve device groups/folders from Whatsup.

--
carlo
Post #47671
Posted 10/10/2008 1:45:13 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/21/2008 11:36:18 AM
Posts: 113, Visits: 133
bump! Anyone have any idea how to query groups instead of devices?
Post #47710
Posted 10/13/2008 9:15:35 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: Today @ 2:12:00 PM
Posts: 48, Visits: 409
carlo88 (10/9/2008)
Hi, I am trying to create a world map for our networked sites. I need to dynamically query all folders and their devices in Whatsup. What would the SQL query look like to retrieve device groups/folders from Whatsup.

--
carlo


Here is a query to list all the groups and devices, but I don't think you can use it to create a dynamic query:

SELECT DeviceGroup.sGroupName, Device.sDisplayName
FROM Device, DeviceGroup, PivotDeviceToGroup
WHERE PivotDeviceToGroup.nDeviceID = Device.nDeviceID AND PivotDeviceToGroup.nDeviceGroupID = DeviceGroup.nDeviceGroupID AND Device.bRemoved=0
Post #47742
Posted 10/14/2008 11:04:58 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/21/2008 11:36:18 AM
Posts: 113, Visits: 133
That worked great, except now they would need to be grouped. All devices under the same folder. Perhaps this is not feasible with WU.
Post #47773
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Jason Williams, Hush, FTPplanet.com, Hugh Garber, George Dailey, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 5:10pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 9 queries. Compression Enabled.