snmpget truncating return

Aaron Segura Aaron.Segura at cabelas.com
Fri Oct 31 15:06:28 CET 2008


Looks like about 128 characters...that number seems meaningful, somehow
:-)

 

http://www.net-snmp.org/docs/mibs/host.html#hrSWRunTable

 

-----------------

hrSWRunParameters     OCTETSTR

Legal Lengths: 0 .. 128

------------------

 

________________________________

 

From: Matt Nelson [mailto:matt at frozenatom.com] 
Sent: Friday, October 31, 2008 7:27 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] snmpget truncating return

 

I have a process that I check for via SNMP.  I am using the following:

snmpget server1 -v2c -c public -t 10 .1.3.6.1.2.1.25.4.2.1.5.9691

which returns a string that is truncated:

HOST-RESOURCES-MIB::hrSWRunParameters.9691 = STRING: "-Xms512m -Xmx1024m
-Dcom.sun.management.jmxremote.port=xxxxx
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxre"
<THERE SHOULD BE MORE DATA HERE>

Is there a limitation of snmp that I can change to return more of this
string?


Note: In all actuallity I run snmpwalk, and grep for what I am needing,
since 9691 changes...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081031/c3725d0e/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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=/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list