yes I can telnet or ssh into the switch manually and issue cli commands.
telnet does not appear to accept the -pw option on plink for a password. It looks like ssh should accept a password but it keeps prompting for one.
I think possibly I need to set up a pvt key but I'm not sure how. I can display the switch public key info and I can create a public & pvt key using PuttyGen but thats as far as I have got so far.
it looks like plink will not take -pw and -l option when using telnet, only ssh. You could do what you are trying to do from a perl script ..using "Net::Telnet" module.
I tried tuning on SSH for one of the switches as the syntax looks like ssh should accept -l and -pw for a password but it kept asking for a password each time. I cant do perl but I have come up with a couple of workarounds neither of which are as slick as plink which runs in the back ground, these open sessions in the foreground which is what I wanted to avoid.
First option was to use putty with presaved profiles containing the ipaddress and logging info.
the other option is to use telnet with the -f flag which write the output to a file. Got confused initially as I'm using telnet on a Win2000 machine which doesnt have the -f flag. Once I copied a version of the telnet client from win XP it worked.
Would still be interested in know if there is a way to telnet or ssh onto a mcdata switch without a password prompt. I did try reseting the SSH keys on the switch at which point i was reprompted to update my key on my pc so I think I have the correct key relationship.
i should have thought about this before . I use TeraTerm with LogmeTT to connect to my Unix boxes, switches etc. I am too lazy to type my username and password all the time so i pre-created a few macros within LogmeTT that automates logins for me. I run it interactively while i am logged-in to my pc but i believe this can be scripted and run in unattended mode. Check it out
dynamox
9 Legend
•
20.4K Posts
0
February 16th, 2009 10:00
SKT2
2 Intern
•
1.3K Posts
0
February 16th, 2009 11:00
clarriion
17 Posts
0
February 17th, 2009 01:00
telnet does not appear to accept the -pw option on plink for a password. It looks like ssh should accept a password but it keeps prompting for one.
I think possibly I need to set up a pvt key but I'm not sure how. I can display the switch public key info and I can create a public & pvt key using PuttyGen but thats as far as I have got so far.
dynamox
9 Legend
•
20.4K Posts
1
February 17th, 2009 03:00
dynamox
9 Legend
•
20.4K Posts
1
February 17th, 2009 04:00
clarriion
17 Posts
0
February 17th, 2009 08:00
I cant do perl but I have come up with a couple of workarounds neither of which are as slick as plink which runs in the back ground, these open sessions in the foreground which is what I wanted to avoid.
First option was to use putty with presaved profiles containing the ipaddress and logging info.
the other option is to use telnet with the -f flag which write the output to a file. Got confused initially as I'm using telnet on a Win2000 machine which doesnt have the -f flag. Once I copied a version of the telnet client from win XP it worked.
Would still be interested in know if there is a way to telnet or ssh onto a mcdata switch without a password prompt. I did try reseting the SSH keys on the switch at which point i was reprompted to update my key on my pc so I think I have the correct key relationship.
dynamox
9 Legend
•
20.4K Posts
0
February 17th, 2009 10:00
http://logmett.com/index.php?/Products/LogMeTT.html
a while back i had to automate a couple of windows apps installs and used autoit to do that. Check it out as well
http://www.autoitscript.com/autoit3/index.shtml
clarriion
17 Posts
0
February 18th, 2009 03:00