Need help with Netw...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Need help with Network code to show both Ethernet and WiFi.

7 Posts
2 Users
1 Reactions
168 Views
(@dough)
Active Member Registered
Joined: 4 years ago
Posts: 10
Topic starter  

 I changed my motherboard and now the Ethernet and WiFi text is not right.   Both of my adapters are now RealTek but other than that I'm not sure what's not working right. 

 see attached image

# page 1 - network
COMMENT=font-size:50%
WMI=interval:3,text-color:#e6cd12,hide-no-result:1,font-size:85%,chart:line scale:log max:23 series1:1 color1:00ff00 series2:2 color2:bb00bb,alarms:(%1 ge 4000000 2222ee)(%2 ge 4000000 1010f0),text:WiFi Traffic,namespace:root\cimv2,query:Win32_PerfFormattedData_Tcpip_NetworkInterface where Name like "%Intel%",display:R: %BytesReceivedPersec%[3.1b]Bps\, S: %BytesSentPersec%[3.1b]Bps
WMI=interval:3,text-color:#e6cd12,hide-no-result:1,font-size:85%,chart:line scale:log max:23 series1:1 color1:00ff00 series2:2 color2:bb00bb,alarms:(%1 ge 4000000 2222ee)(%2 ge 4000000 1010f0),text:Ethernet Traffic,namespace:root\cimv2,query:Win32_PerfFormattedData_Tcpip_NetworkInterface where Name like "%Realtek%" and CurrentBandwidth>0,display:R: %BytesReceivedPersec%[3.1b]Bps\, S: %BytesSentPersec%[3.1b]Bps


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1546
 

Looks like the first WMI has an old 'like' clause Name like "%Intel%"


   
ReplyQuote
(@dough)
Active Member Registered
Joined: 4 years ago
Posts: 10
Topic starter  

Tried to reply but got blocked by something called "wordblock".


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1546
 

Posted by: @dough

Tried to reply but got blocked by something called "wordblock".

Apparently you were " blocked by firewall for SQL Injection in POST body".  That ini file code probably looks a bit like SQL if you look at it sideways.  Try the "code" option in the toolbar just up there.


   
ReplyQuote
(@dough)
Active Member Registered
Joined: 4 years ago
Posts: 10
Topic starter  

I changed the above code from "Intel" to "Realtek".  The red lines look good but the white lines are bogus.  I have no idea where they are coming from.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1546
 

The queries are picking two network interfaces each, the second interface is active, the first is not. You need to work on the where clause to ensure only the interfaces you want are returned.  For example, the first one might be:

where Name like "%Realtek%" and Name like "%Wireless%" and CurrentBandwidth>0

the second query might include this:

where Name like "%Realtek%" and Name like "%Ethernet%" and CurrentBandwidth>0

Depending on the names of your interfaces.


   
ReplyQuote
(@dough)
Active Member Registered
Joined: 4 years ago
Posts: 10
Topic starter  

@glenn Thanks that got me on the right track.


   
Glenn reacted
ReplyQuote
Glenn's Page