Bluehost.com Web Hosting $6.95

Re: command line options vs. snmp.conf

This is a discussion on Re: command line options vs. snmp.conf within the SNMP Users forums, part of the Networking and Network Related category; >>>>> On Thu, 10 Nov 2005 09:17:05 +0000, Dave Shield <D.T.Shield@...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-29-2005
Wes Hardaker
 
Posts: n/a
Default Re: command line options vs. snmp.conf

>>>>> On Thu, 10 Nov 2005 09:17:05 +0000, Dave Shield <D.T.Shield@csc.liv.ac.uk> said:

>> The output formatting options that I specify on the command line do
>> not appear to override the options found in my ~/.snmp/snmp.conf
>> file..... if I remove oidOutputFormat from my snmp.conf file and
>> specify both -Of and -Os on the command-line, the "last" option always
>> takes precedence. Shouldn't this also apply to options read from the
>> snmp.conf file?


Dave> That certainly sounds like a bug to me.

Sadly, it's not a bug.

It's a feature!!!

It's a long standing issue. precedence for net-snmp, which is quite
unique to our package, is in order (1 being trumped by 2):

1) short command line arguments
2) config files
3) long command line arguments (which are config file tokens prefixed
by --).

IE, add --oidOutputFormat=WHATEVER to your command line and you'll
find it overrides the config file.

--
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0