Windows Inventory - ASQL Abfrage

Post Reply
dodic
Posts: 506
Joined: 03. Feb 2012, 10:51
Location: Salzgitter
Contact:

Windows Inventory - ASQL Abfrage

Post by dodic » 16. Jul 2015, 08:43

Hallo,

ich versuche gerade eine gescheite Abfrage für meine Zwecke zu basteln, leider funktioniert es nicht so wie ich will. Folgendes hab ich bisher:

Code: Select all

T(SPSAssetClassScanLog).LastResult <> 1 AND T(SPSCommonClassBase).State = 710 AND T(SPSCommonClassBase).CostCenter.IDNumber <> '10078' AND T(SPSCommonClassBase).CostCenter.IDNumber <> '10026'
Problem an der Sache ist, irgendwann bekommt ein Computer mal LastResult = 1 und er taucht trz oben noch auf, weil natürlich Last Result 2 und 3 nicht einfach verschwinden. Habt ihr eine Idee?

Sven_Puth
Posts: 461
Joined: 07. Apr 2011, 15:55
Contact:

Re: Windows Inventory - ASQL Abfrage

Post by Sven_Puth » 16. Jul 2015, 09:52

Habs gerade nicht ausprobiert, aber versuch mal, ob es mit MIN() funktioniert.

Also MIN(T(SPSAssetClassScanLog).LastResult) <> 1
Tria-media - IT Solutions

dodic
Posts: 506
Joined: 03. Feb 2012, 10:51
Location: Salzgitter
Contact:

Re: Windows Inventory - ASQL Abfrage

Post by dodic » 16. Jul 2015, 10:44

Leider nicht:

Validierungsfehler: - Ungültiger ASQL Ausdruck für Geräte, die erfasst werden.

Sven_Puth
Posts: 461
Joined: 07. Apr 2011, 15:55
Contact:

Re: Windows Inventory - ASQL Abfrage

Post by Sven_Puth » 17. Jul 2015, 09:25

Dann könnte man versuchen T(SPSAssetClassScanLog).LastResult <> 1 per SUBQUERY abzufertigen. Dort habe ich MIN() schon verwendet...

SUBQUERY(SPSAssetClassScanLog as a, MIN(LastResult), base.UsedIntypeSPSComputerClassBase = a.UsedInTypeSPSComputerClassBase) > 1
Tria-media - IT Solutions

dodic
Posts: 506
Joined: 03. Feb 2012, 10:51
Location: Salzgitter
Contact:

Re: Windows Inventory - ASQL Abfrage

Post by dodic » 20. Jul 2015, 07:21

Moin,

leider selbe Fehlermeldung :/

Post Reply

Return to “Administration”

Who is online

Users browsing this forum: No registered users and 3 guests