05-19-2010 01:04 PM
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
Solved! Go to Solution.
05-19-2010 11:03 PM
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
05-19-2010 03:59 PM
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.
05-19-2010 04:28 PM
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
05-19-2010 11:03 PM
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
05-20-2010 07:30 AM
working perfectly!!! thank you so very much!!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide