During this work we will also do some minor config changes.
Since there is only SSH access enabled to the switches, how can I do a login automatically to enter my commands? Because the program 'sshpass' which I have used on OmniSwitch 6900 does not work on 6450.
Code: Select all
$ sshpass -p 'MyPassword' ssh admin@10.10.0.21 'show system'
System:
Description: Alcatel-Lucent OS6900-X40 7.3.2.433.R01 Service Release, January 18, 2014.,
Object ID: 1.3.6.1.4.1.6486.801.1.1.2.1.10.1.2,
Up Time: 50 days 7 hours 40 minutes and 29 seconds,
Contact: Alcatel-Lucent, http://alcatel-lucent.com/wps/portal/enterprise,
Name: XXX
Location: Unknown,
Services: 78,
Date & Time: THU MAR 20 2014 13:41:24 (CET)
Flash Space:
Primary CMM:
Available (bytes): 1660207104,
Comments : None
$ sshpass -p 'MyPassword' ssh admin@10.20.51.1 'show system'
cygate's password for keyboard-interactive method:
<hangs here, waiting for input>