sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07375
[Question #180497]: Is the anybody worked with Siluki via UDP port for SNMP aims. I try to create session for SNMP using via Sikulli but unsuccessful.
New question #180497 on Sikuli:
https://answers.launchpad.net/sikuli/+question/180497
Hi, all
Is the anybody worked with Siluki via UDP port for SNMP aims.
I try to create session for SNMP using via Sikulli but unsuccessful
This example is working correct when I terminate it via Python GUI or cmd, But not working if I put it to Sikuli:
import sys
import pdb
from SNMP_Lib.nmsbuiltins import *
import SNMP_Lib.SNMP.SNMP as SNMP
import SNMP_Lib.SNMP.Manager as MANAGER
import SNMP_Lib.SNMP.Basetypes as Basetypes
import SNMP_Lib.mibs.SNMPv2_MIB, SNMP_Lib.mibs.RMON_MIB, SNMP_Lib.mibs.IP_MIB
#----------------------------------------------------------
def SnmpCreateNewSession(i_IP, i_versionSNMPv1, i_readCommunity, i_writeCommunity):
sd = SNMP.sessionData(i_IP,version=i_versionSNMPv1)
sd.add_community(i_readCommunity, SNMP.RO)
sd.add_community(i_writeCommunity, SNMP.RW)
i_session = SNMP.new_session(sd)
print "Session created for: ", i_IP, "ID: ", i_session
return i_session
# end def CreateNewSession
#----------------------------------------------------------
session = SnmpCreateNewSession(IP, versionSNMPv1, readCommunity, writeCommunity)
If anybody know what’s the problem let me know, thanking you in advance…
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.