I have 9 network adapters, bluetooth, VPN, VM, Wireless, etc. As these connections come online and offline the "SysInfoData" number changes in regard to the SysInfo.dll Plugin. What I want to show I feel should be easy i'm just missing something. I always want to see the IP address for my "Local Area Connection" with device name "Intel(R) 82579LM ..." this is my physical wired Ethernet port. An I also want to see the IP for my "Wireless Network Connection", as well, with device name "Intel(R) Centrino..."
buck2825 wrote:I have 9 network adapters, bluetooth, VPN, VM, Wireless, etc. As these connections come online and offline the "SysInfoData" number changes in regard to the SysInfo.dll Plugin. What I want to show I feel should be easy i'm just missing something. I always want to see the IP address for my "Local Area Connection" with device name "Intel(R) 82579LM ..." this is my physical wired Ethernet port. An I also want to see the IP for my "Wireless Network Connection", as well, with device name "Intel(R) Centrino..."
[measureIP0]
; This measure returns your IP.
Measure=Plugin
Plugin=SysInfo.dll
SysInfoType=IP_ADDRESS
SysInfoData=0
Substitute="":"N/A"
[measureIP1]
Measure=Plugin
Plugin=SysInfo.dll
SysInfoType=IP_ADDRESS
SysInfoData=4
Substitute="":"N/A"
Look into the WifiStatus.dll - it should help you sort out what you want for the statics.
As to measuring 9 adapters, you could have a meter for each that fires when they activate, and hide them when they're inactive... that would take some tinkering but I'm sure it can be done.
Here's what I use to measure my IP's and wifi status. Note the usage of WifiStatus.dll and Webparser.dll:
Thanks for the post, but this does not help. my primary concern is knowing my laptop's wired ip address. when the port is not connected rather than giving me the next port I need it to display "disconnnected" or "N/A"
As to always displaying every port... simply create 9 measures and 9 meters. [SSID1] [SSID2] [SSID3]... you'll have to figure out each port so that you're measuring properly, but it shouldn't be too difficult to navigate.
Wow, sorry, I totally missed that one. Too much coding has me a little dense this week.
I'd look into the SysInfo and Perfmon possibilities. SysInfo with IP_ADDRESS and SysInfoData should allow you to select different returns.
I am currently using the sysinfo plugin (see original post). I am unhappy with the results I am getting.
under normal operations my wired port is SysInfoData=0, and my wireless connection is Sysinfodata=4.
the problem is when I move, once i undock my laptop SysinfoData=0 becomes my VMWare NAT connection, and sysinfodata=4 becomes my miniport adapter.
My wireless connection is then sysinfodata=3
What I would like to happen is when connected to display my wired IP and wireless IP
if my wireless IP is not connected then I want to see "N/A" or "No Connection", and I want my wired port IP to not change
if my wired port IP is not connected then I want to see "N/A" or "No connection", and i want my wireless port IP to not change.
I can parse the "substitute" part after I get the first part (IP address) working.
ultimately I would like to see the wired IP address regardless of connection state.
I too have many NIC, and need Rain meter to display the correct information. Right now i am using Enigma Network.ini skin. It is a nightmare to try and configure this thing properly.
So to explain. I have 4 "NICs"...1LAN (Sysinfo=0) and 2 VMs and 1 Wlan. When i disconnect my LAN is changes to VM1 like yours does instead of displaying N/A. To get around this i know that my VM1 NIC is always 192.168.117.1 so my substitute above states "When IP = 192.168.117.1 on the "mIntIP" measure display N/A instead" so now when i disconnect my LAN it displays N/A instead of the IP of VM1. You can duplicate this and do the same for your WLAN considering your know the IP of the Miniport Adaptor and just substitute those digits for N/A or Disconnected.
To explain further "Substitute works as follows: "A":"B" where A is a string to substitute and B is a string to substitute with. In this case, it substutes "" (i.e. empty) to N/A" but in your case when you disconnect the cable it doesn't go "" (empty) it assumes NIC no longer exists and the new "SysInfoData=0" is now the next NIC in line which would be your VM1 (i'm sure if you disconnected VM1 then the IP would jump to your VM2 IP next and so on) so since your don't have an ""(empty) you need to just substitute the next IP to N/A or Disconnected.
under normal circumstances my SysInfoData = 5 is a my wireless connection when I disconnect my wired connection (SysInfoData = 0) my SysInfoData = 5 is now nothing and shows N/A even though it is still connected.
what I really need is some way to script this. some vbs and I would have this lick in 20 min.