Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

snmpwalk -c public@1

13 views
Skip to first unread message

TimKapHwan

unread,
Aug 24, 2011, 6:21:08 AM8/24/11
to

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a00801c9199.shtml
While reading this article I’ve found strange syntaxes never seen
before: %snmpwalk -c public@1 crumpy vtpVlanState
@ after the public. It means the VLAN 1 part of the read community
string.

Can someone explain is it just Cisco feature or I can use it anywhere
else? Are where any over possible ways to use it?
Any help would be much appreciated.
Thank you!

Juergen Schoenwaelder

unread,
Sep 8, 2011, 5:39:57 PM9/8/11
to
TimKapHwan <tkap...@gmail.com> wrote:

> While reading this article I???ve found strange syntaxes never seen
> before: %snmpwalk -c public@1 crumpy vtpVlanState
> @ after the public. It means the VLAN 1 part of the read community
> string.
>
> Can someone explain is it just Cisco feature or I can use it anywhere
> else? Are where any over possible ways to use it?

In this example, the community string is overloaded to carry something
nowadays called a context name. There is no standard for this as far
as far as community-based SNMPv1 and SNMPv2c are concerned. The @
separator is quite popular since Cisco switches use it. SNMPv3 provides
proper support for contexts (but if you are using earlier versions of
SNMP, you will have to experiment with the boxes you have to deal with).

/js

--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany
Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
0 new messages