Skip to content

Commit

Permalink
Revised commented items.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Sep 12, 2024
1 parent 20249f4 commit 1e34ed1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Protocol version to use
pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_1]
# pMod = api.protoModules[api.protoVersion2c]
# pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_2C]

# Build PDU
trapPDU = pMod.TrapPDU()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
maxNumberResponses = 10

# Protocol version to use
# pMod = api.protoModules[api.protoVersion1]
# pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_1]
pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_2C]

# Build PDU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Protocol version to use
pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_1]
# pMod = api.protoModules[api.protoVersion2c]
# pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_2C]

# Build PDU
reqPDU = pMod.GetRequestPDU()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Protocol version to use
pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_1]
# pMod = api.protoModules[api.protoVersion2c]
# pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_2C]

# SNMP table header
headVars = [pMod.ObjectIdentifier((1, 3, 6))]
Expand Down
6 changes: 3 additions & 3 deletions examples/v1arch/asyncio/manager/cmdgen/v2c-set.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
from pysnmp.carrier.asyncio.dgram import udp
from pyasn1.codec.ber import encoder, decoder
from pysnmp.proto import api
from time import time


# Protocol version to use
# pMod = api.protoModules[api.protoVersion1]
pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_1]
# pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_1]
pMod = api.PROTOCOL_MODULES[api.SNMP_VERSION_2C]

# Build PDU
reqPDU = pMod.SetRequestPDU()
Expand Down

0 comments on commit 1e34ed1

Please sign in to comment.