NB> I'm not that much for numeric OID's, but I have this script I took the script and added a little bit of "-x" fun so that you can see what it's doing and where it's getting the errors.
It can do an snmpget on sysDescr.0 just fine with the "private" rwcommunity string, but anything after that [in relation to DISMAN-PING-MIB] doesn't work. Has anyone else had any luck with DISMAN-PING-MIB? + agentIp=m077 + targetAddressType=ipv4 + targetAddress=192.168.32.1 + index='"nba"."A"' + agentCredentials='-v2c -cprivate -r0' + echo 'Testing for connectivity.' Testing for connectivity. + snmpget -v2c -cprivate -r0 m077 sysDescr.0 RFC1213-MIB::sysDescr.0 = STRING: "Linux m077 2.6.30-gentoo-r8 #1 SMP Thu Jun 3 20:29:38 GMT 2010 x86_64" + echo '' + echo 'Attempting to destroy the row.' Attempting to destroy the row. + snmpset -v2c -cprivate -r0 m077 'DISMAN-PING-MIB::pingCtlRowStatus."nba"."A"' = destroy Error in packet. Reason: notWritable (That object does not support modification) Failed object: DISMAN-PING-MIB::pingCtlRowStatus."nba"."A" + echo '' + echo 'Attempting to create the row.' Attempting to create the row. + snmpset -v2c -cprivate -r0 m077 'DISMAN-PING-MIB::pingCtlRowStatus."nba"."A"' = createAndWait Error in packet. Reason: notWritable (That object does not support modification) Failed object: DISMAN-PING-MIB::pingCtlRowStatus."nba"."A" + echo '' + echo 'Attempting to update the row.' Attempting to update the row. + snmpset -v2c -cprivate -r0 m077 'DISMAN-PING-MIB::pingCtlTargetAddressType."nba"."A"' = ipv4 'DISMAN-PING-MIB::pingCtlTargetAddress."nba"."A"' = 192.168.32.1 'DISMAN-PING-MIB::pingCtlProbeCount."nba"."A"' = 10 'DISMAN-PING-MIB::pingCtlAdminStatus."nba"."A"' = enabled Error in packet. Reason: notWritable (That object does not support modification) Failed object: DISMAN-PING-MIB::pingCtlTargetAddressType."nba"."A" + echo '' + echo 'Attempting to start the test.' Attempting to start the test. + snmpset -v2c -cprivate -r0 m077 'DISMAN-PING-MIB::pingCtlRowStatus."nba"."A"' = active Error in packet. Reason: notWritable (That object does not support modification) Failed object: DISMAN-PING-MIB::pingCtlRowStatus."nba"."A" + echo '' + echo 'Here is the control table.' Here is the control table. + snmptable -v2c -cprivate -r0 -Cb -Cw 120 m077 DISMAN-PING-MIB::pingCtlTable DISMAN-PING-MIB::pingCtlTable: No entries + echo '' + sleep 5 + echo 'Here is the results table.' Here is the results table. + snmptable -v2c -cprivate -r0 -Cib -Cw 120 m077 DISMAN-PING-MIB::pingResultsTable Timeout: No Response from m077 + echo '' + echo 'Here is the historytable.' Here is the historytable. + snmptable -v2c -cprivate -r0 -Cib -Cw 120 m077 DISMAN-PING-MIB::pingProbeHistoryTable Timeout: No Response from m077 ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
