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

LMS 2.6 Report question

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
Cisco Employee

Re: LMS 2.6 Report question

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.

2 REPLIES
Community Member

Re: LMS 2.6 Report question

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...

Cisco Employee

Re: LMS 2.6 Report question

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.

158
Views
0
Helpful
2
Replies
CreatePlease to create content