How to write output to file in flash

hi all experts.
I want to monitor a specific link. Lets say when it goes down, i want to write the following to a file in flash called link_mon.txt
link down <show clock output>
When it gets back up
link up <show clock output>
I know how to write the applets and use sla tracking for monitoring, i just want to know how to write the output(user defined) to a file in flash ?

What you want to do is not possible using applets.  You can write CLI output to flash using the redirect command:
action 1.0 cli command "enable"
action 2.0 cli command "show clock | redirect flash:/output.txt"
But you cannot include your own custom text.  For that, you will need to use an EEM Tcl policy.  Within the Tcl policy, the code to write the output to flash would look like:
if { [catch {cli_open} result] } {   error $result $errorInfo}array set cli $resultset fd [open "flash:/output.txt" "a"]set output [cli_exec $cli(fd) "show clock"]puts $fd "link down $output"close $fd

Similar Messages

  • How to write a CSV file in OSB

    Hi All,
    can any one tell me How to write a CSV file in OSB?
    Thanks.

    Hey, I couldnot find any xsl usage inside pipeline pair in the links given by you. Do you have any links that gives a sample example.I could not find any links with examples. I will send you a simple config jar demonstrating the use of XSLT resources/transformations.
    secondly should MFL doc replicate the name(s)of the nodes of the source xsd:I'm not sure If I understood your question.Can you please explain?
    Ex: My database schema looks like:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/AssetsPoll" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/AssetsPoll" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="CountriesCollection" type="CountriesCollection"/>
    <xs:complexType name="CountriesCollection">
    <xs:sequence>
    <xs:element name="Countries" type="Countries" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Countries">
    <xs:sequence>
    <xs:element name="countryId">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="2"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="countryName" minOccurs="0" nillable="true">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="40"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name="regionId" type="xs:decimal" minOccurs="0" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    and the corresponding MFL that I have created gives this output
    <?xml version="1.0" encoding="windows-1252"?>
    <countriesCollection1>
    <Countries>
    <counrtyId>counrtyId</counrtyId>
    <country_name>country_name</country_name>
    <regionId>regionId</regionId>
    </Countries>
    <Countries>
    <counrtyId>counrtyId</counrtyId>
    <country_name>country_name</country_name>
    <regionId>regionId</regionId>
    </Countries>
    </countriesCollection1>
    Why I am asking this beacuse there is an error that i am getting:
    Jun 19, 2009 5:50:50 PM IST> <Error> <JCATransport> <BEA-381951> <JCA inbound r
    quest only invocation failed, exception: java.security.PrivilegedActionExceptio
    : com.bea.wli.sb.transports.TransportException: Binary to XML mfl transformatio
    failed for the MFL Resource Database-Jms-File/Database-File/MFLSample : null
    ava.security.PrivilegedActionException: com.bea.wli.sb.transports.TransportExce
    tion: Binary to XML mfl transformation failed for the MFL Resource Database-Jms
    File/Database-File/MFLSample : null..................................................
    Any help?
    Regards
    PS

  • HELP!!!!!! - How to write into a file?

    How to write into a file?
    I want to make a script that will connect(not enter) to my website[for example, www.vasa.com] every time i connect to the internet.
    Now i have 3 problems:
    1. i dont know how to write into a file
    2. i dont know how to make it connect to my 'server' without entering the website
    3. i dont know what file to write it to
    so if someone can help me, please do.

    Well, how about RTFM?? In this case that can be found here:
    http://developer.java.sun.com/developer/onlineTraining/
    BTW - these things have been asked azillion times, search the forum.

  • How to export a fireworks file to flash while retaining image quality?

    I created a banner for our website using fireworks cs3. Part of the banner has aimation (basically a slide show of 6 photos). I've tried to export the files by saving the frams to files, but when I do this, the image quality really gets bad. When I try to change the export settings and change the dither, everything but the last frame looks better and the last frame looks like a yellow color is splattered all over it....I've tried just saving the file as an .swf file but when I do so, the file doesn't work when I insert it into my web page, it doesn't work.  Is there a better way to do this?  Can I export as something else then import into flash and still retain my image quality?  Thanks for any input and help!

    How are you inserting the file?
    Flash objects need to be placed in an object tag...as described here: http://kb2.adobe.com/cps/415/tn_4150.html

  • How to write run.bat files

    Can anyone tell me how to write run.bat files to run java classes. Currently my run.bat file has the following two lines,
    c:\j2sdk1.4.1_02\bin\javac.exe *.java
    c:\j2sdk1.4.1_02\bin\java.exe questionnair
    But the class is not executed. Thanks in advance.

    you'll have to provide more details.
    Firstly, which package is the class a part of? and secondly, where on the filesystem is the root of the package?
    You might also benifit from placing the c:\j2sdk1.4.1_02\bin\ into the classpath.
    On a rainy day, check out the ANT tool, it will take care of all that crapola for you.
    newio

  • Can any one tell me how to write the properites files and how to acces

    can any one tell me how to write the properites files and how to acces thoose files
    plz let me no
    thanks in advance

    http://www.exampledepot.com/egs/java.util/Props.html

  • How to write output from Keithley 220 to Excel using Labview

    Hello, I have seen other posts that ask this question and was wondering if anyone has found the solution? I have downloaded the driver and seem to be able to communicate with the instrument. However, I am not very sure how to modify the driver to set the amperage and record the output to Excel.

    Hi rachel-d,
    It looks like that instrument driver is only one VI, and is not a certified driver.  There seems to be a control for "source (A)" which may be what you're looking for as far as setting the amperage.  Honestly, you may have better luck starting with a simple GPIB communication program and writing your own VI.  You may need to check your device's manual for information on specific commands to set current values, etc.  As for excel, you could use the Write to Measurement File Express VI and write your data to a text-based measurement file (.lvm) that is tab deliminated.  You can then open this file with Excel.  There are also examples you could look at in the NI Example Finder (Help > Find Examples).
    Hope this helps!
    Adam W
    Applications Engineering
    National Instruments

  • How can I import SVG file to Flash CS5.5

    I want to import a .SVG file that I made in Inkscape to Flash CS5.5 how do I do this? Do I need to install some type of plugin/extension? Is there some way around it?

    Actually no, that's incorrect. Flash CS5.5 can NOT import PS/EPS. I've seen a few threads mentioning this, but it's not the case (maybe older versions supported that?).
    The list of supported file formats can be found here;
    http://helpx.adobe.com/flash/kb/supported-file-formats-flash-professional.html
    To import PS/EPS, you'd need to convert it first through another tool, such as Illustrator.

  • How to overwrite  the xml file by  flash using Php

    Hi
    i am creating getting data from the xml file ... and i am
    doing some Alteration in the xml file by flash after that flash
    producing the xml file i finished upto this process...
    nw i neeed to overwrite the xml file.... using Php.....
    can any one give me some idea ... to solve this issue
    ~~SK

    Flash Player cannot write XML files at all. but using
    php+flash we could do it .

  • How to write won WSDL file for SOAP adapter ?

    Hi experts
      Can any one expalin me how to write WSDL file  for SOAP adapter ?
      What and all things i need to know ? i have no idea on this....
      I got the business but to WSDL ...i am very new to this
    Adv...thanks
    Rakesh

    HI,
    Please see the below links,
    Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a61ff
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    /people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12
    Regards
    Chilla..

  • How do i get master file of Flash Player Instalation ?

    Anybody know how to get master file of Flash Player
    Instalation ?, so i don't need to install direct from internet ?.
    Thank's a lot.

    Player Licensing Center:
    http://www.adobe.com/licensing/

  • How to write 3 AVI files from 3 different cameras connected to 3 PCI 1411's?

    I have a multiple camera acquisition vi and a AVI read/write vi, but I want to acquire from 3 cameras and write 3 AVI files simultaneously. The multiple camera vi uses buffers but the AVI read/write vi does not(I think). How can I accomplish my goal?

    Your best bet is to use the new IMAQ Vision 7, which was released last Tuesday, I believe. It now has native support for writing compressed AVI movie files. These VIs are used the same way the Write BMP.vi and other file I/O VIs are used in IMAQ Vision 6.1.
    Writing 3 files simulateously should be fairly straightforward. If you can get it to work with one camera (img0), then just copy and past the code two more times for img1 and img2. Also write to three different AVI files. That's all you should have to change! Bandwidth to the harddisk may be another matter all together...
    Kyle V

  • How to write data to file Java ME cldc 1.1 midp 2.0?

    I newly in java me, please help me.
    I make project in NetBeans 7.0.1. and use cldc 1.1 midp 2.0.
    I want to write data to the file.
    How can I do it?
    I try to use FileOutputStream. But it don't exists in java.io
    NetBeans shows me only this list of classes and interfaces in java.io:
    ByteArrayInputStream, ByteArrayOutputStream, DataInput, DataInputStream, DataOutput, DataOutputStream, InputStream, InputStreamReader, OutputStream, OutputStreamWriter, PrintStream, Reader, Writer.
    Why it so short?
    And how I can write data to file?
    Data can be array of bytes (byte[]) or Object it better.

    You must use JSR 75: FileConnection. Please check the following article "Getting Started with the FileConnection APIs":
    http://developers.sun.com/mobility/apis/articles/fileconnection/
    Be sure to use FileSystemRegistry.listRoots().
    And welcome to Java ME development. :)

  • How to read a .php file in flash

    Hi,
    Does anyone know if there's a possibility to read out a .php file in flash? (Like the iFrame in html) Some other webs showed me the 'loadvars' array..
    Thanx!

    So.. I do need to make a dynamic tekst block? And add to the first frame the action (as3?):
    var lo:URLLoader = new URLLoader();
    lo.load(new URLRequest("http://www.hcdbfeesten.nl/aenb/test.php"));
    lo.addEventListener(Event.COMPLETE, typeIt);
    function typeIt(e:Event){
        trace(lo.data);
    It does show me:
    http://www.hcdbfeesten.nl/aenb/test.swf
    Nothing... Instead of:
    http://www.hcdbfeesten.nl/aenb/test.php

  • How to write in a file without erase it each time I want to write inside

    Hi
    My problem is to write in a unique file without erasing what I have written inside before.
    Because I use an Applet and I write some information in afile each time the user push a button but I want to keep all the information, beacause in my case I only have the last information i.e. the last time the user push the button.
    My code is:
    Below it is the code where I write in the file:
    writer2 = new BufferWriter("chemin.txt");
    methode = uneMethode;
    eps = unEps;
    n = unN;
    solExacte=uneSolExacte;
    y=z;
    Date time =new Date();
    Vector valeur = new Vector();
    valeur.add(new Double(eps));
    valeur.add(new Integer(n));
    valeur.add(new Integer(solExacte));
    valeur.add(new Integer(methode));
    String time_string = time.toString();
    valeur.add(new String(time_string));
    //writing to variables file
    BufferWriter writer = new BufferWriter("variables");
    writer.write(valeur);
    Now it is the class Bufferwriter:
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.util.Vector;
    import java.io.File;
    public class BufferWriter {
    private String fileName;
    BufferedWriter w;
    public BufferWriter(String name) throws IOException {
    fileName=name;
    w=new BufferedWriter(new FileWriter(new File(fileName)));
    public void write(Vector v) throws IOException {
    String string;
    for (int i=0; i<5; i++) {
    string=((v.get(i)).toString());
    w.write(string,0, string.length());
    w.newLine();
    w.flush();
    public void close() throws IOException{
    close();}

    try
    w=new BufferedWriter(new FileWriter(fileName, true));
    The Constructor you want is ..
    FileWriter
    public FileWriter(String fileName,
    boolean append)
    throws IOException

Maybe you are looking for

  • Macbook Pro 15" Retina Mid 2014 MOUSE/TRACKPAD LAG. PLEASE HELP!!

    Hello, I just bought a new Macbook Pro OSX Yosemite this week. Retina, 15 inch, Mid 2014. 2.2 GHz i7. 16GB RAM. 256 GB HD. I've been noticing a lag when I use the trackpad and the bluetooth mighty mouse. It seems to happen completely randomly. If I d

  • Iphoto & Preview will not open after software update

    I did a software update on my macbook pro yesterday, and cannot open iPhoto or review. I am running on OSX 10.7.2 and the iPhoto is '11 9.2.1 Preview is 5.5.1 When i open either app nothing comes up, only the bar at the top of the screen changes to w

  • How do I get a charge on my ipad 3?

    Before I updated my ipad 3 on yesterday I was able to plug in my charger and hear the charging sound. Now I plug in my charger and its as if it is not plugged. Before the update I had no problems now I have to plug it into the ipad then restart it. O

  • New Computer: How to transfer apps without losing data & in-app purchases?

    I just bought a new MacBook. I've moved everything from my old PC to the MacBook, but now that I hook up my iPhone, iTunes is telling me that to sync my apps with the new MacBook will mean replacing all app data on my iPhone with data from the comput

  • The streaming server cannot accept any more connectionections at this time.

    When I try to play a radio station with iTunes, a window pops up wiht the iTunes error message: "The streaming server cannot accept any more connecitons at this time." I've restarted my computer. Still get the error message. I've dumped all of my int