Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Multiple SNMP v3 command to type at one time

Hello :-) ,

First of all I'm not sure to be in the correct forum. Don't hesitate to tell me it's the case and I'll move it ;-)

We use Solarwinds to manage our devices with SNMP v3 (switch and routers). There's a tool which provides the correlation between MAC, IP and ports using layer 2 and 3 devices (Switch Port Mapper).

We're experiencing an issue with it. The solution given by the Solarwinds support is to type this command on every devices and for all of our VLAN.

snmp-server group (groupname) v3 priv context vlan-(vlanid)

My question : is there any way to type this command only one time and to include all the VLANs defined on the equipment ? Like when you'd like to configure the same settings for a range of interfaces...

Thank you in advance for your help.

Cheers,

2 ACCEPTED SOLUTIONS

Accepted Solutions
Cisco Employee

Re: Multiple SNMP v3 command to type at one time

It depends on the version of IOS.  Newer versions of IOS support the "match prefix" syntax which does a "contains" match.  For example:

snmp-server group v3group v3 auth context vlan- match prefix

If you don't have an IOS which supports that, you will need to configure each context manually.

Cisco Employee

Re: Multiple SNMP v3 command to type at one time

No you can't define a range.  You're literally matching on a string prefix.  If you replace v3group with your actual SNMPv3 group (and use the correct security level), this command should do it for you:

snmp-server group v3group v3 auth context vlan- match prefix
4 REPLIES
Cisco Employee

Re: Multiple SNMP v3 command to type at one time

It depends on the version of IOS.  Newer versions of IOS support the "match prefix" syntax which does a "contains" match.  For example:

snmp-server group v3group v3 auth context vlan- match prefix

If you don't have an IOS which supports that, you will need to configure each context manually.

New Member

Re: Multiple SNMP v3 command to type at one time

Hi Joseph,

Thank you for your reply.

I checked and it seems that the IOS version supports the "match prefix" syntax (12.2(50)SE1).

I don't really understand how to do it and how to set the match prefix. Can I define a range of VLAN after the match prefix ?

Thanks in advance for your reply.

Cheers,

Cisco Employee

Re: Multiple SNMP v3 command to type at one time

No you can't define a range.  You're literally matching on a string prefix.  If you replace v3group with your actual SNMPv3 group (and use the correct security level), this command should do it for you:

snmp-server group v3group v3 auth context vlan- match prefix
New Member

Re: Multiple SNMP v3 command to type at one time

OK thank you. It seems to work very well :-)

3096
Views
10
Helpful
4
Replies
CreatePlease to create content