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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...