LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-25-2019, 11:19 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
snmpget command syntax question


Hello --

I am implementing SNMP as part of a monitoring solution. To that end, the application that I am using requires the v3 and v2c versions of the protocol.

Part of the process is testing the connections using the two protocol versions using snmpget. The testing of the v3 protocol was successful. However, I am running into problems with the v2c protocol. The command syntax that I am using is the following:

Quote:
snmpget -v2c -c <community name> -l authPriv <ip address>
When I run the above command, the following error appears on-screen:

Quote:
Missing object name
What is the correct syntax to use in this scenario?

Thanks.
 
Old 06-25-2019, 11:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by kaplan71 View Post
Hello --
I am implementing SNMP as part of a monitoring solution. To that end, the application that I am using requires the v3 and v2c versions of the protocol. Part of the process is testing the connections using the two protocol versions using snmpget. The testing of the v3 protocol was successful. However, I am running into problems with the v2c protocol. The command syntax that I am using is the following:
Code:
snmpget -v2c -c <community name> -l authPriv <ip address>
When I run the above command, the following error appears on-screen:
Code:
Missing object name
What is the correct syntax to use in this scenario?
Did you read the documentation/man page? Because what you posted is PART of the message, which should include all the options and syntax.
http://snmplabs.com/snmpclitools/snmpget.html

When you specify authpriv, you need to give it user ID's/passwords/credentials/SOMETHING.
 
Old 06-25-2019, 12:01 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
Hello --

I did read the man page for snmpget, and I compared to the command syntax that I used for testing. As it turns out, another test indicated the v2c connection that I am using is working well, and I do not need to pursue this line of questioning further.

Thank-you for responding to my inquiry.
 
  


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
snmpget form c cools Programming 1 07-01-2007 06:31 PM
SNMPGET and SNMPBULKWALK error elnunez Linux - Networking 0 06-27-2006 05:11 AM
help with snmpget alaios Linux - Networking 4 08-25-2005 06:43 AM
linux snmpd and freebsd snmpget localhost127 *BSD 0 11-20-2004 02:52 PM
snmpget ARP table of router parker Programming 0 08-14-2003 01:42 AM

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

All times are GMT -5. The time now is 01:55 AM.

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