How do I redirect the CELLCLI output to text file

Hello
I want to redicrect the cellcli command output to a text file.
For example, how do I redirect the output of this command to a text on/tmp file
CellCLI> list metrichistory where objectType = 'CELL' -

and name = 'CL_TEMP'
Thank you

cellcli offers similar to sqlplus coil features:

CellCLI> help spool

  Usage:  SPO[OL] [ [ CRE[ATE] | REP[LACE] | APP[END]] | OFF ]

  Purpose: SPOOL : Direct the results to the file .
           SPOOL OFF: Turn off the spooling.
           SPOOL: Check the current spooling status.

  Arguments:
    : The filename where the results will be output.

  Options:
    [APPEND]: If the filename already exists, the following output will
              be appended to the file. Without this option, the existing file
              contents will be replaced.
    [CREATE]: If the filename already exists, an error is reported.
    [REPLACE]: If the filename already exists, the contents will be
              replaced.  This is the default, when no option is provided.

  Examples:
    spool myfile
    spool myfile append
    spool off
    spool

But if you try to add a script, it would be easier to simply execute the command line:

# cellcli -e "list metrichistory where objectType = 'CELL' and name = 'CL_TEMP'" > /tmp/CL_TEMP.txt

Also look at the dcli that allows you to run commands cellcli on one or more cells of a compute node.

Good luck.

Tags: Database

Similar Questions

  • How do we install the audio output device?

    How do we install the audio output device?

    Usually, plug you speakers or a connector into the line-out or speaker of your sound card. You may need to update your audio drivers to get all the features of the software. What sound card do you use? Built in or add on the map?

  • How can I redirect the playlists to play the songs from my hard drive?

    I have a new computer and loading music and the old playlist.  How can I redirect the playlists to play the songs from my hard drive.  They used to play from an external hard drive.

    On Friday, April 11, 2014 15:27:39 + 0000, B.Baggins wrote:
     
    | I have a new computer and loading music and the old playlist.  How
    can I redirect the playlists to play songs chosen from my hard drive.  They
    used to play from an external hard drive.
     
    You CAN open the file *.wpl with a text editor. You can (or cannot) be successful
    by making a change to the paths you will find in these files.
     
     
     
    __________________________________________________________________________________________________
    Barb
     
    MVP Windows Entertainment and connected home
     
     
    Connected world Blog Reader Windows 8 App Barb-
     
     
    Windows and Surface drive Windows 8 App community
     
     
     
    Please mark as answer if that answers your question
     
     
     
  • How can I change the default output module in After Effects CS6?

    How can I change the default output module in After Effects CS6? At the moment it is .avi and I do not want to change it to .mov whenever I start a new project. (Windows 8)

    Change--> output Module settings.  being enawed by the beauty and the usefulenss of this Panel...

    Mylenium

  • How can I force the Finder to show all files in a folder of Capitan?-instead of always having to click on "Show all" to see the full selection of files.

    How can I force the Finder to show all files in a folder of Capitan 10.11?-instead of always having to click on "Show all" to see the full selection of files.

    It is not often that I said ' what are you talking about"but" what are you talking about? "

    I do not know of all "show all" in the Finder. Can you provide a screenshot?

  • How can I get the back toolbar that says "file, editing, history, tools, etc.?

    How can I get the back toolbar that says "file, editing, history, tools, etc.?

    Don't see the menu bar (file, publishing, display, history...) (Help)? Hold down the key (key in OSX) and press the following letters in this exact order: V T M
    The bar of menus must now appear permanently, unless you turn it off again (view > toolbars). Turn on/off the menu bar is a new feature in version 3.6.
    See the other bars under view > toolbars. Click on one of them will place a check mark (display) or remove the check mark (not shown).
    To display the status bar, display, and then click status bar to place a control mark (display) or remove the check mark (not shown).

    • If items are missing then see if you can find them in the view > toolbars > customize window.
    • If you see the item in the window customize then bring her back in the window, customize the Navigation toolbar.
    • If you do not see this item then click Restore default set in the view > toolbars > customize window.
  • HDR-CX240... How can I get the camera to record all FILES VIDEO in MP4 format?

    HDR-CX240... How can I get the camera to record all FILES VIDEO in MP4 format. Is this possible? I can't find how to change what default file to save to. Any help would be appreciated.

    Hi dang201,

    There is no option to save the video in mp4 format only. You can check on the MProot folder on your memory card for mp4 files. The. MTS files are normally saved in another folder called flow.

    If my post answered your question, please mark it as "accept as a Solution.

  • How can I change the duration of an MP3 file I downloaded? For example, I have a song that 1.5 last minute, but I want to only keep the 21 seconds. How can I culture there?

    How can I change the duration of an MP3 file I downloaded? For example, I have a song that 1.5 last minute, but I want to only keep the 21 seconds. How can I culture there?

    Your best bet would be looking for writers to mp3/wave. There are a few very good freeware/shareware sound there. I suggest this so that you can choose what format you want to save your file cropped as.

  • How can I change the default icon for a file type

    Hey there,

    I know I did in Windows XP and I am hoping there is a way to do this in Windows 7.

    How can I change the default icon for a file type?

    I want to have all my .sql files appear with a regarless of the specific program's icon is defined as the default program to open with.

    I did some research, but he has only led hacks registry, I tried but not lucky? Does anyone know of a way?

    Here is a free software that will do it without risky registry changes.  Of course I would recommend when even take a few seconds to create a system restore point before using it, just to be sure.

    File of Type utility for Windows 7: http://types.sourceforge.net
  • How can I change the term of my video file?

    How can I change the term of my video file?  Windows DVD Maker is playing my video file listed as 26:18:32 only 26 hours instead of 26 minutes 18 seconds and 32 milliseconds.

    Hi MacChang,

     

    Thanks for posting in the Microsoft Community. It seems that you have a problem with the length of a video file playing on Windows DVD maker. This can be very frustrating for you, and I appreciate the efforts you have put in. Let us work together as a team to get this number fixed.

     

    We start with a few questions-

    (1) is specific to a particular video file?

    (2) have you made changes on the computer?

     

    I would like more information about the issue.

     

    Method 1-

     

    I wish that you disconnect any external devices to the computer. In addition, I would have you close all programs running in the background.

     

    Method 2-

    I recommend you perform the clean boot.

    Placing the computer in a boot minimum state helps determine if third-party applications or startup items are causing the problem. You must perform the steps in the article-

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: You must follow the step 3 of the article to return the computer to a Normal startup after you perform all the troubleshooting steps.

     

    In addition, see the article-

    Solve problems with creating a DVD-video using Windows DVD creation

    http://Windows.Microsoft.com/is-is/Windows7/troubleshoot-problems-with-creating-a-DVD-video-using-Windows-DVD-Maker

     

    We know if you need help. We will be happy to help you.

     

    Thank you.

  • How do I change the name of an audio file once it is in the session?

    How do I change the name of an audio file once it is in the session?

    Thank you

    Steve z

    The only way that you can rename the audio file from within hearing is to do a save slot of the display of waveform AFAIAA. You can rename clips by clicking in the name box at the top of the Properties window, or by right-clicking on the clip and selecting rename from the drop menu (this will automatically open the Properties window if it is not already open).

  • How to check if the selection is any text tho:

    Ok.. Another question:

    How to check if the selection is any text tho:

        if (app.documents.length != 0 && app.selection.length != 0 &&

         (app.selection[0].constructor.name=="Text"||app.selection[0].constructor.name=="Paragraph"))

    but sometimes the selection is 'textStyleRange', sometimes 'character' etc. is there a shortcut to check both?

    I usually do something like this:

    if ( app.documents.length && app.selection.length && app.selection [ 0 ].hasOwnProperty ( 'baseline' ) )
         alert ( "It's a text!" );
    

    Hope that helps.

    --

    Marijan (tomaxxi)

    http://tomaxxi.com

  • How can I increase the size of the line when the queue to a text file

    How can I increase the size of the line when the queue to a text file, so that explain plans do not end all crushed togeather...?

    SQL > SET LINESIZE 999

  • How to concatenate strings with the lines of a text file

    Hello
    I tried concatenate strings with the lines of a text file, but something is wrong with my code and I belive is the agruments I use in the cycle for. If anyone can help me I will appreciate it very much.
    My code is:
    [code]@echo off
    the value "input=C:\Users\123\Desktop\List.txt".
    for /f "usebackq tokens = *" % in (' input % ') do)
    the value 'str1 = C:\some directory\ ".
    the value ' str2 = %% ~ F '.
    the value "str3 = .pdf".
    the value "str4 = str1% str2% str3%.
    echo.%STR4%
    ) [/ code]
    and the text file is something like:
    121122 [code]
    122233
    123344
    124455 [/ code]
    But I get only one wrong answer and I have to run it like 3 times to get a real result and it is a mistake, the first two are empty spaces and gives the third one as the last line of the text file but repeated n times, where n is the number of lines in the text file.
    Result:
    [code] C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\Users\123\Desktop>[/code]
    So if anyone has an idea about what is wrong please let me know.
    Concerning
    -Victor-

    Hi Victor,

    This forum is dedicated to the support of the Office of consumer Windows (fonts, colors, personal settings).  Since your question is about programming and usually outside the context of most of the customers, I suggest you post your question in the forums as http://msdn.microsoft.com - the Microsoft network to users will be more adapted to help you in your quest.
  • Load the data from a text file into a table using pl/sql

    Hi Experts,

    I want to load the data from a text file (sample1.txt) to a table using pl/sql

    I used the pl/sql code below

    ***********************************
    declare
    f utl_file.file_type;
    s varchar2 (200);
    c number: = 0;
    Start
    f: = utl_file.fopen('TRY','sample1.txt','R');
    loop
    UTL_FILE.get_line (f, s);
    insert into sampletable (a, b, c) values (s, s, s);
    c: = c + 1;
    end loop;
    exception
    When NO_DATA_FOUND then
    UTL_FILE.fclose (f);
    dbms_output.put_line('No. deles de lignes insérées: ' || c);
    end;

    ***************************************

    and my sample1.txt file looks like

    ***************************************
    1
    2
    3
    ***************************************

    Gets the data inserted, with way below

    Select * from sampletable;

    A, B AND C

    1-1-1
    2-2-2
    3 3 3

    I want that data to get inserted as

    A, B AND C

    1 2 3

    The text file I have is to have three lines, and the first value of each line should go to each column

    Help, please...

    Thank you
    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    

    SY.

Maybe you are looking for

  • where can I find a driver for a digital camera?

    I have this camera and I miss place the cd that comes with it and I am trying to install it on my computer because I can use it as a webcam too but wndows keep telling me that they cannot find a driver for it so I do the booklet I don'thave a name of

  • I can't find and activate the Task Manager

    I can't start the task manager of the

  • BlackBerry Smartphones daughter argghhh

    Hi im a mother of a young girl who has 1 last chance to put the correct password in his new blackberry curve 8520! She had only 6 hours, any help would be appreciated x

  • Table of contents - several line Page # alignment problem

    Hi allI have a Table of contents, in which I have a few entries that develops in two lines.When the contained entries Table expand to two lines, leader are not added and page numbers shows next to the entrance.See Image below: entrance with RED ARROW

  • Loading in FDMEE option

    Hi allIn FDM when we load the data, we have the possibility to replace the product, which will be taken as the load '0' option.Using this we can change the MAXL clear option files and load the data.Is it possible in FDMEE to capture these options, as