However, when I just want to retrieve the OID itself, Dude reports it as an invalid OID. All I did was remove string_size from the function. What is wrong?
string_size() correctly returns size of string “invalid oid”
You should double check that you have Trango mibs loaded in the Dude. Dude
does not recognize result of concatenation as valid oid. Check what output
you get when you put just:
Are you sure the string-size functions does not simply report the number of characters in the returned error-message of the (assumed here) incorrect formula?
[edit] Damn, I could have looked so smart if I’d just have pressed ‘Submit’ a little faster! [/edit]
String size is working correctly. The OID for su association either contains:
associated (1)
or
notAssociated (0)
Associated is 14 characters and notAssociated is 17 characters. When I use the string_size function noted above, I get 14 or 17 returned depending upon if the subsriber unit is associated or not. So Dude seems to accept a concatenated OID if you pass the result to string_size. I actually have a probe setup using this function.
For your test:
concatenate(“iso.org.dod.internet.private.enterprises.trango.tbw.m5830sap.su.suInfoTable.suInfoEntry.suAssociation.”,device_property(“CustomField3”))