Table Of Contents
Maintaining Cisco E-DI
Several tools are provided for Cisco E-DI server maintenance and troubleshooting:
•
Repair Login—Used to troubleshoot the Cisco E-DI server and to perform server maintenance operations. For example, restart services, display memory, disk usage.
•
Maintenance Submode—The Cisco E-DI maintenance shell can be used to perform routine maintenance tasks such as rebooting of the Cisco E-DI server.
•
Viewing Server Information—Administrators can view Cisco E-DI related information such as device-packages, clock, netstat, interfaces, and thread pools.
•
Viewing License Information—Used to get information about the Cisco E-DI license.
•
Viewing Security Features—Administrators can check the transport method, either SNMP Write or Telnet/SSH, and the credential set.
Cisco E-DI provides an aggregate log of all database transactions with their respective time stamps.
Cisco E-DI provides CLI commands to display:
•
Linux process information
•
Cisco E-DI thread pool sizes and pending tasks in the queue
•
System memory usage
•
System CPU usage
Cisco E-DI also generates internal statistics which can be output to a file.
Repair Login
Repair login allows the administrator to troubleshoot the system when the Cisco E-DI process itself is not responding.
Repair login can be accessed only through the console port. It can be used to perform server maintenance operations. The following options can be chosen using the repair login:
•
Network information—Displays the details of all the interfaces on the server, and the summary information about the entries in the routing table. The Cisco E-DI system leverages the underlying Linux operating system networking capabilities. The interface information displayed is the output of the ifconfig command and the routing information is the output of the route command on the Linux system.
•
License information—Displays information to debug any license issues.
•
Disk information—Displays summary information on the disk utilization.
•
Memory usage—Displays memory (RAM) and swap information.
•
Boot message—Displays the message generated during the server boot process.
•
Services— Displays information about currently running services. This information includes the pid and status of the following processes:
–
EDIServer
–
mysqld
–
sshd
–
vsftpd
–
snmpd
–
httpd
The following is the sample output.
*********************** System Services Status ***********Service EDIServer {pid 568} is running.mysqld (pid 576) is running...sshd (pid 500) is running...vsftpd is stoppedsnmpd (pid 479) is running...httpd (pid 643 642 641 640 639 638 637 636 614) is running...**********************************************************•
Recreate database—Drops the existing data, recreates the database, and reloads the server.
•
Restart services—Restarts all the critical services run in Cisco E-DI.
•
Reboot server—Reboots Cisco E-DI and uses the current saved startup configuration.
•
Erase startup config—Erases the current startup configuration and reloads the server. This option does not reset the hardware to factory defaults, all the Cisco E-DI patches, Linux patches and IDU updates will be kept intact.
•
Reinstall software—Reinstalls the Cisco E-DI software from the Installation CD-ROM.
•
Patches—Shows currently installed Linux patches.
Repair Mode
Repair mode is accessible through the console mode only, and can be used to perform server recovery and maintenance operations. This mode can be accessed at the login time by using a login name repair and the password set up during installation. The repair menu options are displayed, see Table 12-1for more information.
Maintenance Submode
The maintenance submode can be used by the administrator for normal day to day maintenance operations.
The tasks performed in this mode include mounting and ejecting a CD-ROM, upgrading the server, installing patches, or rebooting the Cisco E-DI server. Refer to the Cisco Enhanced Device Interface Quick Start Guide, 2.0.1 for details.
Viewing Server Information
Troubleshooting the server typically begins by looking at the server statistics and debug information. To enable administrators to view this information, Cisco E-DI provides options for the show server command. See Table 12-2.
In addition, administrators can use the show line command to view information on the sessions currently in use, including the userId, IP Address, connection mode and the uptime.
Debug Logs
Debug logging can be enabled or altered or disabled on specific modules or on all the modules using the debug CLI command. When debug logging is enabled with a specific level, the messages that are generated by various modules at that level and above are logged into a log file.
Debug mode has the following levels of severity:
•
fatal (5)
•
error (4)
•
warn (3)
•
info (2)
•
debug (1)
The debug log messages can be viewed using show server log command. The log output can be redirected to the terminal using the terminal monitor command. When the log file reaches the maximum size of 30MB, it is saved into a backup file.
These messages can be displayed on the terminal or logged to a file which can be accessed using the commands detailed in Table 12-3.
Table 12-3 Commands to Debug Cisco E-DI
Action CommandTo set the debugging level for all the Cisco E-DI modules.
[SVR:/server]# debug all level {debug | error | fatal | info | warn}To set the debugging level for a specific Cisco E-DI module to a pre-defined state.
[SVR:/server]# debug module {module-name} level {debug | error | fatal | info | warn}To set a bookmark in the log file to facilitate retrieval of log messages between desired Cisco E-DI states.
[SVR:/server]# debug bookmark {begin | end} bookmark-nameTo show the contents of the log file for the specified bookmark.
[SVR:/server]# show server log bookmark bookmark-nameTo print the logging messages to the terminal,
[SVR:/server]# terminal monitorTo clear the debug log.
See Table A-1 for details of the options available with this command.
[SVR:/server]# clear debug-log
Viewing License Information
Choose option J to display the license file status information. This command provides information including the license type (either permanent or demo), the MAC address of the Cisco E-DI server, and if a demo license is installed, the remaining days before the license expires.
Viewing Security Features
Device authentication allows the administrator to choose between a centralized credential model (non session based device authentication) and a per user-session credential model (session based device authentication). Whichever mode is chosen is applied to all devices in the network. See Device Authentication for more details.
Synchronizing Information
Cisco E-DI has the most current information about all of the devices in the network in its database. In case of any discrepancies found in the information when troubleshooting, you can synchronize the information between the server and the network. Synchronization can be done in the foreground or the background.
![]()
Note
The command for configuration synchronization is context sensitive.
Table 12-4 details the commands to synchronize information in Cisco E-DI.
Table 12-4 Commands to Synchronize Information
Action CommandTo synchronize the config-archives with the database for all offline and online devices, and server
[NET:/network]# sync archives-with-db [all]To synchronize the file system with device. Synchronization can be done in the foreground or the background.
Note
The behavior of this command changes when session based device authentication is enabled. See Using Session Based Device Authentication for a full explanantion of the command behavior.
[NET:/network]# sync filesystem {bg | fg}To synchronize the startup and running config files with device. Synchronization can be done in the foreground or the background.
Note
The behavior of this command changes when session based device authentication is enabled. See Using Session Based Device Authentication for a full explanantion of the command behavior.
[NET:/network]# sync configuration {bg | fg}To synchronize the asset inventory information. Synchronization can be done in the foreground or the background.
[NET:/network]# sync asset {bg | fg}