<?xml version="1.0" ?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
	<channel>
		<title>Splunk Base : SplunkAdministration : #4049</title>
		<link>http://www.splunk.com/support/forum:SplunkAdministration/4049</link>
		<description></description>
		<pubDate>Mon, 13 Feb 2012 17:33:41 PST</pubDate>
		<lastBuildDate>Mon, 13 Feb 2012 17:33:41 PST</lastBuildDate>
		<language>en-us</language>
		<copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
		<item>
			<title>SNMP Traps for IPS</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/4049/13388</link>
			<description>&lt;p&gt;Here is my snmptrapd.conf&lt;/p&gt;

&lt;p&gt;###########################################################################&lt;br /&gt;
#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;snmptrapd.conf&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  - created by the snmpconf configuration program&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;br /&gt;
###########################################################################&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;SECTION: Authentication options&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  Authentication options&lt;/li&gt;
&lt;/ol&gt;

&lt;ol&gt;
    &lt;li&gt;ignoreauthfailure: Ignore authentication failure traps&lt;/li&gt;
    &lt;li&gt;  arguments: (1|yes|true|0|no|false)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ignoreauthfailure  0&lt;/p&gt;

&lt;p&gt;###########################################################################&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;SECTION: Output formatting for traps received.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  Output from snmptrapd is formatted according to the&lt;/li&gt;
    &lt;li&gt;  rules defined by the formatting configuration directives.&lt;/li&gt;
&lt;/ol&gt;

&lt;ol&gt;
    &lt;li&gt;format2: How SNMPv2 and SNMPv3 traps are formatted.&lt;/li&gt;
    &lt;li&gt;  See the snmptrapd.conf manual page for format string details.&lt;/li&gt;
    &lt;li&gt;  arguments: formatstring&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;format2  stderr&lt;/p&gt;

&lt;p&gt;###########################################################################&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;SECTION: Logging options&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  Logging options&lt;/li&gt;
&lt;/ol&gt;

&lt;ol&gt;
    &lt;li&gt;donotlogtraps: Prevent traps from being logged&lt;/li&gt;
    &lt;li&gt;  Useful when you only want to use traphandles&lt;/li&gt;
    &lt;li&gt;  arguments: (1|yes|true|0|no|false)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;donotlogtraps  1&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;logoption: Set options controlling where to log to&lt;/li&gt;
    &lt;li&gt;  See -L options in the snmptrapd.conf man page&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;logoption  &amp;quot;-Lf D:\IPSLogs\trapsnmp.txt&amp;quot;&lt;/p&gt;

&lt;p&gt;###########################################################################&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;SECTION: Trap Handlers&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  Here we define what programs are run when a trap is&lt;/li&gt;
    &lt;li&gt;  received by the trap receiver.&lt;/li&gt;
&lt;/ol&gt;

&lt;ol&gt;
    &lt;li&gt;traphandle: When traps are received, a program can be run.&lt;/li&gt;
    &lt;li&gt;  When traps are received, the list of configured trap&lt;/li&gt;
    &lt;li&gt;  handles is consulted and any configured program is run.&lt;/li&gt;
    &lt;li&gt;  If no handler is found, any handler with &amp;quot;default&amp;quot; as the&lt;/li&gt;
    &lt;li&gt;  traphandle type is run instead.  The information contained&lt;/li&gt;
    &lt;li&gt;  in trap is passed to the program via standard input (see&lt;/li&gt;
    &lt;li&gt;  the snmptrapd.conf manual page for details).&lt;/li&gt;
    &lt;li&gt;  &lt;/li&gt;
    &lt;li&gt;  arguments: oid|&amp;quot;default&amp;quot; program args&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;traphandle  default&lt;/p&gt;

&lt;p&gt;snmp.conf&lt;/p&gt;

&lt;p&gt;###########################################################################&lt;br /&gt;
#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;snmp.conf&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  - created by the snmpconf configuration program&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;br /&gt;
###########################################################################&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;SECTION: Default Authentication Options&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  This section defines the default authentication&lt;/li&gt;
    &lt;li&gt;  information.  Setting these up properly in your&lt;/li&gt;
    &lt;li&gt;  ~/.snmp/snmp.conf file will greatly reduce the amount of&lt;/li&gt;
    &lt;li&gt;  command line arguments you need to type (especially for snmpv3).&lt;/li&gt;
&lt;/ol&gt;

&lt;ol&gt;
    &lt;li&gt;defaultport: The default port number to use&lt;/li&gt;
    &lt;li&gt;  This token specifies the default port number you want packets to &lt;/li&gt;
    &lt;li&gt;  be sent to and received from.&lt;/li&gt;
    &lt;li&gt;  override: with -p on the command line.&lt;/li&gt;
    &lt;li&gt;  arguments: portnum&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;defaultport&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;defversion: The default snmp version number to use.&lt;/li&gt;
    &lt;li&gt;  override: with -v on the command line.&lt;/li&gt;
    &lt;li&gt;  arguments: 1|2c|3&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;defversion  2c&lt;/p&gt;

&lt;p&gt;###########################################################################&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;SECTION: Textual mib parsing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;  This section controls the textual mib parser.  Textual&lt;/li&gt;
    &lt;li&gt;  mibs are parsed in order to convert OIDs, enumerated&lt;/li&gt;
    &lt;li&gt;  lists, and ... to and from textual representations&lt;/li&gt;
    &lt;li&gt;  and numerical representations.&lt;/li&gt;
&lt;/ol&gt;

&lt;ol&gt;
    &lt;li&gt;mibdirs: Specifies directories to be searched for mibs.&lt;/li&gt;
    &lt;li&gt;  Adding a '+' sign to the front of the argument appends the new&lt;/li&gt;
    &lt;li&gt;  directory to the list of directories already being searched.&lt;/li&gt;
    &lt;li&gt;  arguments: [+]directory[:directory...]&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;mibdirs C:/usr/share/snmp/mibs&lt;/p&gt;

&lt;p&gt;#&lt;/p&gt;

&lt;ol&gt;
    &lt;li&gt;Unknown directives read in from other files by snmpconf&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;#&lt;br /&gt;
persistentDir C:/usr/snmp/persist&lt;br /&gt;
tempFilePattern C:/usr/temp/snmpdXXXXXX&lt;/p&gt;

</description>
			<pubDate>Tue, 02 Mar 2010 10:47:54 PST</pubDate>
			<author>mohmed935</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/4049/13388</guid>
		</item>
		<item>
			<title>SNMP Traps for IPS</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/4049/13370</link>
			<description>&lt;p&gt;Hi Duncan ,&lt;/p&gt;

&lt;p&gt;can u help in taking further steps ?&lt;/p&gt;

&lt;p&gt;'Thanks,&lt;br /&gt;
Mateen.&lt;/p&gt;

</description>
			<pubDate>Mon, 01 Mar 2010 12:07:38 PST</pubDate>
			<author>mohmed935</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/4049/13370</guid>
		</item>
		<item>
			<title>SNMP Traps for IPS</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/4049/13357</link>
			<description>&lt;p&gt;Hello Duncan,&lt;/p&gt;

&lt;p&gt;Firstly, i thank you for guidance.&lt;/p&gt;

&lt;p&gt;I 'm trying to write snmptrad.conf but finding it difficult. But 'l keep on  trying too.&lt;/p&gt;

&lt;p&gt;It would be easy for me,  if u can guide step by step procedure from begining ?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br /&gt;
Mateen&lt;/p&gt;

</description>
			<pubDate>Sat, 27 Feb 2010 11:52:43 PST</pubDate>
			<author>mohmed935</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/4049/13357</guid>
		</item>
		<item>
			<title>SNMP Traps for IPS</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/4049/13323</link>
			<description>&lt;p&gt;Hi Mateen,&lt;/p&gt;

&lt;p&gt;The script you have is for &lt;strong&gt;sending&lt;/strong&gt; SNMP traps, not &lt;strong&gt;receiving&lt;/strong&gt; them.&lt;/p&gt;

&lt;p&gt;You do need the Net-SNMP tools. You want to run the snmpconf tool and configure snmptrapd to write to a file. Then add the file as an input. The only default settings you &lt;em&gt;need&lt;/em&gt; to change are the security options, to allow all hosts or just specified hosts to send snmp traps.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Duncan Turnbull&lt;br /&gt;
Satisnet Technical Services&lt;br /&gt;
EMEA Splunk Partner&lt;/p&gt;

</description>
			<pubDate>Thu, 25 Feb 2010 04:07:20 PST</pubDate>
			<author>dart</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/4049/13323</guid>
		</item>
		<item>
			<title>SNMP Traps for IPS</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/4049/13284</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have Splunk 4.0.9 installed on windows server 2008.&lt;/p&gt;

&lt;p&gt;i need to get snmp traps from IBM Proventia IPS.&lt;br /&gt;
 SNMP is enabled on IPS&lt;/p&gt;

&lt;p&gt;Configuration on Splunk end:&lt;/p&gt;

&lt;p&gt;I have installed Net-SNMP and configured script below as per link&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.splunk.com/wiki/Community:Sending_SNMP_Traps_On_Windows&quot;&gt;http://www.splunk.com/wiki/Community:Sending_SNMP_Traps_On_Windows&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Script&lt;/p&gt;

&lt;p&gt;setlocal&lt;/p&gt;

&lt;p&gt;set SNMPAGENTHOST=10.151.2.103   ---&amp;gt; Splunk IP address, Netsnmp installed&lt;br /&gt;
set SNMPAGENTPORT=162    &lt;br /&gt;
set OID=1.3.6.1.4.1.27389.1.1            ---&amp;gt; confused at OID &lt;br /&gt;
set SNMPCOMMUNITY=public           --&amp;gt; string as per configured on IPS&lt;br /&gt;
set SNMPTRAPCMD=C:\usr\bin\snmptrap.exe&lt;br /&gt;
for /f &amp;quot;usebackq&amp;quot; %%h in (`hostname`) do @set myhost=%%h&lt;br /&gt;
set num=%~1&lt;br /&gt;
set num=%num:'=%&lt;br /&gt;
set terms=%2&lt;br /&gt;
set query=%3&lt;br /&gt;
set sname=%4&lt;br /&gt;
set reason=%5&lt;br /&gt;
set permalink=%6&lt;br /&gt;
if &amp;quot;%8&amp;quot; == &amp;quot;&amp;quot; (&lt;br /&gt;
    set resultspath=%7&lt;br /&gt;
) else (&lt;br /&gt;
    set tags=%7&lt;br /&gt;
    set resultspath=%8&lt;br /&gt;
)&lt;/p&gt;

&lt;p&gt;if &amp;quot;%8&amp;quot; == &amp;quot;&amp;quot; (&lt;br /&gt;
    &amp;quot;%SNMPTRAPCMD%&amp;quot; -v 2c -c %SNMPCOMMUNITY% %SNMPAGENTHOST%:%SNMPAGENTPORT% host-uptime %OID% %OID%.1 i %num%  %OID%.2 s %terms%  %OID%.3 s %query%  %OID%.4 s %sname%  %OID%.5 s %reason% %OID%.6 s %permalink% %OID%.8 s %resultspath%&lt;br /&gt;
) ELSE (&lt;br /&gt;
    &amp;quot;%SNMPTRAPCMD%&amp;quot; -v 2c -c %SNMPCOMMUNITY% %SNMPAGENTHOST%:%SNMPAGENTPORT% host-uptime %OID% %OID%.1 i %num%  %OID%.2 s %terms%  %OID%.3 s %query%  %OID%.4 s %sname%  %OID%.5 s %reason% %OID%.6 s %permalink% %OID%.8 s %resultspath% %OID%.7 s %tags%&lt;br /&gt;
)&lt;/p&gt;

&lt;p&gt;endlocal&lt;/p&gt;

&lt;p&gt;above script resides in splunk home\bin \scripts\sendsnmptrap.cmd&lt;/p&gt;

&lt;p&gt;i have configured splunk and scheduled script to run at 60secs interval through data inputs.&lt;/p&gt;

&lt;p&gt;Perl 5.10 is installed.&lt;/p&gt;

&lt;p&gt;I 'm not receving traps in splunk.&lt;/p&gt;

&lt;p&gt;can i get guidance how can i troubleshoot further ?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br /&gt;
Mateen.&lt;/p&gt;

</description>
			<pubDate>Wed, 24 Feb 2010 03:02:52 PST</pubDate>
			<author>mohmed935</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/4049/13284</guid>
		</item>
	</channel>
</rss>

