Paradyne SLM 5.5 manual OLCmd clean \opt\apache\logs .log 21 admin

Page 77

A. OLCmd Reference

OLCmd clean

The clean command creates archive copies of specified log files and deletes archived files older than a specified age.

Format:

OLCmd clean directory extension days [new-extension]

Where:

 

directory

Is the directory where the log files reside.

extension

Is the suffix of the log files to be archived.

days

Is the number of days old existing archive files must be for

 

the clean command to delete them.

new-extension

Is an optional name to be added to the suffix of archived

 

files. It is also used to identify files to be deleted. If

 

new-extension is not specified, an extension of .arc is

 

presumed.

Example:

The following command moves files in the \opt\pdn\openlane\logs directory named *.log to *.log_<date>.arc (for example, database.log_2001_05_13.arc) and deletes any *.arc files older than 7 days.

OLCmd clean logs .log 7

The following command moves files in the \opt\apache\logs directory named *.log to *.log_<date>admin (for example, jserv.log_2001_05_13admin) and deletes any *.log_<date>admin files older than 21 days.

OLCmd clean \opt\apache\logs .log 21 admin

7800-A2-GB32-00

January 2002

A-7

Image 77
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 Library → Technical Manuals Product-Related DocumentsIntroduction to OpenLane SLM Easy InstallationOpenLane SLM Network MonitoringOpenLane Features About These Instructions Installing OpenLane on SolarisPlanning the Installation Software Requirements Installation RequirementsMinimum Hardware Requirements Checking the Java Runtime Environment Version ProcedureUninstalling Performance Wizard Uninstalling DCE ManagerDCEinstall 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 FTP Files Installing from CD-ROMInstalling the Permanent License Key Installing Remotely UsingExport DISPLAY=localhostname0.0 Setenv Display localhostname0.0Migration to Current Release for Oracle Locating the License Key On an Installed SystemDisplaying the License Key Expiration Date OLCmd keyStopping OpenLane Web and Database Services Starting 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 OpenLane Distributed Components Configuring Distributed ComponentsOpenLane in /opt/pdn/OpenLane Setting Up Web Server DistributionSolaris Http//172.20.1.10/OpenLane Operational NotesDistributed Poller/Reader Management Server Setup Setting Up the Distributed Poller and ReaderCd /opt/pdn/OpenLane OLControl stop Cd /opt/pdn/OpenLane/uhpoller mkdir pollerpoller1OLCmd Dbconfig ‘-m 172.20.1.101521’ OLCmd Dbconfig ‘-m 172.20.1.10’Cd /opt/pdn/OpenLane OLControl start OLCmd logsvcREADERDOMAIN=default Distributed Poller/Reader Poller/Reader SetupDOMAIN=default OLControl stop User Access Authentication Apache 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 \opt\pdn\OpenLane Windows Removing a User’s AccessOLCmd confauth on OLCmd confauth offApache User Access Authentication January Adding Devices and Customer Profiles Accessing the OpenLane Web ApplicationsAdding a Device AdminNew Device Field Names Field Description Adding a Customer Profile 7800-A2-GB32-00 January Adding Devices and Customer Profiles Task Importance Ideal Frequency OpenLane MaintenanceOracle Database Backing Up OpenLane FilesBacking Up OpenLane Under Solaris Gzip -d /backupdir/backup.tar.gz tar xvf backup.tarRestoring OpenLane Under Solaris Opt/pdn/OpenLane/dataRestoring OpenLane Under Windows Backing Up OpenLane Under WindowsFrequency Deleting Older Records from the DatabaseGenerating Scheduled Reports Using Cron Under Solaris to Automate ReportsAutomating the Generation of Scheduled Reports Cd /opt/pdn/OpenLane OLCmd processreportsCd \opt\pdn\OpenLane OLCmd processreports Using AT under Windows to Automate ReportsRebuilding Oracle Database Indexes SQL Database Log File Monitoring Log FilesApache Log Files Legacy Logger Log Files OLCmd clean logs .logArchiving and Deleting Log Files Click on Click here to schedule the tasks Uploading ConfigurationsOpenLane Maintenance January Building a Firmware Library Building and Using a Firmware LibraryVersion=filename 01.02.01=R010201.ocd9880=fw9880 New Device Models Not Supported by OpenLaneModel=directory Dbm Model=devicetypeDslaan 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 Rent-a-Phone.com Rent-a-PhoneGmbH Rent-a-PhoneUSA OLCmd addcust -a realtime -c ExactCorporationOLCmd 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 \opt\apache\logs .log 21 admin OLCmd cleanOLCmd confauth on off OLCmd confauthOLCmd dbage OLCmd dbconfig -d c o -a instance -l -h OLCmd dbconfigUrl OLCmd dbcopy d OracleStatsDB OLCmd dbcopyOLCmd dbip OLCmd dbipOLCmd dbip address Databaseinstance OLCmd dbrollIpaddress OLCmd dbroll -e 20010101000000 -rOLCmd delcust -l ex-customers.txt OLCmd delcustOLCmd delcust -ccustomer -lcustomer-list OLCmd deldev OLCmd deldevOLCmd deldev ipaddress OLCmd dumpldap host OLCmd dumpldapLdiffile 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 OLCmd ldapsearch -n-D bindDN -w password -h host -p portDebuglevel OLCmd logsvc ipaddress OLCmd logsvcDate date OLCmd processreportsEnddate enddate OLCmd processreports -date 05/13/2001 -customer ExactCorpOLCmd snmpget communityname ipaddress objectid OLCmd snmpgetObjectid OLCmd snmpget 135.26.10.37OLCmd snmptest Ipaddress Is the address of the device to be accessedOLCmd snmptest ipaddress communityname OLCmd snmptest 135.26.10.37 nmswriteOLCmd sync OLCmd sync Command OLCmd uhread -ccommand -npoller-nameOLCmd uhread Poller-nameOLCmd unassigndev -c ExactCorporation -l exactdevices.txt OLCmd unassigndevOLCmd unassigndev -c ExactCorporation -a OLCmd viewlog UHLister Poller Controller Firmware/Configuration/Feature MaintenanceUHReader Database Reader OLCmd viewlog -f fi -sd 05/07/2000 -ed 05/13/2000 UHReaderXmlrequestfile OLCmd xmlreportXmloutputfile XsltransformfileOLCmd Reference January XML Reports Using XML to Produce ReportsCommand Line Interface OLCmd xmlreport Writing an Interface to the Servlet Servlet Interface SlvXmlServletOpt/pdn/OpenLane/OLServlets/pdn.webcgi.SlvXmlServlet Opt/pdn/OpenLane/samples/xml/reports/xmlentry.html. You canAdditional Resources XML and XSL ExamplesOpt/pdn/OpenLane/samples/xml/reports/DeviceReports/Requests Opt/pdn/OpenLane/samples/xml/reports/DeviceReports/ReportsUsing XML to Produce Reports January IN-1 IndexIN-2 IN-3 IN-4