Use netsnmp in python

柯昱 <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dear Sir,


I am using python to do a script, it calls netsnmp procedure ( like snmpget, snmpwalk ) to access our snmp agent. Now I meet a problem, in our proprietary MIB table, the Max access of the index is defined to "not-accessible". When I use snmpwalk to fetch the table, I can not read index information from snmpwalk return value.


The code is something like follows:


def walk(self, snmp_param, snmp_index):  
    oid = netsnmp.Varbind(snmp_param, snmp_index)
    vars = netsnmp.VarList(oid)
    result = self.sesson.walk(vars)
    return result
  
Is there any way to get this kind of index information from return value of snmpwalk ?


Best regards,

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.