Ben
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
What kind of script are you using?
Tony
--
-------------- -- ---- ---- --- - - - - - -- - - - - - -
Tony Bourke to...@vegan.net
Ben
If you can make it into a perl script, you could do this:
$value =~ s/\"//g;
This would remove all the quotation marks.
Ben
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Have you tried the various -O options? See the snmpcmd man page for options,
and see if one of them does the trick.
--
Robert Story, NET-SNMP Junkie
<irc://irc.openprojects.net/#net-snmp> <http://www.net-snmp.org/>
You are lost in a twisty maze of little standards, all different.
but with 4.2.5 i get:
"192.168.0.1"
and I can't use the quotes.
Ben
----- Original Message -----
From: "Robert Story" <rst...@freesnmp.com>
To: <net-snm...@lists.sourceforge.net>
Cc: <b...@foundmoney.com>
Sent: Tuesday, July 02, 2002 4:46 PM
Subject: Re: SNMPget and quotes
Is there any way to get all the settings and file directories like it is in
redhat 6.2? basically I want it to be identical to the RHL6.2 update RPM
except for the lack of openssl. (ie: install the files into /usr/bin instead
of /usr/local/bin)
If it's too hard then I'll just create links into /usr/bin and /usr/sbin for
the executables
Ben
----- Original Message -----
From: "Robert Story" <rst...@freesnmp.com>
To: <net-snm...@lists.sourceforge.net>
Cc: <b...@foundmoney.com>
Sent: Tuesday, July 02, 2002 4:46 PM
Subject: Re: SNMPget and quotes
> On Tue, 2 Jul 2002 15:42:37 -0400 "Ben Tshin" <b...@foundmoney.com> wrote:
> BT> I'm using ucd-snmp 4.2.5 and I'm performing snmpget on a MIB. However,
when
> BT> output the result has quotations around it. I tried the exact same
command
> BT> in 4.2.3 and the output did NOT have quotations around it. I'm using
> BT> snmpget in part of a script and the script REQUIRES that the output
not
> BT> have quotations, so how can i get around this problem.
>
> Have you tried the various -O options? See the snmpcmd man page for
options,
> and see if one of them does the trick.
>
> --
> Robert Story, NET-SNMP Junkie
> <irc://irc.openprojects.net/#net-snmp> <http://www.net-snmp.org/>
>
> You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
I believe "configure --prefix=/usr" should do the trick...
Hmmm.... I've just tried this with the 4.2.3, 4.2.5 and 5.0.1 agents,
and I don't see the quotes round the name in any of these three cases.
One thought springs to mind.
I note that the output of the 'name' common is a numeric-looking string.
How have you got this set up in the snmpd.conf file?
If I try something like:
exec 192.128.0.1 /some/command with args
the agent tries to interpet this field as the root OID of the MIB subtree
to use for the output (instead of the default 1.3.6.1.4.1.2021.8.1.2)
I need to put this string in quotes to get it interpreted correctly.
But even then, the output I get back doesn't have these quotes.
What happens if you try with an alphabetic name, instead of an IP address
string?
Dave