Re: how to get integer from "exec/extend" shell command?
Raphaël 'SurcouF' Bordet <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Le lundi 08 novembre 2010 à 21:12 +0100, Ernest Beinrohr a écrit : > Hi, i have a simple script which always returns and integer, I have it > in my snmpd.conf as "exec test1 /bin/test.sh" and also as "extend > test1 /bin/test.sh". Unfortunately, none of there returns an integer > with the value from the script. Only a string. Is is somehow possible > to get an integer? Hi, This question was already queried this month by Angelo Höngens... The response is to use UCD-SNMP-MIB::extResult (for exec) or NET-SNMP-MIB::nsExtendResult (for extend) instead of UCD-SNMP-MIB::extOutput or NET-SNMP-MIB::nsExtendOutput1Line, respectively. Regards, -- Raphaël SurcouF ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ 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