LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2016, 07:48 AM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
snmpv3 user name character restrictions


Does anyone know of the allowed characters classes for the username in snmp v3? A monitoring group in the company insisted I create an snmp v3 username that included a hyphen. I did that. I received no errors when creating it and see the user in the configuration file. However, when I try to do a walk with it, it fails. The error messages seems to indicate the snmpwalk sees the hyphen as introducing a command line option rather than being part of the name. I've been searching the Internet, but the only thing I can find is that the name can't be more than 32 characters. If anyone knows or can point me to a reference, I would greatly appreciate it.
 
Old 05-04-2016, 02:48 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,466

Rep: Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936
Quote:
Originally Posted by bradvan View Post
Does anyone know of the allowed characters classes for the username in snmp v3? A monitoring group in the company insisted I create an snmp v3 username that included a hyphen. I did that. I received no errors when creating it and see the user in the configuration file. However, when I try to do a walk with it, it fails. The error messages seems to indicate the snmpwalk sees the hyphen as introducing a command line option rather than being part of the name. I've been searching the Internet, but the only thing I can find is that the name can't be more than 32 characters. If anyone knows or can point me to a reference, I would greatly appreciate it.
I don't know of a spec for user names, but two things come to mind. The first, and most importantly, is: can the monitoring group use the name you created?? If so, then you're in good shape, and can *ASSUME* things are working, since (if they weren't), they'd complain about it.

The second would be, have you tried either wrapping the user name in double-quotes on the command-line, or escaping the hyphen with a backslash when trying the snmpwalk? Could be the command-line parser is choking on the hyphen.
 
1 members found this post helpful.
Old 05-05-2016, 05:40 AM   #3
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
I figured it out yesterday just before I left work. I had a typo in the privacy protocol selection when creating the user. Instead of AES, I had SES. The user was created in /etc/snmpd.conf, but because of the error, it was not created in /var/lib/net-snmp/snmpd.conf. That is why the walk failed. Not sure why the net-snmp-config didn't throw an error message. I deleted the entry from the /etc/snmpd.conf and then re-created with correct entries. It now works. Sorry to have bothered everyone.
 
1 members found this post helpful.
Old 05-05-2016, 09:04 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,466

Rep: Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936Reputation: 7936
Quote:
Originally Posted by bradvan View Post
I figured it out yesterday just before I left work. I had a typo in the privacy protocol selection when creating the user. Instead of AES, I had SES. The user was created in /etc/snmpd.conf, but because of the error, it was not created in /var/lib/net-snmp/snmpd.conf. That is why the walk failed. Not sure why the net-snmp-config didn't throw an error message. I deleted the entry from the /etc/snmpd.conf and then re-created with correct entries. It now works. Sorry to have bothered everyone.
Not a bother at all, and thank you very much for sharing the solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
user restrictions George Mlagara Linux - Server 1 02-19-2012 02:15 PM
FTP user restrictions JuliaNell Linux - Server 14 09-28-2010 03:51 PM
SNMPv3 Unknown user name?! humbletech99 Linux - Server 0 07-30-2007 10:21 AM
User name restrictions AndeAnderson Linux - Newbie 4 04-11-2005 04:29 PM
user Restrictions jpc82 Linux - Security 1 02-04-2002 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:27 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