Net show commands

Answered Question
May 19th, 2010

I am trying to pull the secondary ip address from routers , so on the command line I am using " sh run | include secondary" and I got the secondary ip from the router. so I want to do this on netshow since I have to look 300+ routers. I have added " show running-config | include secondary" on netshow custom commands section but I just keep getting error "     Command(s) failed on the device " do you guys have any idea? or Netshow unable to fullfill my objective.Thanks

Correct Answer by Joe Clarke about 6 years 9 months ago

I looked at the code, and this is actually expected.  When you run "show run" RME expects the output to contain the begin and end tags which indicate the configuration data was returned successfully.  When you filter this, you don't get those tags, and thus the job "fails."  Try this command instead:

show ip int | in Secondary

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Wed, 05/19/2010 - 15:59

You should see some related CLI output in the job details.  What is it?  On a device for which the command fails, what is the output?  It could be that there is additional output being produced which tricks RME into thinking an error occurred.

raindrop18 Wed, 05/19/2010 - 16:28

very interesting! you are exactly right!!! even though the job result failed but when I dig down Status -> Failure -> then I have found the result I want.

  here is the exact out put

-------------------------show running-config | include secondary-------------------------          ip address 10.64.76.2 255.255.254.0 secondary

router-1a#

so that means is false error? or I missed anything.  Note -I have attached the screenshoot. thanks

Correct Answer
Joe Clarke Wed, 05/19/2010 - 23:03

I looked at the code, and this is actually expected.  When you run "show run" RME expects the output to contain the begin and end tags which indicate the configuration data was returned successfully.  When you filter this, you don't get those tags, and thus the job "fails."  Try this command instead:

show ip int | in Secondary

Actions

This Discussion