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

RME Compliance check to cleanup old IOS statements

There are IOS switches and routers that are configured with both old and the new SNMP servers. I'm using RME compliance and deploy to cleanup device configurations. It seems I am not grasping the 'compliant' and 'not compliant' concept.

My baseline template has the following:

# Check that the following are the only snmp servers.
- [#!snmp-server host 172\.20\.35\.61.*#]
- [#!snmp-server host 172\.20\.35\.90.*#]
- [#!snmp-server host 172\.20\.35\.139.*#]
- [#!snmp-server host 172\.20\.35\.204.*#]

I want only the above four to be the only snmp-server statements in the configuration. In the RME report, I was expecting non-compliant and a list of the other SNMP servers that needs to be removed from the configuration. I received a report saying the devices were compliant.

Here is an example of what is in the current device configuration:

snmp-server host 172.20.35.139 ******** snmp
snmp-server host 172.20.35.204  ******** snmp
snmp-server host 172.20.35.61 ******** snmp
snmp-server  host 172.20.35.90 ******** snmp
snmp-server host 172.20.37.31 ******** snmp       << needs to go
snmp-server host 172.20.37.32 ******** snmp       << needs to go
snmp-server host  172.20.37.33 ******** snmp        << needs to go
snmp-server host 172.20.37.34 ******** snmp        << needs to go

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: RME Compliance check to cleanup old IOS statements

I think what you want is:

+ snmp-server host 172.20.35.139 ******** snmp
+ snmp-server host 172.20.35.204  ******** snmp
+ snmp-server host 172.20.35.61 ******** snmp
+ snmp-server  host 172.20.35.90 ******** snmp

- [#snmp-server host (?!172\.20\.35\.139|172\.20\.35\.204|172\.20\.35\.61|172\.20\.35\.90).*#]

1 REPLY
Cisco Employee

Re: RME Compliance check to cleanup old IOS statements

I think what you want is:

+ snmp-server host 172.20.35.139 ******** snmp
+ snmp-server host 172.20.35.204  ******** snmp
+ snmp-server host 172.20.35.61 ******** snmp
+ snmp-server  host 172.20.35.90 ******** snmp

- [#snmp-server host (?!172\.20\.35\.139|172\.20\.35\.204|172\.20\.35\.61|172\.20\.35\.90).*#]

592
Views
0
Helpful
1
Replies