07-13-2009 09:37 PM
Hi
Does anybody knows if it possible to enter multiple commands over rsh on Cisco device.
I mean sequences like this:
conf t
service password-encryption
username xxxx secret yyyy
07-13-2009 11:00 PM
you can only run show commands from exec mode with rsh.
It is not made to send config commands.
I just tried in my lab :
lulu-mbp$ rsh -l admin 172.16.153.140 show ver
Cisco IOS Software, s72033_rp Software (s72033_rp-ADVENTERPRISE_WAN-M), Version 12.2(33)SXI1, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Sat 28-Mar-09 10:29 by prod_rel_team
BUT config terminal will fail :
lulu-mbp$ rsh -l admin 172.16.153.140 conf t
Permission denied.
Same for the other commands, rsh will not be the way to go here.
07-13-2009 11:39 PM
It's possible to enter conf t through rsh.
I made it. May you didn't add "enable" keyword at the end of the "ip rcmd remote-host..." command. The problem is that rsh doesn't accept more than one command at a time.
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