Skip to content

Simulates ssh/telnet servers (like cisco routers) for (scale) testing

Notifications You must be signed in to change notification settings

marosmars/cli-testtool

Repository files navigation

Dealing with too many files open :

echo "fs.file-max=500000
" | sudo tee --append /etc/sysctl.conf

sudo sysctl -p

echo "
*               hard nofile 10000
*               soft nofile 10000
root            hard nofile 10000
root            soft nofile 10000 
`whoami`        hard nofile 10000
`whoami`        soft nofile 10000
" | sudo tee --append /etc/security/limits.conf

echo "LOGOUT and LOGIN again so that the limits apply"

Running the script to simulat a network device device:

sudo pip install MockSSH==1.4.5

python mockdevice.py 127.0.0.1 9999 11000 ssh devices/cisco_IOS.json

Running the script to mount devices in ODL:

./generateMount.sh 127.0.0.1 10000 10100 ssh

.json files to represent a device :

To unescape commands and responses for the JSON file, use https://codebeautify.org/json-escape-unescape

Notes :

Relies on MockSSH package

Scaling: This runs multiple processes and each process handles only a certain number of ports (defined by batch parameter in the script)

About

Simulates ssh/telnet servers (like cisco routers) for (scale) testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •