Skip to content

Commit

Permalink
Create no-config-change-test.nshrc
Browse files Browse the repository at this point in the history
added these basic test scripts to allow for testing nsh commands
that dont alter configs
  • Loading branch information
smytht authored Oct 29, 2024
1 parent 462a289 commit 3484171
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/nshrc/test/no-config-change-test.nshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
clear
config
exit
config
interface lo0
show active
!
interface lo0
show active
exit
telnet 127.0.0.1 22
logger does this message appear in /var/log/messages
!tail -n 5 /var/log/messages
telnet 127.0.0.1 22
traceroute 127.0.0.1
ping 127.0.0.1
exit

0 comments on commit 3484171

Please sign in to comment.