All Apps and Add-ons

SNMP Modular Example

DerekKing
Path Finder

Hi,

Would it be possible for someone who has this working to show an example please. I'm not too familiar with SNMP MIBs and OIDs etc but I would like to poll Cisco switches to get interface name and utilization figures out of them.

Thanks for any help.
Derek

Tags (1)
1 Solution

Damien_Dallimor
Ultra Champion

You may be able to use the following OIDs from the "Interface MIB" (IF-MIB) for polling the Cisco switch interface utilization.

Inbound

1.3.6.1.2.1.2.2.1.10

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.2.1.2.2.1.10&translate=Trans...

Outbound

1.3.6.1.2.1.2.2.1.16

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.2.1.2.2.1.16&translate=Trans...

And the setup for the SNMP Modular Input stanza would be quite simple :

Example of configuration from inputs.conf

[snmp://my_cisco_switch]
destination = myswitchhostname
do_bulk_get = 1
ipv6 = 0
listen_traps = 0
mib_names = IF-MIB
object_names = 1.3.6.1.2.1.2.2.1.10,1.3.6.1.2.1.2.2.1.16
snmp_version = 2C
sourcetype = foo
index = foo
split_bulk_output = 0
disabled = 0

Screenshot of setup page in Splunk Manager

alt text

View solution in original post

Damien_Dallimor
Ultra Champion

You may be able to use the following OIDs from the "Interface MIB" (IF-MIB) for polling the Cisco switch interface utilization.

Inbound

1.3.6.1.2.1.2.2.1.10

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.2.1.2.2.1.10&translate=Trans...

Outbound

1.3.6.1.2.1.2.2.1.16

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.2.1.2.2.1.16&translate=Trans...

And the setup for the SNMP Modular Input stanza would be quite simple :

Example of configuration from inputs.conf

[snmp://my_cisco_switch]
destination = myswitchhostname
do_bulk_get = 1
ipv6 = 0
listen_traps = 0
mib_names = IF-MIB
object_names = 1.3.6.1.2.1.2.2.1.10,1.3.6.1.2.1.2.2.1.16
snmp_version = 2C
sourcetype = foo
index = foo
split_bulk_output = 0
disabled = 0

Screenshot of setup page in Splunk Manager

alt text

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...