RE: String to Integer
"Clement Sciammas" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <992428631F264173B8A4E29422B0B330@CSCIAMMAST43> |
Mike/Dave, Thanks for the help. Unfortunately, the device making the query is a 3rd party load balancer that we do not have the ability to modify. Is there a way other than extend to get integer output of a local shell script? Thanks Clement -----Original Message----- From: Mike Ayers [mailto:[email protected]] Sent: Monday, October 13, 2008 11:25 AM To: Clement Sciammas; [email protected] Subject: RE: String to Integer > From: Clement Sciammas [mailto:[email protected]] > Sent: Friday, October 10, 2008 10:47 AM > We are using net-snmp 5.3.0.1-25.25 and.doing an extend query > that is returning a string but we would like it to return an > integer because it is used by another application that will > only accept integer input. Here is the output from snmpget: The extend command only returns strings. You will need to parse the output line into an integer type in whatever scripting language or adapter you are using to process the output. HTH, Mike ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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