SnmpAgent holds and manipulates the SNMP agent.
More...
SnmpAgent holds and manipulates the SNMP agent.
◆ addCommunity()
| void SnmpAgent::addCommunity |
( |
string |
, |
|
|
Access |
|
|
) |
| |
Adds a community.
- Parameters
-
| communityStr,the | name of the community. |
| access,the | community name and access privileges. Access privileges: eAccess_ReadOnly = 0, eAccess_ReadWrite = 1, eAccess_ReadCreate = 2, eAccess_NotAccessible = 3 |
- Returns
- bool, true if successful, otherwise false.
◆ getCommunity()
| pair< string, Access > SnmpAgent::getCommunity |
( |
string |
| ) |
|
Returns the community with the specified name.
- Parameters
-
| community,the | name of the community of interest. |
- Returns
- pair<string, enum<Access>, the community name and access privileges. Access privileges: eAccess_ReadOnly = 0, eAccess_ReadWrite = 1, eAccess_ReadCreate = 2, eAccess_NotAccessible = 3
◆ getCommunityAt()
| pair< string, Access > SnmpAgent::getCommunityAt |
( |
int |
| ) |
|
Returns the community at the specified name.
- Parameters
-
| index,the | index of the community of interest. |
- Returns
- pair<string, enum<Access>, the community name and access privileges. Access privileges: eAccess_ReadOnly = 0, eAccess_ReadWrite = 1, eAccess_ReadCreate = 2, eAccess_NotAccessible = 3
◆ getCommunityCount()
| int SnmpAgent::getCommunityCount |
( |
| ) |
|
Returns the number of communities.
- Returns
- int, the number of communities.
◆ isEnabled()
| bool SnmpAgent::isEnabled |
( |
| ) |
|
Returns true if the SNMP agent is enabled, otherwise false.
- Returns
- bool, true if the SNMP agent is enabled, otherwise false.
◆ removeCommunity()
| bool SnmpAgent::removeCommunity |
( |
string |
| ) |
|
Removes the specified community.
- Parameters
-
| communityStr,the | name of the community of interest. |
- Returns
- bool, true if successful, otherwise false.
◆ setEnabled()
| void SnmpAgent::setEnabled |
( |
bool |
| ) |
|
Enables or disables the SNMP agent.
- Returns
- enabled, true to enable the SNMP agent, false to disable it.
The documentation for this class was generated from the following file: