OES2 SP3 AFP How to empty AFP log file

Hello All,
i find no information how i can empty the AFP log file in /var/log/afptcpd/afptcp.log. It has grown to 1,2 Gigabyte and is very uncomfortable to look for information in this big file.
Any ideas ?
Thank you
Andreas

If you get a lot of afp activity, your probably best off if you just set the log to rotate.
create a file under /etc/logrotate.d/ and name it whatever you want.
then just enter in something like this:
/var/log/afptcpd/afptcp.log {
compress
dateext
maxage 365
rotate 99
size=+4096k
notifempty
missingok
create 644 root root
postrotate
/etc/init.d/novell-afptcpd reload
endscript
Originally Posted by Skylon5000
Hello All,
i find no information how i can empty the AFP log file in /var/log/afptcpd/afptcp.log. It has grown to 1,2 Gigabyte and is very uncomfortable to look for information in this big file.
Any ideas ?
Thank you
Andreas

Similar Messages

  • How to open glassfish log file?

    I go to Program File/glassfish/domains/domain1/ but I not found anything. It's empty folder. How to open glassfish log file . please help me.

    Then glassfish instance is either not configured yet or installed somewhere else. Try looking under your user's home directory like C:\Documents and Settings\<username>\Application Data\glassfish\domains\domain1\logs

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

  • How to rotate jserv log files?

    Hi all,
    We are using 9iAS 1.0.2.1, which has Apache 1.3.12/Jserv 1.1
    How to rotate jserv log files? We have 'rotatelog' to rotate httpds_access_log etc.., but no such program for jserv log.
    (Tomcat has extended rotatelog to jserv, but what about Jserv?)
    Thanks in advance,
    Rajidhar Etta

    798852 wrote:
    Hi i am trying to see the archive files location...here is how i did
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination +LAWCRS_ARC1/lawcrsdb/
    Oldest online log sequence 37264
    Next log sequence to archive 37267
    Current log sequence 37267
    My question is how can I go to the location "+LAWCRS_ARC1/lawcrsdb/".....I am not able to find this location..can any one help...Perhaps you're looking for this...
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16102/asm_util001.htm#OSTMG01610
    I'm not clear on what you're looking for so it's just a best guess.

  • How To Generate Debug Log Files for ebs jsp?

    hi   How To Generate Debug Log Files for ebs r12 jsp?
    and where i get the log .please help me thanks!

    Please check following MOS Document
    Oracle Application Server Diagnostic Tools and Log Files in Applications Release 12 (Doc ID 454178.1)

  • How to delete archive log files from ASM through Grid Control

    Hi
    Anybody suggest me how to delete archive log files from ASM through Grid Control.
    Thanks

    It is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
    In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • How i can access log file in servlet?

    How i can access log file in servlet then display it to browser.
              Can i have peice of codes...
              Thanks in advance.!
              

    This is not something that can be answered easily. There is quite alot of code involved....
    To get started I suggest you read up on the built-in package 'DBMS_LOB' from Oracle . Most of what you need you should find there.
    regards Dave.

  • How open and see Log File in Active Directory

    Hello Friends..   ^-^
    how i can open log files active directory and see this data files ?
    Can export this logs ?
    thanks for help.

    And adds a definition of edbxxxxx.log for completeness:
    These are auxiliary transaction logs used to store changes if the main Edb.log file
    gets full before it can be flushed toNtds.dit.
    The xxxxx stands for a sequential number in hex. When the Edb.log file
    fills up, an Edbtemp.log file
    is opened. The original Edb.log file
    is renamed to Edb00001.log, and Edbtemp.log is
    renamed to Edb.log file,
    and the process starts over again. Excess log files are deleted after they have been committed. You may see more than one Edbxxxxx.log file
    if a busy domain controller has many updates pending.
    Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable. This helps the community, keeps the forums tidy, and recognises useful contributions. Thank you!

  • How to delete TMS log file and and request log no.

    Dear experts,
    How to delete TMS log file and and request log no...My TMS log is not deleted since 2007. Please advice
    Thnks

    You can delete them from OS level. You can delete safely the following files:
    /usr/sap/trans/log/SAP*.<SID>
    Is this you were looking for?
    Regards,
    Faisal

  • HOW TO EMPTY / CLEAR LOG'S IN FOLDER NAME AS " SIS Common Store " ON STORAGE DRIVE

    WE ARE USING DRIVE FOR STORE OUR FILES' BUT IN THIS DRIVE 1 FOLDER IS AVAILABE IN HIDE MODE
    NAME OF THE FOLDER IS " SIS Common Store " WE REQUIRE TO EMPTY / CLEAR ALL LOG FILES IN THIS FOLDER
    TOTAL DRICVE SPACE IS 1 TB BUT SIZE OF "SIS Common Store" FOLDER IS 225 GB , DUE TO THIS FOLDER SIZE WE ARE FACING SPACE SHORT PROBLEM , PLEASE GUIDE HOW TO DELETE / EMPTY / CLEAR THIS LOG'S FILES IN "SIS Common Store"
    FOLDER , PLEASE GUIDE / PROVIDE SOLUTION AASAP.
    MY NAME IS :RAHUL KALE
    MOBILE NO : 9960594241

    Hello,
    please see here about
    http://blogs.technet.com/b/josebda/archive/2008/01/02/the-basics-of-single-instance-storage-sis-in-wss-2003-r2-and-wudss-2003.aspx
    http://support.microsoft.com/kb/299726/en-us
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • How to create a log file?

    Hi
    I am using the following code to write the output of my code to a file.
    FileWriter writer = new FileWriter("Whatever.txt", true);
    BufferedWriter output = new BufferedWriter(writer);
    output.write("This string appended.");
    output.newLine();
    output.flush();
    output.close();Howerver i run this in a for loop and want to write the output of every loop
    to the file. It is a kind of log file, so even when the program is executing I want the file to be updated.
    But what is happening is the file is written only after the entire loop has
    finished executing and if for some reason the loop terminates, there is nothing at all in the file. Only the file is created but is empty.
    so how do I actually write to the file even when the program is running
    thanks

    this is what I am actaully doing.
    FileWriter loginLogs = new FileWriter(logFile,true);
    PrintWriter logOut = new PrintWriter(loginLogs);
    for(int j=0;j<count;j++){
    logOut.println("some info");
    }and the output is written only after the entire loop has executed.

  • How to find discoverer log files and CPU usage

    Hi,
    i have a report running very slow in prod. but runs fast in dev and qa.
    **Where/how can i find the Log files generated after the report runs?**
    **Also i wanted to see how i can find the CPU Usage**
    i searched online for CPU usage... and found this --> ""For the CPU usage of these servlets, please navigate to the Discoverer application page from the OC4J_BI_Forms home page in the EM standalone console.""
    can anyone tell me how to navigate to OC4J_BI_Forms home page in the EM standalone console?
    Thanks!
    gayatri

    Hi gayathri,
    This link would help i suppose
    http://docs.huihoo.com/oracle/docs/B14099_19/bi.1012/b13918/maint.htm#i1025807
    and http://docs.huihoo.com/oracle/docs/B14099_19/bi.1012/b13918/tshoot.htm#CHDHFJDE
    Be careful,if not done without prior knowledge it would mess up.So mostly this job should be done by DBA of your company.They can log in as sysadministrator to get to "Enterprise Manager" and do as per the link
    Best Wishes,
    Kranthi.

  • How to create separate log files for each deployed web application in oc4j

    Hi All,
    I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
    Thanks and Regards,
    Ravi.

    Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
    John H.

  • How to create the log file?

    Hi,
    I am working with the transcation f-30, But this question is on technical area.
    So after complition of BDC program excution, if you go for this screen in ALL DISPLAY MODE , you will get one list of documents, which are POSTED or SIMULATED.
    So Now my question is,
    I want to save this records as a LOG FILE to application server. For this I am having selection screen parameter too.
    But how can I Transfer this list to the output file?
    Thanks,
    Naveen Inuganti

    Hi
    U need to "write" the log in the file instead of in the list.
    See the help for OPEN DATASET, TRANSFER DATASET statament
    Max

Maybe you are looking for

  • [JS] Method failing in ScriptUI/CS3

    I wrote a method to check whether the active document's selection is exactly two vertical guides, and it works well when isolated, run from either Scripts menu or from ESTK. But when I attached this method to a button in ScriptUI palette, it continuo

  • Connecting iMac with iPhone 3GS

    I'm having trouble getting my iMac to connect with my iPhone 3GS. Neither will even recognize the other. Can someone help? Thank you!

  • Oracle Service Bus- testing a https webservice by bus. serv test console

    Hello everyone, I am very new to OSB and so i apologize beforehand if this question sounds stupid. I have an external crm wsdl ready which is a https webservice call. I created a business service out of the wsdl provided. After reading through many d

  • Error msg when trying to open PDF attachment

    Why am I getting error message "Prop Res DLL not loaded" when I try to open a PDF attachment on an email?  I have downloaded Adobe Reader XI.

  • ISU-CIC Implementation guide.........

    Hi frinds, can you help me to get SAP-ISU_CIC module Implementation guide with screenshot, I can get lot's of material from help.sap.com, it's not understandable for me, am very new to this module, so you guy's please help me 2 get step by step proce