...
Starts the SNMP agent. Call this method once all OID handlers have been registered. As of BrightSign OS 8.3.R1, other default parameters can be provided on object construction:
[string] ro_community
: Optional. When bothro_community
andrw_community
are set, they must be unique values. Otherwise, simply providerw_community
.[string] rw_community
: Optional. When bothro_community
andrw_community
are set, they must be unique values. Otherwise, simply providerw_community
.
Code Block | ||
---|---|---|
| ||
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() |
As of BrightSign OS 8.3.R1, another optional default parameter can be provided on object construction:
Code Block | ||
---|---|---|
| ||
type SnmpAgentParams {
ro_community: string;
rw_community: string;
}
agent = CreateObject("roSnmpAgent", params: SnmpAgentParams) |
...
ifUserData
SetUserData(user_data As Object)
...