This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 各位UNIX 大侠指点一下。 从windows 2000 上telnet 进SWITCH, 想执行多行命令,怎样才可以一次执行多行命令,就象WINDOWS 下的.bat 文件一样。 多谢了。
-tigeranddog(老虎狗传奇);
2006-1-25
(#2744084@0)
-
";" semicolon., but sonsole in a switch is a piece of customized mini OS, it might not work.
-canadiantire(轮胎-M.I.N.K.);
2006-1-25
(#2744349@0)
-
use Expect in unix shell script.
-redspider(红蜘蛛);
2006-1-25
(#2744463@0)
-
可以用EXPECT 在WINDOWS 2000 机器上TELNET , 然后执行多行命令吗?
-tigeranddog(老虎狗传奇);
2006-1-25
(#2745675@0)
-
yes, find a win32 ported expect.
-redspider(红蜘蛛);
2006-1-26
(#2748060@0)
-
这个与UNIX 没什么关系嘛
-c_sea(雪山飞狐雪山飞);
2006-1-25
(#2745692@0)
-
some telnet clients like secureCRT allow you to execute a script ( or a macro). Or write a Perl script to do it.
-idleworm(呆虫);
2006-1-26
(#2747522@0)
-
perl is perfect at this case, find a cisco perl module do everything you want with router and switch.
-redspider(红蜘蛛);
2006-1-26
(#2748064@0)
-
Switch and router provide very limit interface to you. Not like normal unix server you can write shell script easily. But if you really want to do that, here is the way:
-bugfree(BugFree);
2006-1-27
{602}
(#2748480@0)
-
Here is my solution, I used Excel to generate config script from design document, use PUTTY logon each Switch, paste script in PUTTY. I had finished 20 Switches config in a afternoon.
-dixon(D.X.);
2006-1-28
(#2751123@0)