Project

General

Profile

Actions

Bug #2893

closed

Add extTable to SNMPd or change sysDescr.

Added by Mike Stupalov about 11 years ago. Updated over 9 years ago.

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

100%

Estimated time:
Plus Target Version:
Release Notes:
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.

Actions #1

Updated by Jim Pingle about 11 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

Actions #2

Updated by Mike Stupalov about 11 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" 

Actions #3

Updated by Jim Pingle about 11 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Mike Stupalov about 11 years ago

Nice, thank you!

Actions #5

Updated by Renato Botelho over 9 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF