IMC
cancel
Showing results for 
Search instead for 
Did you mean: 

IMC CLI SCRIPT

 
pattap
Regular Advisor

IMC CLI SCRIPT

Hi All

I'm trying to use CLI script on IMC 7, script to be applied to 3com 5500G, comware 3

this is what I'm trying to deploy:

rsa local-key-pair create^|^1024
ssh authentication-type default all^|^

 

this is what I'm getting back from IMC:

<Command> rsa local-key-pair create <Error> The response received from the device not matches the prompt for the input command.

<Response Prompt>          ^
 % Unrecognized command found at '^' position.

 

 

I'm not sure what I'm doing wrong here

1 REPLY
pattap
Regular Advisor

Re: IMC CLI SCRIPT

ok so IMC watns you to put a command to get to system-view as well, so that would be

system-view

rsa local-key-pair create^|^1024
ssh authentication-type default all

It's a bit funny about providing parameters, it didn't lile 1024, worked fine when removed, not sure how would you deal with it if you wanted different size of the key though, 1024 is a default value