This document provides a guide for implementing a dial-in testing platform for the Lantronix Local Manager. By having the Local Manager out-of-band POTS line periodically tested, we eliminate the risk of unavailability when the dial-in path is required. The example setup in this document uses a Cisco 2821 with a WIC-1AM card.
Incorporation of the functionality of the VM into the Lantronix Control Center is part of the Lantronix roadmap, but until that product feature is incorporated, a VM will be required. As such, this beta deployment may need more assistance from Lantronix to maintain. The Lantronix Technical Services team is available to assist with deployment and management of this system.Dialin Tester Version 0.2 is required for deployments running LMS 6.1 or later. Version 0.2 is backwards compatible with 6.0 and 5.5, but the original v0.1 Dial Tester will not work with a 6.1 Local Manager.
You will need the following equipment/network configuration:
NOTE: Currently, only Telnet connections between the dial-tester and the modem bank are supported.
The configuration of Dial router may vary slightly depending on the hardware and the IP schema used in the network. Before beginning, identify:
Prepare a VM with the following allocation for the dial-in tester:
Deploy the OVA image provided by Lantronix onto the VMWare server and configure the VM with its static IP address.
The v0.2 Dial Tester deploys with a default username of root and password of password.YOU SHOULD SECURE THE SERVER IMMEDIATELY
Log into the server with root / password
Set dialin's password (previously: dialin in v0.1 dial-tester)
You can choose any password you prefer.
[root@dt-centos7 ~]# passwd dialin Changing password for user dialin. New password: BAD PASSWORD: The password is shorter than 8 characters Retype new password: passwd: all authentication tokens updated successfully.
[root@dt-centos7 ~]# usermod -aG wheel dialin
Edit the server's sshd config file.
[dialin@dt-centos7 ~]$ sudo vi /etc/ssh/sshd_config
Uncomment # PermitRootLogin yes and change yes to no.
[dialin@dt-centos7 ~]$ sudo cat /etc/ssh/sshd_config | grep Permit PermitRootLogin no
[dialin@dt-centos7 ~]$ systemctl restart sshd ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to manage system services or units. Authenticating as: dialin Password: ==== AUTHENTICATION COMPLETE ===
Verify root cannot log in.
user@workstation:~$ ssh email@example.com firstname.lastname@example.org's password: Permission denied, please try again. email@example.com's password:
At the root inventory group, enter the following settings in the Modem section of the Configuration menu:
Check the box Force the update on the children and click Save.
Each Local Manager must have an individual telephone number listed in the Control Center. This can be configured using either the Control Center GUI or the Local Manager CLI. To configure from the Control Center, navigate to the Local Manager summary page and select Modem from the Configuration menu. Enter the phone number in the Remote Access Server section and click Save. To enter this information into the Local Manager from the CLI log in and browse to the modem resource. Run the command config answer and enter the telephone number.
[admin@LantronixDialExample (modem)]# config answer [config answer]# number 5125551212 [config answer]# exit
Create the list of Local Manager phone numbers for testing, then set up notifications and schedule testing on the Dial Tester.
SSH into the Control Center, become root using the following command
sudo su -
Edit the test file generation script and replace the "admin" username with "LOGIN_IS_DISABLED" using the following commands
cd /uplogix/embassy/scripts/support vi makeDialinTesterCsv.sh
Execute the test file script using the following command
Copy the newly created CSV file using the following command (replace x.x.x.x with your Control Center IP and the yyy-mm-dd today's date) - dialin/dialin are username/password
scp /tmp/LantronixDialinTester-2015-01-27.csv firstname.lastname@example.org:/home/dialin/list.csv
SSH into the dialTester with dialin/dialin as user name and password
Install net-snmp (if not already on OVA)
Configure the notification script to include appropriate notification methods (SMTP/SNMP) and format using the following command. If the file does not exist, run dialin-tester once to generate it.
Create a crontab file by issuing the following command
Change the cron job to run once weekly on Sunday at midnight by inserting the following line:
0 0 * * 0 /usr/local/bin/dialin-tester once >> /home/dialin/cronlog
To run the job once to confirm activity issue the following command