cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
469
Views
0
Helpful
2
Replies

LMS 2.6 Report question

glynncounty
Level 1
Level 1

How can i do a report that will show me all my routers that have a secondary ip address on them?

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

You can use the baseline compliance feature of RME to do this. Go to RME > Config Mgmt > Archive Mgmt > Baseline Templates, and create a new advanced template for your Routers group (or any other groups you may want). The template will simply consist of prerequisite command set, and one simple check for a ubiquitous command (like hostname):

Name : SecondaryCheck

IsPrerq : TRUE

Submode : interface [#.*#]

Body:

+ ip address [ADDR] [MASK] secondary

Name : HostnameCheck

IsPrereq : FALSE

Prereq : SecondaryCheck

Submode :

Body:

+ hostname [NAME]

Then run a compliance check against all relevant devices. The resulting compliant devices have a secondary IP, and those excluded do not.

View solution in original post

2 Replies 2

glynncounty
Level 1
Level 1

Reason for this is..

Seams that when I do a device descover and then a data collection in CM 4.0.12 we have some old routes still in our configs.. And somehow it is reporting that there is a router maybe due to a static route that isn't there anymore? I am at a loss on what is happening...

Joe Clarke
Cisco Employee
Cisco Employee

You can use the baseline compliance feature of RME to do this. Go to RME > Config Mgmt > Archive Mgmt > Baseline Templates, and create a new advanced template for your Routers group (or any other groups you may want). The template will simply consist of prerequisite command set, and one simple check for a ubiquitous command (like hostname):

Name : SecondaryCheck

IsPrerq : TRUE

Submode : interface [#.*#]

Body:

+ ip address [ADDR] [MASK] secondary

Name : HostnameCheck

IsPrereq : FALSE

Prereq : SecondaryCheck

Submode :

Body:

+ hostname [NAME]

Then run a compliance check against all relevant devices. The resulting compliant devices have a secondary IP, and those excluded do not.