Inline WMI Query?
› Forums › Desktop Info › Inline WMI Query?
- This topic has 1 reply, 2 voices, and was last updated 4 months, 3 weeks ago by
webmaster.
-
AuthorPosts
-
-
28 December, 2021 at 11:52 pm #4941
TBacker
ParticipantPresently I have a network section in my setup. I show a NetworkInterfaces section with the adaptor name and address, and a WMI query section with adaptor description, text bandwidth use, and chart.
I want to group these together better. Because of the two different config lines (NetworkInterfaces and WMI), essentially adaptors are listed twice in my network section. For example, the current info displays like (mockup):
123456789101112Network-----------------------------------------------------------Ethernet 0 192.168.1.1 / 24Ethernet 1 192.168.2.1 / 24Intel Gigabit PCI ExpressRX: 38.1 Mibps TX: 324.8 Mibps[CHART ]Intel Gigabit PCI ExpressRX: 126.2 Mibps TX: 14.3 Mibps[CHART ]What I want is:
1234567891011Network-----------------------------------------------------------Ethernet 0 192.168.1.1 / 24Intel Gigabit PCI ExpressRX: 38.1 Mibps TX: 324.8 Mibps[CHART ]Ethernet 1 192.168.2.1 / 24Intel Gigabit PCI ExpressRX: 126.2 Mibps TX: 14.3 Mibps[CHART ]The only way I can think to do this is if there were a way to put a WMI query (Win32_PerfFormattedData_Tcpip_NetworkInterface) inline with the NetworkInterfaces line with a specific search parameter. Is this possible?
Here is the current section of my config:
123456# NetworkCOMMENT=font-size:100%,color:#ffffff,style:iwb,text:NetworkNETWORKINTERFACES=font-size:100%,interval:30,operstatus:1,iftype:6 71,row-text:%2,display:%8 / %10COMMENT=font-size:10%,text:WMI=font-size:80%,interval:1,hide-no-result:1,text:,chart:line2 scale:linear max:1073742000 height:2 series1:{{%BytesReceivedPersec%*8}} color1:00ff00 series2:{{%BytesSentPersec%*8}} color2:ff9999,namespace:root\cimv2,query:Win32_PerfFormattedData_Tcpip_NetworkInterface where NOT Name like "%isatap%" AND CurrentBandwidth>0,display:%Name%|RX: {{%BytesReceivedPersec%*8}}[4.1b]bps TX: {{%BytesSentPersec%*8}}[4.1b]bps|%chart%|COMMENT=font-size:50%,text:-
This topic was modified 4 months, 3 weeks ago by
TBacker.
-
This topic was modified 4 months, 3 weeks ago by
TBacker.
-
This topic was modified 4 months, 3 weeks ago by
-
29 December, 2021 at 7:11 am #4946
webmaster
KeymasterYou mean like a JOIN? DTI doesn’t do that natively. I know WMI has a thing called ASSOCIATORS or something which might do what you need, I don’t know much about that.
I’ll give some thought to the idea of merging multi-row items.
-
-
AuthorPosts
- You must be logged in to reply to this topic.