[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pysmnp : setCmd doesn't modify the object value

I tried to set a value from setCmd. Execution doesn't return any error but the snmp request is not sent !
g = setCmd(SnmpEngine()
, CommunityData('public', mpModel=1)
, UdpTransportTarget(('x.x.x.x', 161))
, ContextData()
, ObjectType(ObjectIdentity(''), int('1')))
According to the MIB information, the value can be 1, 2 or 3 (integer type).
I assume that the type value set (int('1)) is not the right one, but I don't find the solution to pass the right type.
Thanks for your help.
Christian Doar? (Groupe Open)
T?l :      +33 2 96 07 02 63
Mobile :  +33 6 33 51 41 15
cdoare.ext at orange.com<mailto:cdoare.ext at orange.com>


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.