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

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

How to verify the output of a command with LMS

Hello,

I'm running LMS 3.1 with RME 4.2.0 on Windows.

I'd like to use LMS to verify the output of a command on a large number of devices (200+). I've tried netshow, but I need to click on each individual "Success" link to see the result. And AFAIK, "Compliance Management" can only check the _configuration_, not command _output_. Correct me if I'm wrong.

What I want to do is run a command on multiple device and get a "report" of the output for all the devices. Even better : if I could verify the output for "compliance" with some regex automatically.

Example : I want to run "show ntp assoc" and make sure all my devices are synch'ed to the ntp server, that there is a star (*) before the ntp server's IP address.

Sorry if this as been asked before. I've searched the forum but I haven't found anything, maybe I'm using the wrong keywords.

Thank you,

A.

I've used "compliance management" and "netshow" before but

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: How to verify the output of a command with LMS

There is no integration framework for CLI tools. If you made a web-based tool out of it, you could add a link to it using the Application Registration feature of Common Services.

You could have your account team file a Product Enhancement Request (PERS) on your behalf to request such a feature.

3 REPLIES
Cisco Employee

Re: How to verify the output of a command with LMS

This is not possible from within the UI. However, you can script the cwcli netshow command to get the job output, then run the desired regexps over the results. To get the Netshow job output, run:

cwcli netshow jobresults -u admin -p admin -id JOBID

Where JOBID is the desired Netshow job ID.

New Member

Re: How to verify the output of a command with LMS

Hello jclarke and thanks for the answer!

If I need to script it, do you think I could integrate it into LMS as a custom tool ? I haven't read about that though, just thinking out loud... :)

Or do you think it's a feature that could be added to LMS eventually ? Could I/you add this to some "wishlist" ?

Thank you!

A.

Cisco Employee

Re: How to verify the output of a command with LMS

There is no integration framework for CLI tools. If you made a web-based tool out of it, you could add a link to it using the Application Registration feature of Common Services.

You could have your account team file a Product Enhancement Request (PERS) on your behalf to request such a feature.

168
Views
0
Helpful
3
Replies
CreatePlease to create content