介绍几个常用的命令
a.通过Tera Term连接PFC所在的机器以及断开连接
通过TTL的connect/disconnect命令实现
Connect:
connect '192.168.137.27 /ssh /auth=password
/user=username /passwd= passwd'
注:其中username是用户名,passwd是密码
Disconnect:
disconnect
注:disconnect后面指定参数,这样就不弹出确认框了。
b.通过log记录全程操作过程,最终通过比对log确认测试结果。
通过logopen/logclose命令来写log
logopen:
logopen filename 0 1 1
注:filename最好设成命令名,不通ttl脚本不要重复。也可以带执行的时间,
例如:Show_candidate_config_20110426-130939.log
方法如下:
gettime timestr
"%Y%m%d-%H%M%S"
getdir mdir
sprintf2 filename '%s\ Show_candidate_config
_%s.log' mdir
timestr
logclose
:
logclose
c.测试项作成时可能用到的命令
Pause:(暂停)