|
When I use this module to log into the router and issue a command, it needs a confirmation to actually run the command, so I need the script to send a carriage return. I have tried to use cmd() function with a space as an argument, no arguments, and also the print('\r) function. It gives a timeout error, and when I connect to the console I see that it doesnt complete the command. How do I send a return using this module? Here is the code that I have now below:
eval {
$session_obj->cmd('issu runversion 2 slavebootflash:cat4500e-entservicesk9-mz.122_44_SG_249.alpha')
+;
$session_obj->cmd();
$session_obj->print('/n');
print $session_obj->last_prompt;
};
if ($@) {
print "The error is: $@ \n\n";
};
sleep 10;
This is the error it gives:
The error is: Timeout, EOF or other failure waiting for command response at issu_test line 36
|