Getting Data In

Scripted input not working

dolezelk
Explorer

[script://$SPLUNK_HOME/etc/apps/serial_numbers/bin/test.sh]
disabled = false
host = PoC_test
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
Get Updates on the Splunk Community!

.conf23 Registration is Now Open!

Time to toss the .conf-etti 🎉 —  .conf23 registration is open!   Join us in Las Vegas July 17-20 for ...

Don't wait! Accept the Mission Possible: Splunk Adoption Challenge Now and Win ...

Attention everyone! We have exciting news to share! We are recruiting new members for the Mission Possible: ...

Unify Your SecOps with Splunk Mission Control

In today’s post, I'm excited to share some recent Splunk Mission Control innovations. With Splunk Mission ...