Getting Data In
Highlighted

Scripted input not working

Explorer

[script://$SPLUNKHOME/etc/apps/serialnumbers/bin/test.sh]
disabled = false
host = PoCtest
index = snmp
interval = 60.0
sourcetype = serial
custom
source = PoC_test

when my script contains folowing, it will not provide anything to Splunk

!/bin/sh

/usr/bin/snmpget -v1 -O0 -c public poc_test IF-MIB::ifPhysAddress.1

but this works fine:

!/bin/sh

/usr/bin/snmpget -v1 -c public poc_rm IF-MIB::ifPhysAddress.1

anyone know where is the problem ?

0 Karma