tbotnz / cisshgo

simple concurrent ssh server posing as cisco ios
131 stars 26 forks source link

Return different response for a single command when run multiple times using same ssh session #27

Open ganeshrn opened 2 years ago

ganeshrn commented 2 years ago

Is there a way to provide different outputs for same command? Example scenario can be 1) Get response for running-config 2) Run dummy command to change config 3) Get updated running-config response

For step 1 and 3 same command will be used but expected response is different.

tbotnz commented 2 years ago

@ganeshrn thanks for the issue, there is currently no support for this other than changing the hostname. Can you provide some more information including examples for 1, 2 & 3. The implementation complexity would vastly depend on the level of understanding cisshgo would have to have for the step 2.