Chapter 10. Command Line Interface

10.1. Introduction

We have a device that has a Command Line Interface (CLI).
Normally you would telnet to it and type in commands.

Let's see what can we do with Net::Telnet.

In order to do that first we need to see how the device behaves
when we access it manually.

Use the local telnet command to access the device and try 
some basic commands. (eg. type "help")

We supply an example system that shows a partially faulty system.
In order to run the daemon by yourself you need to install 
Net::Server and Class::Accessor, 
$ cd examples/server
  and then type
$ perl cli_daemon.pl

When accessing it using a telnet client you can use the built in
username: admin and password: nimda.


If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed