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.


-- 
********************************************************************
* Butch Evans                * Professional Network Consultation   *
* http://www.butchevans.com/ * Network Engineering                 *
* http://store.wispgear.net/ * Wired or Wireless Networks          *
* http://blog.butchevans.com/ * ImageStream, Mikrotik and MORE!    *
*          NOTE THE NEW PHONE NUMBER: 702-537-0979                 *
********************************************************************



_______________________________________________
Mikrotik mailing list
[email protected]
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to