I am trying to execute a script through a SNMP GET using Net-Snmp included in the latest Solaris 10 (10/09 s10s_u8wos_08a SPARC).

I have a non-global zone which runs NET-SNMP version 5.0.9 patched to the last SMA patch (120272-26).

The zone responds to a snmpwalk but if I add something like

exec test /bin/echo "hello golem" 

in /etc/snmp/conf/snmpd.conf and restart:

svcadm restart sma

if I try to walk . (UCD-SNMP-MIB::extTable) I get no objects.

In other similar cases I solved installing the version from sunfreeware.com but it looks like the current version (netsnmp- is not working inside a zone.

Does anyone know how to enable the extTable tree? What is really strange is that the man page for snmpd.conf shows the exec command and the demon says it's capable to understand exec:

 prompt# /usr/sfw/sbin/snmpd -H 2>&1| grep exec
        exec                     [miboid] name program arguments

PS I get no hints from /var/log/snmpd.log

2 Answers 2


Any errors in obtaining the information described above are reported by means of the flag and the text-string description.

Check content of . after checking . You should also try adding . before your OID in the exec line, so:

exec . test /bin/echo "hello golem"

  • I get no answer from snmpwalk -Os -c public -v 1 myip . while snmpwalk -Os -c public -v 1 myip . gives snmperrIndex.0 = INTEGER: 0 snmperrNames.0 = STRING: snmp snmperrErrorFlag.0 = INTEGER: 0 snmperrErrMessage.0 = STRING: both with trailing dot and without in the snmpd.conf exec OID (empty snmpd.log as usual) Dec 16, 2009 at 18:10

I found out the answer:

the proper config file is


as I found out reading this blog entry. Adding the exec lines there gives the proper result.

It would be nice to know what the heck /etc/snmp/conf/snmpd.conf is used for and why solaris people choose to use the other location as the main one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.