Project

General

Profile

Bug #2893

Add extTable to SNMPd or change sysDescr.

Added by Mike Stupalov over 6 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
SNMP
Target version:
-
Start date:
03/20/2013
Due date:
% Done:

100%

Estimated time:
Affected Version:
All
Affected Architecture:
All

Description

Please add extTable lines in bSNMPd config (/var/etc/snmpd.config) like:

# Extension commands (extTable)
extNames.0 = "uname" 
extCommand.0 = "/usr/bin/uname -a" 
extNames.1 = "uptime" 
extCommand.1 = "/usr/bin/uptime" 

or make custom sysDescr. For example, like:

SNMPv2-MIB::sysDescr.0 = STRING: pfsense.localdomain pfSense-2.1 FreeBSD 8.1-RELEASE-p13

This is necessary to be able identified over snmp as system with pfSense.
(Now pfSense system does not distinguish from normal system with FreeBSD.

Associated revisions

Revision dadf8ebb (diff)
Added by Jim Pingle over 6 years ago

use a custom sysDescr for snmp similar to m0n0wall's format. Fixes #2893

History

#1 Updated by Jim Pingle over 6 years ago

The commands would only work if the user has the UCD module loaded, which is possible on 2.1. I would hesitate to add these in hardcoded though, opting to have a rowhelper-style control where you could enter as many commands as desired.

A patch to add the commands hardcoded can be grabbed from here:
http://files.pfsense.org/jimp/patches/add_extcommands_2893.patch

#2 Updated by Mike Stupalov over 6 years ago

I found old mails in mailing list, which discussed the issue:
http://www.mail-archive.com/support@pfsense.com/msg08634.html
Unfortunately, since then, nothing has changed..

sysDescr change is preferable because it will not depending on the module UCD.
offers the following format:

"$os $host $version $platform $base $base_version $base_hardware" 

for example monowall is displayed, as follows:
SNMPv2-MIB::sysDescr.0 = STRING: "m0n0wall gw.de56.net 1.33 generic-pc FreeBSD 6.4-RELEASE-p5 i386" 

#3 Updated by Jim Pingle over 6 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#4 Updated by Mike Stupalov over 6 years ago

Nice, thank you!

#5 Updated by Renato Botelho almost 5 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF