Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setting an OID value from an SNMP client doesn't block the client waiting on any script action; there is a short, but indeterminate, time delay for scripts to act on a value change. This isn't a problem generally because of the way SNMP MIBs are designed. If you want to provide constantly updating OID values, you can update them using either a timer or state changes.

Object Creation: To create teh roSnmpAgent object:

Code Block
titleExample
agent = CreateObject("roSnmpAgent")

As of BrightSign OS 8.3.R1, the default parameters below can be provided on object construction. Note that when both ro_community and rw_community are set, they must be unique values. Otherwise, simply provide rw_community:

  • [string] ro_community: Optional. Sets the read community string.
  • [string] rw_communityOptional. Sets the write community string.

ifSnmpAgent

AddOidHandler(oid_string As String, writable_flag As Boolean, initial_value As Object) As Boolean

...

Starts the SNMP agent. Call this method once all OID handlers have been registeredAs of BrightSign OS 8.3.R1, the default parameters below can be provided on object construction. Note that when both ro_community and rw_community are set, they must be unique values. Otherwise, simply provide rw_community:

...

.

...

 

...

Code Block
titleExample
agent = CreateObject("roSnmpAgent")
agent.AddOidHandler("1.3.6.1.4.1.26095.1.1.1.4.4.0", false, "ValueOfOid")
agent.AddOidHandler("1.3.6.1.4.1.26095.1.1.1.4.5.0", true, 10)
agent.Start() 

...