We can put ftp commands/parameters into a input file for Shell script
(like password, "cd ...", "get..."). Is it possible to do this with openssh
that comes with Solaris/Linux?
My plan is to use following crontab script (call it capture.sh) so that the
filer's commands are captured into output.txt :
00,15,30,45 /adm/script/capture.sh >> /var/tmp/output.txt 2>> /var/tmp/err.txt
# ssh 10.51.1.2 -l root (don't find any "-p password" for ssh)
The authenticity of host '10.51.1.2 (10.51.1.2)' can't be established.
...
Are you sure you want to continue connecting (yes/no)? yes
root@10.51.1.2's password:
FILER1> Fri Jul 4 13:27:35 SGT [SLAFILE1: openssh.invalid.channel.re
q:warning]
: SSH client (SSH-2.0-OpenSSH_4.3) from 10.51.1.45 sent unsupported channel request (10, env).
FILER1>
FILER1> fcp show adapter -v
...........
FILER1>lun config_check
No Problems Found
FILER1> fcp status
FCP service is running.
SLAFILE1> logout telnet
Connection to 10.51.1.2 closed.
If expect/tcl script is expected, appreciate a more detailed codes
as I'm not familiar with expect/tcl scripting.
Thanks
Start Free Trial