Hi,
Your plugin works great! Nice job well done!
I have a wrt54g, 1.3.6.1.2.1.2.2.1.10.8 gets me the number of octets on Wan side. How can I convert this to kbps??
Octets to kbps?
As far as I am aware (and as Google has helped me find out), an Octet is a byte.
\"Octets are units of 8 bits (also know as bytes).\"
So 1 octet = 1 byte, therefore the conversion is pretty straight forward
Octets = Bytes, therefore multiply by 8 to get bits. Then divide by 1000 (Kbit or 1024 KiB. I think normally we use 1024 for data coms?)
Thanks,
Phil
\"Octets are units of 8 bits (also know as bytes).\"
So 1 octet = 1 byte, therefore the conversion is pretty straight forward
Octets = Bytes, therefore multiply by 8 to get bits. Then divide by 1000 (Kbit or 1024 KiB. I think normally we use 1024 for data coms?)
Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Hello Phil,
How it should be:
1e in 4114816394 | out 1416674403
2e in 4120532506 | out 1419886543
Math calculation:
4120532506 - 4114816394 = 5716112
5716112 * 8 = 45728896
45728896 / 1000 = 45728
45728 / 60 = 762kbps
But the problem is that using the DLL in Smartie is that you can't get 2 readings, so you can't do the math!
How it should be:
1e in 4114816394 | out 1416674403
2e in 4120532506 | out 1419886543
Math calculation:
4120532506 - 4114816394 = 5716112
5716112 * 8 = 45728896
45728896 / 1000 = 45728
45728 / 60 = 762kbps
But the problem is that using the DLL in Smartie is that you can't get 2 readings, so you can't do the math!
You should be able to get two readings in one query....
and you should be able to do the maths - let me try and describe it...
Bear with me because its been a while since I actually did this
a) Use function 10 to multiply the result of a) by 0.000133333 (which is 8/1000/60)
b) Use function 9 to subtract two values...
Value 1 = Use funciton 1 with OID of 1e
Value 2 = Use function 1 with OID of 2e
Giving something like:
$dll(NetStuffPlugin.dll,10,$dll(NetStuffPlugin.dll,9,$dll(NetStuffPlugin.dll,1,ipaddress:public,oid-1e),$dll(NetStuffPlugin.dll,1,ipaddress:public,oid-2e)),0.000133333)
I think thats right...
Let me know how you get on
Thanks,
Phil
and you should be able to do the maths - let me try and describe it...
Bear with me because its been a while since I actually did this
a) Use function 10 to multiply the result of a) by 0.000133333 (which is 8/1000/60)
b) Use function 9 to subtract two values...
Value 1 = Use funciton 1 with OID of 1e
Value 2 = Use function 1 with OID of 2e
Giving something like:
$dll(NetStuffPlugin.dll,10,$dll(NetStuffPlugin.dll,9,$dll(NetStuffPlugin.dll,1,ipaddress:public,oid-1e),$dll(NetStuffPlugin.dll,1,ipaddress:public,oid-2e)),0.000133333)
I think thats right...
Let me know how you get on
Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Hi,
Yes, that would be a solution if the points would be 1 second appart.
But that is the problem, the time var is not correct:
$dll(NetStuffPlugin.dll,10,$dll(NetStuffPlugin.dll,9,$dll(NetStuffPlugin.dll,1,192.168.200.1:public,1.3.6.1.2.1.2.2.1.10.,$dll(NetStuffPlugin.dll,1,192.168.200.1:public,1.3.6.1.2.1.2.2.1.10.),0.000133333)
=
-26666600
Yes, that would be a solution if the points would be 1 second appart.
But that is the problem, the time var is not correct:
$dll(NetStuffPlugin.dll,10,$dll(NetStuffPlugin.dll,9,$dll(NetStuffPlugin.dll,1,192.168.200.1:public,1.3.6.1.2.1.2.2.1.10.,$dll(NetStuffPlugin.dll,1,192.168.200.1:public,1.3.6.1.2.1.2.2.1.10.),0.000133333)
=
-26666600
Ah I see your problem...
Not sure how to handle this one... Either it will be a change to the plugin to remember the last value... or some other method will be required...
I'll have a think and get back to you.
Thanks,
Phil
Not sure how to handle this one... Either it will be a change to the plugin to remember the last value... or some other method will be required...
I'll have a think and get back to you.
Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Ive just made a new version for you to try.
It has 2 new funcitions, the important one, is funciton 12.
It takes the same parameters as function 1 but it basically gets the difference between the current value, and the value last time the funciton was called.
And returns the result extrapolated over 1 second.
So it should, if my theory works, return bytes per second for the SNMP OID counter.
Does that make sence?
Download the new NetStuffPlugin.rar from my website (same name but it should have todays date on the files)
Let me know if it works.
Thanks,
Phil
It has 2 new funcitions, the important one, is funciton 12.
It takes the same parameters as function 1 but it basically gets the difference between the current value, and the value last time the funciton was called.
And returns the result extrapolated over 1 second.
So it should, if my theory works, return bytes per second for the SNMP OID counter.
Does that make sence?
Download the new NetStuffPlugin.rar from my website (same name but it should have todays date on the files)
Let me know if it works.
Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
It works like a charm!
$dll(NetStuffPlugin.dll,11,$dll(NetStuffPlugin.dll,12,192.168.200.1:public,1.3.6.1.2.1.2.2.1.10.8),1000)
Result is 876,4823 that is close to my maximum download speed, so it should be right I think.
If you need a tester, please mail me. I'm willing to help..
Keep up the good work.
$dll(NetStuffPlugin.dll,11,$dll(NetStuffPlugin.dll,12,192.168.200.1:public,1.3.6.1.2.1.2.2.1.10.8),1000)
Result is 876,4823 that is close to my maximum download speed, so it should be right I think.
If you need a tester, please mail me. I'm willing to help..
Keep up the good work.
Last edited by sandoval on Sun Nov 26, 2006 2:29 pm, edited 1 time in total.
Great
Let me know if there is anything else I can add.
I'll try and remember to let you know if I make any changed, but generally the plugin is fairly stable (I hope) - this is the first change I have made to it .
Thanks,
Phil
Let me know if there is anything else I can add.
I'll try and remember to let you know if I make any changed, but generally the plugin is fairly stable (I hope) - this is the first change I have made to it .
Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)