Paradyne SLM 5.5 Archiving and Deleting Log Files, Legacy Logger Log Files, OLCmd clean logs .log

Page 62

7. OpenLane Maintenance

Legacy Logger Log Files

hese files are created if pdn.uhpoller.legacyLogger is enabled (set to true) in preferences.dat:

Solaris: /opt/pdn/OpenLane/logs/UHReader.log /opt/pdn/OpenLane/logs/UHPoller_default.log

Windows: c:\opt\pdn\OpenLane\logs\UHReader.log c:\opt\pdn\OpenLane\logs\UHPoller_default.log

Archiving and Deleting Log Files

he clean function of OLCmd renames log files and deletes log files older than a specified number of days. Periodic use of the command keeps your log files at a manageable size.

For example, the command:

OLCmd clean logs .log 14

(executed in the OpenLane home directory) performs two functions. It:

Renames any file in the OpenLane logs directory that has a file extension of

.log to a file extension of .log_yyyy_mm_dd.arc (where yyyy_mm_dd is the

Tcurrent date)

Deletes any file in the OpenLane logs directory that has a file extension of .arc and was created more than 14 days ago

For more information about the clean function, see Appendix A, OLCmd Reference. The running of the clean function can be automated using cron (under Solaris) or at (under Windows). See Automating the Generation of Scheduled Reports on page 7-6for examples.

7-10

January 2002

7800-A2-GB32-00

Image 62
Contents OpenLane SLM Copyright 2002 Paradyne Corporation All rights reserved Contents Apache User Access Authentication Installing OpenLane on WindowsConfiguring Distributed Components Adding Devices and Customer Profiles OpenLane MaintenanceBuilding and Using a Firmware Library Index Using XML to Produce ReportsOLCmd Reference Document Summary About This GuideDocument Purpose and Intended Audience Product-Related Documents Library → Technical ManualsOpenLane SLM Easy InstallationIntroduction to OpenLane SLM Network MonitoringOpenLane Features About These Instructions Installing OpenLane on SolarisPlanning the Installation Software Requirements Installation RequirementsMinimum Hardware Requirements Procedure Checking the Java Runtime Environment VersionDCEinstall Uninstalling DCE ManagerUninstalling Performance Wizard Cd /opt/OV/pdn/PerfWiz UnInstallToOVOpt/pdn/OpenLane OpenLane Installation ProgramOpt/apache User = nobody Group = nobody Obtaining a License Key Installing from Paradyne’s Web SiteSetup.sh Installing from CD-ROM Installing from FTP FilesExport DISPLAY=localhostname0.0 Installing Remotely UsingInstalling the Permanent License Key Setenv Display localhostname0.0Displaying the License Key Expiration Date Locating the License Key On an Installed SystemMigration to Current Release for Oracle OLCmd keyStarting OpenLane Web and Database Services Stopping OpenLane Web and Database ServicesConfiguring Apache to Use a Different Port Installing OpenLane on Solaris January Installing OpenLane on Windows MHz Processor Web Client Software Requirements Cd \opt\OV\pdn\PerfWiz uninstalltoov \opt\pdn\OpenLane \Program Files\Apache Group\Apache\opt\apache Procedure Cd \opt\pdn\OpenLane Migration to Current Release for Oracle Starting OpenLane Web and Database Services Stopping OpenLane Web and Database Services Http//olserver.com8080/openlane Installing OpenLane on Windows January Configuring Distributed Components OpenLane Distributed ComponentsSetting Up Web Server Distribution OpenLane in /opt/pdn/OpenLaneSolaris Operational Notes Http//172.20.1.10/OpenLaneCd /opt/pdn/OpenLane OLControl stop Setting Up the Distributed Poller and ReaderDistributed Poller/Reader Management Server Setup Cd /opt/pdn/OpenLane/uhpoller mkdir pollerpoller1Cd /opt/pdn/OpenLane OLControl start OLCmd Dbconfig ‘-m 172.20.1.10’OLCmd Dbconfig ‘-m 172.20.1.101521’ OLCmd logsvcREADERDOMAIN=default Distributed Poller/Reader Poller/Reader SetupDOMAIN=default OLControl stop Apache User Access Authentication User Access AuthenticationChange to the /opt/apache/bin Solaris or c\opt\apache\bin Configuring Http Challenge/ResponseCd /opt/apache Solaris cd \opt\apache Windows OLCmd confauth on Removing a User’s Access\opt\pdn\OpenLane Windows OLCmd confauth offApache User Access Authentication January Accessing the OpenLane Web Applications Adding Devices and Customer ProfilesAdmin Adding a DeviceNew Device Field Names Field Description Adding a Customer Profile 7800-A2-GB32-00 January Adding Devices and Customer Profiles OpenLane Maintenance Task Importance Ideal FrequencyBacking Up OpenLane Files Oracle DatabaseRestoring OpenLane Under Solaris Gzip -d /backupdir/backup.tar.gz tar xvf backup.tarBacking Up OpenLane Under Solaris Opt/pdn/OpenLane/dataBacking Up OpenLane Under Windows Restoring OpenLane Under WindowsDeleting Older Records from the Database FrequencyAutomating the Generation of Scheduled Reports Using Cron Under Solaris to Automate ReportsGenerating Scheduled Reports Cd /opt/pdn/OpenLane OLCmd processreportsUsing AT under Windows to Automate Reports Cd \opt\pdn\OpenLane OLCmd processreportsRebuilding Oracle Database Indexes SQL Database Log File Monitoring Log FilesApache Log Files Legacy Logger Log Files OLCmd clean logs .logArchiving and Deleting Log Files Uploading Configurations Click on Click here to schedule the tasksOpenLane Maintenance January Version=filename Building and Using a Firmware LibraryBuilding a Firmware Library 01.02.01=R010201.ocd9880=fw9880 New Device Models Not Supported by OpenLaneModel=directory Dslaan Model=devicetypeDbm DslasnDownloading and Activating Firmware Building and Using a Firmware Library Building and Using a Firmware Library January OLCmd Reference Olcmd viewlog -h OLCmd HelpsCd \opt\pdn\openlane olcmd confauth on OLCmd addcust OLCmd addcust -a realtime -c ExactCorporation Rent-a-Phone.com Rent-a-PhoneGmbH Rent-a-PhoneUSAOLCmd assigndev -c ExactCorporation -l exactdevices.txt OLCmd assigndevOLCmd assigndev -c ExactCorporation -a OLCmd chgrawfileext -d dallas -o bad -e raw OLCmd chgrawfileextOLCmd chgrawfileext -o raw -e ftp OLCmd clean OLCmd clean \opt\apache\logs .log 21 adminOLCmd confauth OLCmd confauth on offOLCmd dbage OLCmd dbconfig OLCmd dbconfig -d c o -a instance -l -hUrl OLCmd dbcopy OLCmd dbcopy d OracleStatsDBOLCmd dbip OLCmd dbipOLCmd dbip address Ipaddress OLCmd dbrollDatabaseinstance OLCmd dbroll -e 20010101000000 -rOLCmd delcust -l ex-customers.txt OLCmd delcustOLCmd delcust -ccustomer -lcustomer-list OLCmd deldev OLCmd deldevOLCmd deldev ipaddress OLCmd dumpldap OLCmd dumpldap hostLdiffile OLCmd importldifOLCmd importldif -h host ldiffile OLCmd key WZBCK-AAM6E-U898Q-MX5HK OLCmd keyOLCmd key licensekey OLCmd OLCmd ldapmodify -D c=US -w admin -a -c data/new.ldifOLCmd ldapmodify OLCmd ldapsearch -n-D bindDN -w password -h host -p port OLCmd ldapsearchDebuglevel OLCmd logsvc OLCmd logsvc ipaddressEnddate enddate OLCmd processreportsDate date OLCmd processreports -date 05/13/2001 -customer ExactCorpObjectid OLCmd snmpgetOLCmd snmpget communityname ipaddress objectid OLCmd snmpget 135.26.10.37OLCmd snmptest ipaddress communityname Ipaddress Is the address of the device to be accessedOLCmd snmptest OLCmd snmptest 135.26.10.37 nmswriteOLCmd sync OLCmd sync OLCmd uhread OLCmd uhread -ccommand -npoller-nameCommand Poller-nameOLCmd unassigndev -c ExactCorporation -l exactdevices.txt OLCmd unassigndevOLCmd unassigndev -c ExactCorporation -a OLCmd viewlog UHReader Database Reader Firmware/Configuration/Feature MaintenanceUHLister Poller Controller OLCmd viewlog -f fi -sd 05/07/2000 -ed 05/13/2000 UHReaderXmloutputfile OLCmd xmlreportXmlrequestfile XsltransformfileOLCmd Reference January XML Reports Using XML to Produce ReportsCommand Line Interface OLCmd xmlreport Opt/pdn/OpenLane/OLServlets/pdn.webcgi.SlvXmlServlet Servlet Interface SlvXmlServletWriting an Interface to the Servlet Opt/pdn/OpenLane/samples/xml/reports/xmlentry.html. You canOpt/pdn/OpenLane/samples/xml/reports/DeviceReports/Requests XML and XSL ExamplesAdditional Resources Opt/pdn/OpenLane/samples/xml/reports/DeviceReports/ReportsUsing XML to Produce Reports January Index IN-1IN-2 IN-3 IN-4