BASH command via the console script

All,

I had to run a a series of BASH commands via the Script Console to a subset of servers. Is there a script for this that I can take a look? Or direct me to the controls, I might need.

You need to encapsulate in a script on the remote host to do.

actSvc = server["ActionService"]params = [:]params.put("COMMAND_LINE","/home/foglight/testBashScript.sh")params.put("HostName","centosvm1")actSvc.invoke("RemoteCommandAction",params)

This will run the script shell on the host remote centosvm1

the bash script contains the statement echo inside.

-rwxr-xr-x 1 foglight dba 99 Jan 17, 12:09 testBashScript.sh

[foglight@centosvm1 ~] $ testBashScript.sh more

#! / bin/bash

echo 'Test Action of Bash Script remote command execution' > /tmp/ForumOutput.txt

[foglight@centosvm1 ~] $

-rw - r - 1 foglight dba 56 Jan 17, 12:12 ForumOutput.txt

[foglight@centosvm1 ~] $ /tmp/ForumOutput.txt more

Run the test of the Action of the remote Script Bash command

[foglight@centosvm1 ~] $

I have tried a few iterations to try to echo the commands directly in a command param file but did not

Hope this helps

Tags: Dell Tech

Similar Questions

  • How to enable and disable, copy or rename the rules via the groovy script?

    A client, we received this question:

    How to enable and disable, copy or rename the rules via the groovy script?

    Foglight 5.7.5

    Hello

    There is this example of support KB

    support.Software.Dell.com/.../99059

    and there is also documentation of Service layer of the administration on the RuleService console.

    Best regards

    Golan

  • Call via the FDM script batch file

    Hi all

    Here is the FDM script written to call the command via the Script FDM in import file, test the operation of the script by creating a vbscript file (* .vbs) to call the batch file and worked like charm. Please see the excerpt from the sciprt

    SubMonth = "Mar".

    SubYear = "FY15.

    ARG = trim (SubYear) & "" & trim (SubMonth)

    Set objWshShell = CreateObject ("Wscript.Shell")

    strCmd = "E:\hyperionfiles\batch\CalcActNew.bat" & Arg

    Line 53 objWshShell.Run 'strCmd', 0, True

    The error returned is

    Error.JPG

    Thank you

    Hi, no double quotes are needed to join strCmd it's a variable

    objWshShell.Run strCmd, 0, True

  • Change the DB connector via the console design

    Hello

    I installed the DB connector with the GTC feature in IOM 9.1.0.2. No change is required for reconciliation and it works very well, how ever, I need to reach my own adapter for the provision of a new user. Is it well if I'm going to change the definition of process via the console design, since Oracle and Oracle support documentation we ask is not to change the connector through the console of design? In addition, this connector can be exported and imported as the rest of the connectors or what I create in each new environment?

    Thank you
    PETREA

    It will work, but if you redefine the GTC connector modifications will be overwritten.

    On the side of the support of support for changes to all of the artifacts created by GTC varied per person support and time. It is not officially supported (most of the time).

    Best regards
    / Martin

  • External authentication via the PHP script failed

    I'm not a PHP genius - in fact I'm not a backend coder so I'm kinda struggeling with the sample scripts - I still hope for a sample of CF....

    I'm trying to run and connect to the CAA via the command line (Terminal). I'm not sure what I'm doing wrong - this is what I'm passing:
    PHP f /Applications/MAMP/htdocs/afcs.php args - debug - host = my_pass, http://connectnow.acrobat.com, fcguru, my_login

    The username and password I spend are correct. However, I get this response:
    Error: message exception 'AFCSError' with ' < State response 'error' = >
    < error code = "AUTH_FAILED" >
    < msg > failed authorization < / msg >
    < / error >
    < / answer >
    ' in /Applications/MAMP/htdocs/afcs.php:86

    Really struggeling with this. Once again I get this working from the command line, I don't know how to call it from a script instead. I use CF on the backend, no PHP.

    Kind regards

    Stefan

    Thank you, this is very useful. It seems that I can now connect from the Terminal so that's a good start. Also, I did not see external authentication in PHP for example - I must have been blind.
    I'll see how far I get with that. What I'm trying to do is spawn new rooms based on a template on the fly, and I have some doubts, I'll be able to understand this myself.

  • Deployment of the OMB via the TCL script

    I need to deploy all of the mappings in a module in a new target database. I want the configuration settings for
    (1) default operating mode = "DΘfinir base" and for
    (2) default audit level = 'NONE '.
    on all maps.

    It seems that the default repository for these parameters (and I can't find where these default values can be managed) are
    (1) default operating mode = "Line in function from set failover" and
    (2) level of auditing by default = "ERROR DETAILS" on all the mappings.
    While when I deploy via the script all mappings have these settings (which we do not want) as it appears that OMB orders use these repository/user settings. Card via interface OWB deployment allows you to change the settings of configuration as requires it, but it's the long answer.

    These configuration settings can be overridden in the TCL script via OMBDEPLOY or OMBALTER or any other command OMB parameter so all mappings are deployed/configured as
    (1) default operating mode = "DΘfinir base" and for
    (2) level of auditing by default = 'NONE' on all the mappings.

    Thank you
    Dave.

    Hi Dave

    Yes, you can set the code generation and the non-use of the properties of mode from a script...
    OMBALTER MAPPING "$map" DEFINED the VALUES of PROPERTIES (GENERATION_MODE, DEFAULT_OPERATING_MODE) ("SET_BASED", "SET_BASED")

    So that you can loop around all the cards and do these things, there are also a few experts on the Exchange utility, allowing you to block of updates quickly
    http://www.Oracle.com/technology/products/warehouse/htdocs/experts/multi_config.zip

    The model is available from scripts, for example to a PLSQL mapping batch you can query the properties as follows:
    OMBDESCRIBE CLASS_DEFINITION 'BATCH_MAPPING' GET PROPERTY_DEFINITIONS

    See you soon
    David

  • understanding the order of the commands in the RMAN script

    I just started working at a new job and prior s/n had left until I'm there. I'm looking at the RMAN script to back up the database of the single instance 11 GR 2 and I do not understand what is the need of two commands 'backup duplication "? Would it not be prudent to also have a command of "overlap of the archivelog backup all ' as well? In addition, what is the point of having the command "Restore database overview" in the daily backup script?


    run
    {
    cross-checking of backup;
    retrieve the copy of the database with the tag "ORA OEM_LVL1_ILANDB_PRIM$ ' until ' SYSDATE-1';
    backup incremental level 1 to retrieve the copy with the tag "ORA$ OEM_LVL1_ILANDB_PRIM" database more archivelog delete all entries;
    delete noprompt obsolete;
    Overview of database restore;
    cross-checking of backup;
    }

    Hello again;

    These jump out of me.

    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; (too low would set to minus 2 and would consider higher)
    CONFIGURE EXCLUDE THEM FOR TABLESPACE "WEBTASK_DATA"; (Consider removing unless you have good reasons for maintaining)
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; (Review based on your configuration - for Data Guard may be different)

    STRATEGY OF RETENTION may be based on redundancy or a window of recovery. For redundancy, I like 2 or 3, for recovery window I like 7.

    Best regards

    mseberg

  • Need help with commands from the console.

    Guys,

    I'm discovering nuer console which is attached to a particular hba.  I have connected to the console and you have run the following command

    cat/proc/vmware/scsi/vmhba1

    It returns a message saying something like "this is a directory" now all I have is a blank screen with a blinking cursor and I can't go back to the root.  Can someone help me to pease keep in mind Im these commands do not at all know.

    Thank you.

    ... try with CTRL + C or ": q!"

    CAD commands reference

    Bye bye

  • Its not sent over the network via the Console remotely?

    When I connect to a Win XP VM via the network by using the Remote Console.  The sounds generated by the VM do not pass to the Remote Console but are heard to the host machine.  Is it possibe to have passed to the computer running the Console sounds remotely?

    Thank you!

    Rick

    As others have said implicitly... the remote console is not the best way to connect remotely to your virtual machines. It is best used only for management purposes.

    The RC is not effective - it uses too much resources on your host - or it has lots of features.

    It is better to use a tool like remote desktop on linux or microsoft using something like freeNX or even VNC flavors.

    --

    Wil

    _____________________________________________________

    Visit the new VMware developers at http://www.vi-toolkit.com wiki

  • Export of the metadata of Essbase via the Calc Scripts

    Hi guys,.

    Here's my problem,

    We try to export essbase cube intersections in a flat file (so that it can be used by SUN)

    )

    We have developed a calc script to export an intersection to a flat file, but the flatfile is written only to the location of the essbase server.

    But we need this flat file to immerse in an another server (SUN Server), so what would you suggest is the best way to do this on a regular basis (monthly) and huge amounts of data.


    PS: Someone suggested me to use a windows batch file to move the flatfile, but I have no idea how to do that.


    Any help would be really appreciated...

    Thanks in advance
    Arun

    Metadata? You mean, right? DATAEXPORT is only going to write the numbers, not of dimensionality.

    I did deal with this issue, so - DATAEXPORT wrote only the box to Essbase. You can try pointing to mapped drives, but it has not worked for me.

    Why not put together a script MaxL who runs the calc script (standard stuff so far) and then either the caller script in cmd OS either copy it to another location (if on Windows, see COPY) or use the MaxL shell command to launch a shell of the operating system and make the copy?

    Another solution would be to set up a routine watcher file FTP'd the file off the drive, then did a deletion of the exported file. You may have to wait five minutes, but that shouldn't be a big problem in Informatica. In fact, I bet that informatica can do 99% of it.

    Finally, another approach would be to write that all at a table and just picking up here.<--This is="" probably="" the="" easiest="" and="" if="" you="" think="" about="" it,="" what="" informatica="" was="" meant="" for;="" no="" more="" messy="" files="" to="" worry="" about="" and="" it's="" sql="" all="" the="" way.="" i="" would="" do="" a="" truncate="" after="" it="" read="" the="" table="" as="" dataexport="" has="" a="" habit="" of="" concatenating="">

    Kind regards

    Cameron Lackpour

  • How to switch the input of command in the DAL script parameter

    Hello guys,.

    I want to pass the name to extract xml (one of the input for the batch of documaker parameter) to one of my trigger DAL.

    I plan to use the Ext2GVM function for this. I need to know the syntax of the following parameters:

    Say-exporter variable XMLNAME am for the batch.


    (1) what should be of syntax for the AFGJOB file

    Is this correct-> ; Ext2Gvm; 2; ParameterName = ~ GETENV XMLNAME ;

    (2) what should be my entry in the trndfdfl. DFD

    Is this correct->

    < FIELD: parametername>

    EXT_LENGTH = 21

    EXT_TYPE = CHAR_ARRAY_NO_NULL_TERM

    INT_LENGTH = 20

    INT_TYPE = CHAR_ARRAY

    KEY = O

    REQUIRED = Y

    FIELDNAME = parametername


    (3) is it necessary to go into details as < Trn_Fields > in the ini files?

    If so, please help me with sytnax


    (4) final, how can I call this variable in the script DAL ?

    Is this-> OK

    Metafilename = GVM ('parametername')


    Thank you


    I reformulerai what I think you do.

    You have a file name that you want to reference it in a script DAL. This file is NOT the snippet file should be able to use in the creation and mapping of your transactional data, but a few additional files that you expect to process directly from DAL.

    If this is correct, two possibilities come to mind.

    1. assuming it's a file that you can copy using your linux script, copy the file to a consistent name. Your script DAL can then use the code name hard you still copied.

    2. a method that does not have a copy of the file would require that you create an environment variable of the linux script that contains the name of the file passed. In your INI, you must define your own INI, something like this:

    Filename = ~ GetEnv MyExternalFile

    The DAL script would do this to get the name:

    xmlFileName = GetINIString ("MyINIGroup", "Filename");

    When DAL is requesting the INI value, see the logic underlying the ~ GetEnv which is a built-in function to get the environment variable named following. So if you have assigned your script linux environment variables, the name going through now and DAL has a way to get it.

    (Note there is no magic in the name of the INI option or group or the name of variable environment you choose to use.) The magic is to use the ~ GetEnv to retrieve the value of the environment when the option is requested.)

    Second note, the GetINIString function has an optional first parameter to name a context INI. In this case, I do not pretend that you use this setting. Just include a comma to indicate that the first parameter is omitted.)

  • How can I make javascript - entry via the console action/target - easier to navigate?

    Hi all

    Someone find that navigate the continuous and uninterrupted lines constituting the blocks/paragraphs of the text in the JavaScript code, entered through the console of the target/action, is of a daunting task, especially when making some amends?

    Other than the obliques, which seem to cause problems when published and displayed through some browsers - does anyone have a cross-platform solution for separating the code in lines sensible and readable for ease of navigation?

    Thanks much for any help.

    Edge 2014.1.1

    Mac OS 10.7.5

    Cross-platform IE10 upwards browsers

    I would like to make a table of the name of each item and a table for the text.

    Example:

    Enter the code to run when the composition is fully charged here

    panels of var is ['panel_1_text', 'panel_1_text_2', 'start_text', 'panel_2_text'];.

    var = [] info

    "Through Phase 3...",

    "appropriate here text."

    "appropriate here text."

    "appropriate here text."

    ];

    for (i = 0; i<>

    SYM.$(panels[i]).html (info [i]);

    }

  • Cf11 instance works only when I start it via the console

    In WIndows Services, my cfintra instance is running. In the CF Instance Manager, my cfintra instance is stopped, and I can not started via this page. In CF instance newspapers I get this:2014-10-08 10_43_13-webin2 - Remote Desktop Connection.png

    And visit my site simply returns a 500 error. So I started CF via CMD instance with: coldfusion.exe - start - console and now my site is running. However, the State of the instance in the Windows Services is 'stopped' and if I close the window CMD, it stops the instance CF. I have 4 instance CF I am managing through the instance manager and CFINTRA is the only one I can't start and stop successfully from the Manager. So, how do you debug this problem?

    2014-10-08 10_39_57-webin2 - Remote Desktop Connection.png

    We tested the creation of multiple instances for our purpose. Once we have applied the fix to the main proceedings, it is applied to the rest of all. It seems to me that the issue is part of your body - CFUSIONINTRA. Can you delete and recreate.

    Kind regards

    Anit Kumar

  • How to echo the commands from the main script, but not nested scripts?

    I have a main script that calls other scripts inside. I would like to see the calendar on the individual files as well as the call for the files, but not the instructions in individual files
    --main.sql
    spool main.log
    set time on timing on
    
    @file1.sql
    @file2.sql
    
    spool off
    I would like to see in the hold file something like:
    --main.log
    set time on timing on
    
    @file1.sql
    Elapsed: 00:00:00.00
    
    @file2.sql
    Elapsed: 00:00:00.00

    Hello

    Sorry, I don't think that there is an automated way to do it.

    Have you looked at in the [TIMING command | http://download.oracle.com/docs/cd/B28359_01/server.111/b31189/ch12047.htm#i2699704] ( NOT the same as DEFINING TIMING)? You have to explicitly say TIMING SHOW when you want to display the results, and the results are relatively to the point when you said TIME START. I know it's quite differetn of what you really want.

    You can write a function defined by the user show_elapsed, who remembered the last time he was called and displays the time elapsed since then.
    You would still have to call it explicitly, but you can build in sub-script calls.
    What's in your main instead of script

    @file1.sql
    @file2.sql
    

    You "have

    @run_script  file1
    @run_script  file2
    

    Run_script. SQL could be as simple as:

    @&1
    EXEC  show_elapsed;
    

    or you can add other commands (such as the ECHO VALUE).

  • Cannot send command via the VISA test panel in MAX

    Hi all

    I have a small question by using the VISA test panel in MAX.  I try to send a simple command to a device and then retrieve the response data.  I am able to do this successfully through Labview, but for some reason I can't get a good answer in MAX.  The command I sent you is merely a letter (unit address) followed by an end of line character (\r\n in ascii).  In MAX, I simply adding \r\n on the string sent in the buffer (end send on written == FALSE).  All parameters of series are the same as what I have in LV (19.2, 8-n-1).  Someone at - it ideas?  It of a bit frustrating that I just want to make something simple and do not want to have to build a whole routine in LV to do this.

    Cheers, Matt

    Oops!  Dysfunction of the user.  I was so positive that I sent a term of constant line that I don't look my own code.  In this case, it's a new line!  Duh!  Thanks for trying to help with this arrow.  Sorry to waste your time.

    Cheers, Matt

Maybe you are looking for

  • Satellite P305-S8822 - withdrawal of the dedicated graphics card

    Dear members of the forum, probably due to a fault of the graphics card dedicated to my Toshiba Satellite P305-S8822 (PSPC4U - 02T 014)Processor Intel Core 2 Duo T 5550ATI Mobility Radeon HD 3470 graphics card3072 MB PC5300 DDR2 SDRAM200 GB Serial AT

  • Satellite A660 - unable to connect to wireless networks

    Hello I recently bought a Satellite A660 and for some reason, I keep having disconnected from the wireless network when I unplug my laptop. Whenever my computer is running on battery, it keeps disconnect the router and reconnect sends me problems wit

  • Downgrade from Windows 7 64 for XP 64 bit for the Presario Compaq CQ61 - 319WM VM371UA

    HI - lets get right: You have now the Compaq Presario CQ61-319WM in front of you is preloaded with Win7, but you want to downgrade to your copy of XP64bit. Your system is: AMD Athlon II M300 64-bit multiprocessor Dual Core @ 2 GHz RS780/RS880 (M)ATI

  • return and rotate not considered an editing tool

    It seems that the transformations flip and rotate are not considered changes.  So if I apply these changes I have no indication that this transformation has been applied.  I made a few transformations flip on some images, but not on the others until

  • MAXL script Unix

    Hi Experts, How to run the maxl script in linux in silent mode platform. I invoke the maxl via shell script script. If I run linux script display all the State of charge of dimension for any dimension. Thanks in advance.