Oh nice, I did not know that, that will come in useful as I struggle to
get mikrotik and hp procurve vlans to play nice with packetfence.
Cheers, Mark.
On 16 December 2012 06:40:23, Butch Evans wrote:
On Fri, 2012-12-14 at 16:52 -0800, Bill Prince wrote:
I have a PTP link using an RB430->RB430 that's started doing occasional
disconnects. Is there an OID I can monitor that will tell me the
connection status, or an SNMP trap that will tell me I've lost the link?
Most OIDs can be found with the "oid" argument to the print command.
For example, here is the output from "/interface wireless print oid"
[admin@ButchandToniAP] > /interface wireless print oid
0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.1
rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.1
strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.1
ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.1
bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.1
frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.1
band=.1.3.6.1.4.1.14988.1.1.1.1.1.8.1
tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.1
rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.1
ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.1
bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.1
client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.1
frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.1
band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.1
noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.1
overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.1
1 tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.2
rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.2
ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.2
bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.2
client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.2
frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.2
band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.2
noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.2
overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.2
Another example, "/interface print oid" creates an output like this:
[admin@ButchEvans] > /interface print oid
Flags: D - dynamic, X - disabled, R - running, S - slave
0 R name=.1.3.6.1.2.1.2.2.1.2.1 mtu=.1.3.6.1.2.1.2.2.1.4.1
mac-address=.1.3.6.1.2.1.2.2.1.6.1
admin-status=.1.3.6.1.2.1.2.2.1.7.1
oper-status=.1.3.6.1.2.1.2.2.1.8.1 bytes-in=.1.3.6.1.2.1.2.2.1.10.1
packets-in=.1.3.6.1.2.1.2.2.1.11.1
discards-in=.1.3.6.1.2.1.2.2.1.13.1 errors-in=.1.3.6.1.2.1.2.2.1.14.1
bytes-out=.1.3.6.1.2.1.2.2.1.16.1
packets-out=.1.3.6.1.2.1.2.2.1.17.1
discards-out=.1.3.6.1.2.1.2.2.1.19.1
errors-out=.1.3.6.1.2.1.2.2.1.20.1
1 R name=.1.3.6.1.2.1.2.2.1.2.2 mtu=.1.3.6.1.2.1.2.2.1.4.2
mac-address=.1.3.6.1.2.1.2.2.1.6.2
admin-status=.1.3.6.1.2.1.2.2.1.7.2
oper-status=.1.3.6.1.2.1.2.2.1.8.2 bytes-in=.1.3.6.1.2.1.2.2.1.10.2
packets-in=.1.3.6.1.2.1.2.2.1.11.2
discards-in=.1.3.6.1.2.1.2.2.1.13.2 errors-in=.1.3.6.1.2.1.2.2.1.14.2
bytes-out=.1.3.6.1.2.1.2.2.1.16.2
packets-out=.1.3.6.1.2.1.2.2.1.17.2
discards-out=.1.3.6.1.2.1.2.2.1.19.2
errors-out=.1.3.6.1.2.1.2.2.1.20.2
Or for queues:
[admin@ButchEvans] > /queue tree print oid
Flags: X - disabled, I - invalid
0 name=.1.3.6.1.4.1.14988.1.1.2.2.1.2.16777626
packet-mark=.1.3.6.1.4.1.14988.1.1.2.2.1.3.16777626
bytes=.1.3.6.1.4.1.14988.1.1.2.2.1.7.16777626
packets=.1.3.6.1.4.1.14988.1.1.2.2.1.6.16777626
queues=.1.3.6.1.4.1.14988.1.1.2.2.1.8.16777626
1 name=.1.3.6.1.4.1.14988.1.1.2.2.1.2.16777627
packet-mark=.1.3.6.1.4.1.14988.1.1.2.2.1.3.16777627
bytes=.1.3.6.1.4.1.14988.1.1.2.2.1.7.16777627
packets=.1.3.6.1.4.1.14988.1.1.2.2.1.6.16777627
queues=.1.3.6.1.4.1.14988.1.1.2.2.1.8.16777627
You just need to find the one you are looking for.
--
This e-mail is confidential and privileged. If you are not the intended
recipient please accept our apologies; please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on
its contents: to do so is strictly prohibited and may be unlawful.
Please inform us that this message has gone astray before deleting it.
This email has come from a server controlled by Supporting IT. We use a
strict anti-spam solution that includes the use of SPF (information can
be found at <a class="moz-txt-link-freetext"
href="http://en.wikipedia.org/wiki/Sender_Policy_Framework">http://en.wikipedia.org/wiki/Sender_Policy_Framework</a>
and <a class="moz-txt-link-freetext"
href="http://www.openspf.org/">http://www.openspf.org/</a>) Should you
have any complaints as to this email, you can address them to <a
class="moz-txt-link-abbreviated"
href="mailto:[email protected]">[email protected]</a>.
Supporting IT can also be contacted on +44(0)845 862 0348
_______________________________________________
Mikrotik mailing list
[email protected]
http://www.butchevans.com/mailman/listinfo/mikrotik
Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS