Source code for rsrtx.Implementations.System.Communicate.Snmp.Community
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class CommunityCls:
"""
| Commands in total: 2
| Subgroups: 0
| Direct child commands: 2
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("community", core, parent)
[docs]
def set_ro(self, read_only_community_string: str) -> None:
"""
``SYSTem:COMMunicate:SNMP:COMMunity:RO`` \n
Snippet: ``driver.system.communicate.snmp.community.set_ro(read_only_community_string = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(read_only_community_string)
self._core.io.write(f'SYSTem:COMMunicate:SNMP:COMMunity:RO {param}')
[docs]
def set_rw(self, read_write_community_string: str) -> None:
"""
``SYSTem:COMMunicate:SNMP:COMMunity:RW`` \n
Snippet: ``driver.system.communicate.snmp.community.set_rw(read_write_community_string = 'abc')`` \n
No help available
"""
param = Conversions.value_to_quoted_str(read_write_community_string)
self._core.io.write(f'SYSTem:COMMunicate:SNMP:COMMunity:RW {param}')