Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to snmp . i want to monintor my Ubuntu machine. I execute this command (found on the web ):

snmpget -v 1 -c "community" localhost .

i wonder what is it the -c parameter (didnt success to figure it out from the man).

In the man they explain with this example:

snmpget -c public

that it will retrieve ... using the community string public , what is the meaning of community?

Thank you

share|improve this question
up vote 3 down vote accepted

The SNMP community string is used by SNMPv1 and SNMPv2c compatible devices as a very basic form of authentication. The community string is sent as part of the SNMP request. If it matches the configuration setting for the device, then the device responds. If it doesn't ehn the device ignores the request.

share|improve this answer
so what is the difference between -c public to -c community? if its auth , so why i have 2 auth? – Avihai Marchiano Aug 23 '12 at 8:11
@user1495181: They are just different strings that a device may or may not be configured to respond to. They may also be configured to allow different access to the device e.g. ReadOnly or ReadWrite etc. As Khaled says you probably need to sit down with some overview documentation to get an understanding of the concepts. – Iain Aug 23 '12 at 8:20

The community string is used for authentication. You can think of it as a password between the agent and manager even it is sent as clear-text as in SNMPv1. I think you need to read more about SNMP protocol before using it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.