Re: returning an integer value for extend script?

Angelo Höngens <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 10-10-2010 21:17, Dave Shield wrote:
> No - you get two string values ("123" and "123"), and two integer
> values (1 and 0)
> 
> If you define the same extension command rooted at the default location
> (NET-SNMP-EXTEND-MIB::nsExtendObjects), the results would be shown
> as follows:
> 
> 
>    NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."test" = STRING: "123"
>    NET-SNMP-EXTEND-MIB::nsExtendOutputFull."test" = STRING: "123"
>    NET-SNMP-EXTEND-MIB::nsExtendOutputNumLines."test" = INTEGER: 1
>    NET-SNMP-EXTEND-MIB::nsExtendResult."test" = INTEGER: 0
> 
> 
> Try with
>    extend .1.3.6.1.4.1.2021.54.101.0 test "exit 123"
> or
>    extend                               test "exit 123"
> 
> Dave

Thanks, it's an excellent workaround, and works like a charm!


-- 


With kind regards,


Angelo Höngens
systems administrator

MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239

[email protected]
www.netmatch.nl
------------------------------------------



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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.