Source code for RsFsw.Implementations.System.Communicate.Snmp.Community.Rw

from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class RwCls: """Rw commands group definition. 1 total commands, 0 Subgroups, 1 group commands""" def __init__(self, core: Core, parent): self._core = core self._cmd_group = CommandsGroup("rw", core, parent)
[docs] def set(self, community: str) -> None: """SCPI: SYSTem:COMMunicate:SNMP:COMMunity:RW \n Snippet: driver.system.communicate.snmp.community.rw.set(community = 'abc') \n Defines the SNMP community string for read-write access. INTRO_CMD_HELP: Prerequisites for this command: \n - Select an SNMP version that supports communities (method RsFsw.System.Communicate.Snmp.Version.set) . \n :param community: String containing the community name. """ param = Conversions.value_to_quoted_str(community) self._core.io.write(f'SYSTem:COMMunicate:SNMP:COMMunity:RW {param}')