Skip navigation
35056 Views 4 Replies Latest reply: Feb 19, 2010 11:25 AM by Ryan Matte RSS
kbecker Newbie 2 posts since
Feb 13, 2010
Currently Being Moderated

Feb 13, 2010 1:24 PM

Possible snmpd.conf exec limitations

 

 

 

Had anybody encountered an issues with trucated data when using exec in the snmpd.conf to execute a command on a remote host.  When running the command on the actual host all output lines get displayed and are complete.  Here are the last three lines of the output...

 

data8            516287984    370097752    146190232   72%    /data8
data4            413030384    258884720    154145664   63%    /data4
root_fs_2           258128        14704       243424    6%    /

 

Now, when executing a snmpwalk (from the monitoring server) with the custom OID the following is displayed.  As you can see the truncation starts in the second to last line.  In total the script on the remote host produces 16 lines of output, anybody aware of any exec character or line output limitations?

 

SNMPv2-SMI::enterprises.1139.99999.1.101.14 = STRING: "data8            516287984    370097752    146190232   72%    /data8"
SNMPv2-SMI::enterprises.1139.99999.1.101.15 = STRING: "data4            413030384    258884720    1541"
SNMPv2-SMI::enterprises.1139.99999.1.102.1 = INTEGER: 0
SNMPv2-SMI::enterprises.1139.99999.1.103.1 = ""

 

This is the exec line in the snmpd.conf.

exec .1.3.6.1.4.1.1139.99999.1 server_df /bin/bash /nas/bin/server_df_wrapper

 

 

Thanks in advance for any input...

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points