Skip to content

snmpset.py won't accept string with spaces in it #20

Description

@williamblair333

Windows 10 & Python 3.9

python snmpget.py -v2c -cPUBLIC 192.168.1.2 1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = DisplayString: My Machine

python snmpset.py -v2c -cPUBLIC 192.168.1.2 1.3.6.1.2.1.1.5.0 s "mymachine"
SNMPv2-MIB::sysName.0 = DisplayString: mymachine

python snmpget.py -v2c -cPUBLIC 192.168.1.2 1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = DisplayString: mymachine

python snmpset.py -v2c -cPUBLIC 192.168.1.2 1.3.6.1.2.1.1.5.0 s "my machine"
Error: Command-line parser error at token string(machine)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions