LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 06-10-2016, 11:11 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
net-snmp - customize snmpd


Hello,

My x86 is connected via PCIe to an Intel's device. This device(ASIC)
is an ethernet switch (fm10k)
Intel provides a linux library + device driver for managing the switch
(e.g: read port status, set port speed).
I want to run snmpd on the x86 and fill the TODO with the relevant Intel's API.

Intel does not provide any SNMP infrastructure for this device.

I think it will be great if the x86 will run snmpd with some
customization and will monitor\manage the switch device.
Is it possible ?

What SNMP agent runs in all commercial switches. Is it not snmpd ?

My first step is to understand how to "convince" snmpd that the switch has 16 ports.
The default is 4 which is the number if etherent devices in the x86. This is of course not relevant for my needs.

Thank you,
Zvika
 
Old 06-13-2016, 08:29 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
snmp on a standard Linux host can be extended through shell scripts to perform any kind of checks. You could write extensions that make use of the linux/device library to query your device and report it back to your snmp client. These checks will be on a different OID but can then be set up as services in your monitoring software accordingly.

Look for the section "Executables/scripts" in snmpd.conf that should give details on extending snmpd with scripts and also shows the OID "entry point"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with running SNMP agent : snmpd prashant nirni Ubuntu 0 11-11-2011 08:12 AM
[SOLVED] snmp: where are the MIB files for OIDs reported through snmpd? eantoranz Linux - Server 1 03-22-2011 10:15 AM
SNMP Extend MIB on Ubuntu snmpd 5.4.1 lpse2000 Linux - Software 1 10-01-2009 04:55 PM
Net-SNMP (snmpd) Mithrilhall Linux - Newbie 3 05-25-2006 09:59 PM
Install snmp or snmpd rob_roman23 Linux - Software 13 03-28-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration