SNMP Monitor USG60 WAN1 and WAN2 traffic?
Accepted Solution
-
Hi @TAPTech,
You can use OID: .1.3.6.1.2.1.2.2 to get ifInOctets and ifOutOctets of each interface.
Then calculate the bandwidth by using the value of ifInOctets and ifOutOctets.
(ifInOctets(time2) - ifInOctets(time1)) / (time2 - time1)
(ifOutOctets(time2) - ifOutOctets(time1)) / (time2 - time1)

Here is an example for your reference.
If you want to get the bandwidth which is received on the interface (ifInOctets)WAN2 (eth1) during the period
Time (17:00) : 50845741 bytes
Time (17:05) : 3589025121 bytes
Bandwidth : (3589025121 – 50845741)(bytes) / 300(seconds) = 11.79 MB
Time (17:00) : 50845741 bytes

Time (17:05) : 3589025121 bytes
5
All Replies
-
Hi @TAPTech,
You can use OID: .1.3.6.1.2.1.2.2 to get ifInOctets and ifOutOctets of each interface.
Then calculate the bandwidth by using the value of ifInOctets and ifOutOctets.
(ifInOctets(time2) - ifInOctets(time1)) / (time2 - time1)
(ifOutOctets(time2) - ifOutOctets(time1)) / (time2 - time1)

Here is an example for your reference.
If you want to get the bandwidth which is received on the interface (ifInOctets)WAN2 (eth1) during the period
Time (17:00) : 50845741 bytes
Time (17:05) : 3589025121 bytes
Bandwidth : (3589025121 – 50845741)(bytes) / 300(seconds) = 11.79 MB
Time (17:00) : 50845741 bytes

Time (17:05) : 3589025121 bytes
5 -
That was a fantastic post and had everything I needed! Thank you so much.0
Categories
- All Categories
- 442 Beta Program
- 3.1K Nebula
- 237 Nebula Ideas
- 6.8K Security
- 746 USG FLEX H Series
- 377 Security Ideas
- 1.8K Switch
- 87 Switch Ideas
- 1.5K Wireless
- 58 Wireless Ideas
- 7.2K Consumer Product
- 319 Service & License
- 512 News and Release
- 99 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 5.3K FAQ
- 34 Documents
- 90 About Community
- 119 Security Highlight
Master Member
Zyxel Employee