Cisco show command script

90 pts.
Tags:
Cisco
Cisco IOS
Scripting
Scripts
Hello. I want to implement a simple and easy to use script that would allow me to do a sequence of Cisco IOS commands. Can anyone help me? For example, if I want to sent a customer a script with the following commands but in a script so that they cannot change it. Thank you, Show ver Show config Show Cdp Show interface Show ip interface show ip interface brief Show Ip route Show log Show vlan

Answer Wiki

Thanks. We'll let you know when a new response is added.

Great tool for that – Cisco Works…

Discuss This Question: 10  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • saturno
    Hello, Why don't you configure remote access to the equipment and do it yourself? I don't know the environment/situation, but if a client/partner/friend/whatever of mine couldn't script the commands you state above, I would not trust him the access to router... Saturno
    4,585 pointsBadges:
    report
  • Sixball
    (excellent point )
    8,705 pointsBadges:
    report
  • saturno
    Thanks Sixball ;-)
    4,585 pointsBadges:
    report
  • Chippy088
    If you don't want a client to mess with your stuff, don't give them access to it. Those commands are only of interest to a network engineer, and I can't see why you would want to do that on a remote router, when you can't see the result of the commands. If it could be done, you still have router password to include in the scripts, and that will let anyone who can read it, know how to bypass the security. Not a good idea to let your clients know that you don't take their security seriously.
    4,625 pointsBadges:
    report
  • Jay2496
    I would like to thank everyone for their response but I don't think that I made myself clear on the situation. The clients that would be running the script own the routers and switches. They have full access. I'm assessing network for the government. I'm simply sending them a text pad with the show run commands but they are able to remove what they don't want me to see. I was hoping that there was an easy way to implement a script for them to run without them making changes.
    90 pointsBadges:
    report
  • Sixball
    You COULD script those commands, but, if you want to be able to READ the outputs, you may not want to have them run back-to-back. The "show config" or "Show run" command can take up to several screeens (upwards of 15+ on larger routers) to view ALL the output. Same goes for the "show Ip route" - if they have border routers that use eBGP, that list can take a LONG time to go through...
    8,705 pointsBadges:
    report
  • Jay2496
    Correct. So far the outputs have not been long with the process that I'm currently doing.
    90 pointsBadges:
    report
  • Chippy088
    Think most of us have come across this reluctance to comply, at some time or other in our careers. I think you will have no option, but to take what they are prepared to give you. (Unless they are legally required to comply.) However, if you do give them the list of commands, get them to redirect each command output to a separate text file, and hope they send you all the files.
    4,625 pointsBadges:
    report
  • Jay2496
    Will do. Thank you all again for your response.
    90 pointsBadges:
    report
  • rick5952
    just put the commands in a list.have them copy and paste it into the router. they will run sequentially, have them save the output to a file, or copy and paste it into a word or notepad document. why do you not have remote access to this router? if you know any IP address on the router, especially its loopback 0 or interface IP you should be able to telnet or ssh into it...then you could do all these commands yourself.
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following