Remote command fails when cross Foglight, but ok using command line

Try to perform an action simple remote command when a rule triggers the file /sharedScripts of monitoring system.  When the alarm is triggered, an email is sent and action of remote command to find and remove the logs more than 10 days is supposed to work.

The command to run is:

find/sharedScripts/set - name "* .log" \ (-type f-mtime + 10 \)-exec rm {} \;) ""

This command works well from the command line on the server, but when it is run by a remote control action, we get the following exception:

2015-07-20 19:04:30.556 WARN [Action-4-wire-3856] com.quest.nitro.service.action.impl.command.RemoteCommandAction - the remote execution failed on the host prod - 108.llbean.com for the command "find/sharedScripts/set - name" * .log "------(-type f-mtime + 10 \)-exec rm {}------;)" "with the following error: 1.»

I tried many iterations of escape characters, single/double quotes, etc...

Has anyone else tried something like this?  I understand that I could create a script that has this command in it, but if I can avoid that I would because a similar process will be implemented through a hundred servers with different commands according to the system of files in place. In this regard, I would like to manage everything centrally if I can.

Hi Golan-

Thanks for the reply.  I got a response back from support today and it turns out that some avoidance that is required to run the command from the command line has been the cause of the problem running like a remote control action.

This command works well on the command line:

find/sharedScripts/set - name "* .log" \ (-type f-mtime + 10 \)-exec rm {} \;) ""

but the avoidance of parentheses problem in Foglight. The following seems to work as a remote command:

find/sharedScripts/set - name "* .log"(-type f-mtime+10)-exec rm {} \; "."

Tags: Dell Tech

Similar Questions

  • Writing PNG file failed when build exe, but operate normally on the development platform

    See photo below, it is used to call WinAPI for screenshot and then save it in PNG file. This Vi operate normally on the flatform of development, but it failed when building the application .exe file. The pop-up dialog error 'chain of illegal path, OS', but it is clear that the path is correct. Note: run the same PC with Win XP.

    Update:

    I found the reason, but not a solution. In fact, the Clipboard.Get Image does not work when building application exe. But it's the private node invoke, impossible to get support of NOR.

    It seems to be to the node to invoke public on the version of LabVIEW 2012, which can help you check on LV2012 version? Thank you very much.

  • Toshiba 40TL938 - remote control inactive when CI + card is in use

    I don't know if anyone of you has what happened, but I have a TV 40TL938 max 30 minutes of CI + card insertion become inactive on the remote control, or it takes 2-3 commands by pressing a key.

    If I remove the card, remove the plug and then turn on the TV works perfectly of course for 30 min max.
    Can I do something to get rid of this problem?

    > If I remove the card, remove the plug and then turn on the TV works perfectly of course for 30 min max.
    This sentence confuses me a bit now. If I understand you right, you have the same problem with and without PCB + or how understand this?

  • ESXi 4.0 command line upgrade to ESXi 4.0 U1

    I know there is a method in ESX using "esxupdate", but is there a simple process similar to ESXi commandline? Can someone post a step by step method and let me know which download install? I downloaded this...

    Upgrade the ESXi Server 4.0 package to ESXi Server 4.0 Update 1

    This package provides experienced users with the possibility to upgrade remotely, without head of ESXi Server 4.0 to ESXi Server 4.0 Update 1. Use this package with the Remote Command Line Interface 'vihostupdate '.

    Or is it not available for ESXi?

    Probably because you do not pass in the right syntax params and by default, it will use localhost. All orders of vCLI has always the default value - server, username - and - password (or you can let the password off and you will be asked)

    Try this:

    vihostupdate.pl --server 10.4.75.230 -user user -i -b C:\ESXi-4.0.0-update01.zip
    

    and assuming that the IP is your ESXi host, you will be asked your password

    Note: Also, if you use the vCLI to automate all the tasks, to ensure that you are on an eval edition or duly authorized of ESXi, as you can't use the vCLI with the free version of ESXi else, you will get an error.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    If you find this information useful, please give points to "correct" or "useful".

  • Command line

    Using Firefox, Aurora and all night on the same machine:

    Path for Firefox is: "C:\Program Files\Mozilla Firefox\firefox.exe" p - Ian
    Path for Aurora is: "C:\Program Files\Aurora\firefox.exe" PEI Camelot
    Path for every night is: "C:\Program Files\Nightly\firefox.exe" PEI conducting

    It is, if Firefox is running and as I click on the icon of the Aurora, another Firefox window opens and not Aurora; for even if I click on the icon for every night, another Firefox window opens and not every night. The paths are clearly separated. The Profile Manager has the correct user name.

    How can I set the three concurrent sessions to be opened on a single machine with their username each? Am I missing something?

    You use the -no-remote command line option to open a second instance of Firefox using another profile and the target application. For example, if "C:\Program Files\Mozilla Firefox\firefox.exe" p - Ian is open, use this command line to start your profile conducting:

    "C:\Program Files\Nightly\firefox.exe" -p BetaTest -no-remote
    

    For more information, see http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • Error: Cannot copy Admin$\system32\dwrcs.exe when trying to use DameWare NT Utilities card remote Commander for remote control a workstation.

    Original title: impossible to copy to Admin$\system32\dwrcs.exe.

    I'm using DameWare NT Utilities card remote Commander for remote control a workstation.   Other workstation remote control works fine.   On the workstation with the fact that I'm having the problem the following message appears:

    Cannot copy
    C:\Program Files\Dameware Development\Dameware control\DWRCS.exe mini remote

    TO

    \\workstation-name\ADMIN$\System32\DWRCS.exe

    System error: 5

    The system message:

    Access denied

    I don't think it's a matter of DameWare since other workstations are accessible.   I think that this could be a Windows problem with a kind of security.  Anyone know?

    Hello

    Your computer is connected to a server, or a domain?

    You can follow the steps in this link:

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Access denied messages when the connection to the remote PC

    If your computer is on a domain network, I'd recommend posting your query in the TechNet forums.

    Hope the helps of information.

  • Sending files has failed when sending from a mobile phone to the computer via bluetooth. But vice versa is possible.

    Dear Sir.

    Sending files has failed when sending from a mobile phone to the computer via bluetooth. But vice versa is possible.

    OS: Win XP Prof

    Bluetooth device: Widcomm connected to the desktop computer

    Thank you & best regards

    Magali U

    Hey Ma U,.

    Follow the steps in the article.

    How to troubleshoot Bluetooth detection and connectivity issues in Windows XP Service Pack 2

    http://support.Microsoft.com/kb/883258

  • Try to Thinapping MS Office 2007, but failed when an error «could not copy ##attributes...» "is thrown.

    Hi all...

    Try to Thinapping MS Office 2007, but failed when an error «could not copy ##attributes...» "is thrown. I'm trying to save the project to a folder under vista (called "shared folder") to a virtual machine by using windows XP SP2. I made a mistake? Your help is really appreciated for the entire community, thank you.

    Hi MrBean344,

    If I was wrong, you will get the error for GetAttributes... while building the project. Am I wrong?

    If so, then I think it was due to the long way to have more than 256 characters. Can you please try to save your project in the short path such as C:\ and rebuild the package?

    I think that after doing this, error is not displayed and application is virtualized.

    Thank you best regards &,.

    Margaux Khopkar

  • When the shared program files to remote machines using the command line it shows in the 'c' drive volume has no label

    Considered system 2A & b... I need write access to the Program Files directory of computer remote (B) (a)... trying to create a file or folder.
    using command line.

    Hi kesavarajm,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet forum.

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

  • Firefox command line option 'no-remote' launches a redirection of spam

    I set up multiple profiles in Firefox. I want to be able to run multiple profiles at the same time, so I created the shell script to start each profile; example:

    nohup /Applications/Firefox.app/Contents/MacOS/firefox Pei User01 no remote > / dev/null 2 > & 1 &

    When I do that, I get the following pop - up. The endpoint may change, but the section of domain.domainggateway.com that seems to start forwarding appears every time.

    http://11165504-364378.domain.domaingateway.com/redirect?o=0 & y = 0 & x = 0 & r=http%3A%2F%2Fpdamv.bidsystem.com%2Fppc%2Fclick.aspx < deleted long chain - c >

    I have narrowed down in determining that this will happen only when I use the option 'no-remote '.

    I suspected that I had malicious programs from a Plugin. So I carefully and completely uninstalled Firefox, twice. Yet both times I kept getting this pop-up when you start by the above command. I have not found a solution.

    I now suspect some lance this code lies in the official download of Firefox, but I don't know how to dig into that one more away. Ideas on how to figure out where it comes from and how to fix?

    Mac OS - X 10.10.5
    Firefox 4.0.0.3

    Thank you

    'Re missing you the main hyphen before '- no - remote', if Firefox thinks you want to open the remote Web site no.

    • nohup /Applications/Firefox.app/Contents/MacOS/firefox-aucun-distance Pei "User01" > / dev/null 2 > & 1 &

    You can add - no.-distance to the command line to open another instance of Firefox with its own profile and run multiple instances of Firefox at the same time.

    Note that you can not open external links in a Firefox instance started with the - non-interrupteur remote, usually it is recommended to launch default profile without the - No.-remote switch unless you are never to open external links (by clicking on a link in an email) in Firefox.

  • I can't enter my system remotely (site office) from my house, but can't access websites from here (site office)

    DNS server search order has failed

    I can't enter my system remotely (site office) from my house, but can't access websites from here (site office). When I go to "network diagnostics" it shows "Server dns search order" has failed.

    How can I solve this problem? Please help me.

    Hello yazid.

    I recommend posting your question on our TechNet site for remote desktop connection problems located here:
  • "Authentication failed" when you try to deploy to the device app

    Out of the blue in the middle of the day yesterady, I can't deploy all the apps on my Z30.

    The message (tried both Momentics and command line deploy blackberry) simply says "failure of the authentication of the user.

    Note that this is different from the message that you get when you specify the wrong password, which is "error: failed authentication." There was 1 of 5 attempts", so I know my password is correct.

    I am capable of correctly SSH to the machine after using the blackberry connect command, but cannot download a token to debug or deploy applications.

    Who would do it.  You must complete this before configuring the device is fully functional by the USB bus.  Manually sys.firstlaunch resets this flag.

  • WINDOWS 7 error the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.

    «WINDOWS 7 error the application failed to start because the side by side configuration is incorrect, please see the application event log or use the command-line sxstrace.exe for more details.»

    This cams almost for all the applications that I try to open. I read all kinds of things to solve problems, but I can't install anything because it is constantly on the screen.

    I think it's like that because my computer shuts off when I was doing the system restore, because he has not started.

    I don't know what to do.

    Hello

     
    You can view the event log by using Event Viewer. See the link below for more information about how to use Event Viewer to check the error message or information,
     
    Please check the information in Event Viewer and let us know the problem more briefly for a better solution.
     

    Method 1:
    However, try the SFC (System File Checker) scan on the computer. Check out the following link to do the same thing:
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833
     
    Method 2:
    You try to run the fixit given in the following link and check if it works:
  • with the command line remote reboot

    I know not how to remote shutdown of a pc on our network using the command-line using this...

    Shutdown - r f t 0 - m ComputerName

    But how to do it with my mac to pc?

    Again, you can not. The commands only work with the same OS.

    Yes Mac to Mac, Windows, Windows, etc.

    You will need to find some kind of package of administration remote cross-platform.

  • ViewPlanner fails when the "Connect-Start-workload.

    Hello

    I am working on installing a reference ViewPlanner, ViewPlanner 3.5 environment local.

    I created the Office of the GoldenRDSH and the Viewplanner device, without AD.

    I used Windows 7 32 bit under my desk and Office installed (2010..) and all the necessary applications and tools.

    Managed to do the check option, and there is no problems/errors.

    However, when I do the execution phase, it fails on the "Connect-Start-workload.

    Attached, the screenshots of the desktop and web appliance GUI.

    viewplanner.JPGviewplanner2.JPG

    The journal of Viewplanner.txt of the device:

    15/06/17 09: 12:30, 160 INFO Matching VM control & Mgmt-Perf with prefix: GoldenRDSH

    2015-06-17 09:12:30, 160 INFO Matching VM GoldenRDSH with prefix: GoldenRDSH

    2015-06-17 09:12:30, 161 INFO VM GoldenRDSH matched with prefix: GoldenRDSH

    2015-06-17 09:12:30, 161 VMs Office INFO found: ["GoldenRDSH"]

    2015 06-17 09:12:30, INFO 161 loading AD Info to data structures is done with adinfo: [{'schedlist': zero, the 'Protocol': 0 L, "name": "ssss", "wrk_FK": "QuickWordTest_1i", "poolname": ", 'grp_id': 11 L,"extrainfo": zero, 'percentage': 100 L, 'connections_per_client': 1 L, 'deskvms': ['GoldenRDSH'], 'rdshtype': 0 L, 'workprofile': {'IEbpm': 1 L, 'ARbpm': 1 L, 'Thinktime': 5 L,"extrainfo": zero, 'name':"QuickWordTest_1i"}}] [{{, 'hosttime': 1, 'random': 1, 'iterations': 1 L, 'OMP': 60 L, 'video':-1 L, "applist": "WORD"}, "clientprefix": "}]

    2015-06-17 09:12:30, 164 DEBUG get the configuration option monitor_control.pseudo_perfctr in VM GoldenRDSH

    2015-06-17 09:12:30, 184 INFO the value of the performance counter for VM GoldenRDSH: true

    2015-06-17 09:12:30, 184 INFO updated 1 desktop VMs

    2015-06-17 09:12:30, INFO 184 turn on VMs in the Scott/ad group: ["GoldenRDSH"]

    2015-06-17 09:12:30, 185 DEBUG turn on/off the VM: GoldenRDSH

    2015-06-17 09:12:30, 188 DEBUG VM GoldenRDSH is powered. Restart the virtual machine.

    2015-06-17 09:12:31, 250 INFO Operation: poweron_desktops, start time: Wednesday 17 June at 09:12:30 2015, Total time taken: 4.31

    2015-06-17 09:12:31, 251 INFO-

    2015 06-17 09:12:31, INFO 251 waiting for the number of virtual machines for you register

    2015-06-17 09:12:31, 251 INFO-

    2015-06-17 09:12:34, 860 DEBUG returning to the current state: 0 with status message: [IP recorded: 0] [the workload began on machines 0] [Uploaded results-> desktop: 0 (0 errors)]

    2015-06-17 09:12:50, 327 new customer INFO entry: 10.11.19.165

    2015-06-17 09:12:50, 328 registered current INFO status machines: [required servers: 1] [server: 0]

    2015 06-17 09:15:50, 328 INFO analysis all virtual machines for all required patches.

    2015-06-17 09:15:50, 328 INFO receives the IP address for the computer virtual GoldenRDSH vCenter

    2015-06-17 09:15:50, 340 INFO Got, the IP address for the virtual GoldenRDSH computer: 10.11.19.165

    2015-06-17 09:15:50, 341 INFO makes the analysis of the virtual machines.

    2015 06-17 09:18:50, 342 INFO analysis all virtual machines for all required patches.

    2015-06-17 09:18:50, 342 INFO makes the analysis of the virtual machines.

    2015 06-17 09:21:50, 426 DEBUG, there could be problems with the following virtual machines in this run (check vCenter Console to search for errors). Continue the race with other virtual machines.

    2015-06-17 09:21:50, 427 INFO receives the IP address for the computer virtual GoldenRDSH vCenter

    2015-06-17 09:21:50, 443 INFO Got, the IP address for the virtual GoldenRDSH computer: 10.11.19.165

    2015-06-17 09:21:50, 443 DEBUG IP: 10.11.19.165-> name: GoldenRDSH

    2015-06-17 09:21:50, 444 INFO Running query: SELECT * from hostinfo where IPADDR = "10.11.19.165."

    2015-06-17 09:21:50, 445 INFO Running query: UPDATE SET is_Client = '0' hostinfo, State is 'Unpaired', name = 'GoldenRDSH' where IPADDR = "10.11.19.165."

    2015-06-17 09:21:50, 452 INFO registration remaining VMs.

    2015-06-17 09:21:50, 452 INFO reached threshold number of machines. From the reference plane.

    2015-06-17 09:21:50, 452 INFO waiting for virtual machines to settle; sleep for the rise time.

    2015-06-17 09:22:20, 490 INFO Running query: INSERT INTO testinfo (test_name, ClientIP_FK, ServerIP_FK, Protocol, username, password, test_state, start_time, type) values ('1', '10.11.19.165', '10.11.19.165', 'NA', 'ssss_1', "passw0rd", "waiting", "2015-06-17 09:22:20", 0)

    2015-06-17 09:22:20, 495 INFO Running query: SELECT * from testinfo where testname = '1' and test_state = 'pending' and ClientIP_FK = '10.11.19.165' and ServerIP_FK = username and "10.11.19.165" = "ssss_1."

    2015-06-17 09:22:20, 505 DEBUG begins to gather its periodic vCenter stats...

    2015-06-17 09:22:26, 220 INFO-

    2015-06-17 09:22:26, 221 INFO launch the execution plan for the run profile

    2015-06-17 09:22:26, 222 INFO-

    2015-06-17 09:22:26, 222 INFO from the local workload for virtual desktops.

    2015-06-17 09:22:26, 223 INFO Unmapping default data on the 10.11.19.165 virtual machine folders

    2015-06-17 09:22:26, 223 INFO Running query: SELECT * from testinfo where ServerIP_FK = '10.11.19.165' and test_state = 'waiting '.

    2015 06-17 09:22:26, 225 INFO the id of the test server is 4

    2015-06-17 09:22:26, 225 INFO Running query: UPDATE hostinfo SET state = 'Busy' where IPADDR = "10.11.19.165."

    2015-06-17 09:22:26, 235 INFO Running query: UPDATE testinfo test_name = "1" SET, Protocol is "NA" of user name = "ssss_1" password = "passw0rd", test_state = "Running", start_time = '2015-06-17 09:22:20 "where test_id = 4

    2015-06-17 09:22:26, 236 INFO Pushing workload from the virtual machine configuration: 10.11.19.165

    2015-06-17 09:22:26, 237 INFO running commands remotely with arguments: server: 10.11.19.165, test_name: 1

    2015-06-17 09:22:26, 237 callback function to add INFORMATION for the remote root object for IP address: 10.11.19.165

    2015-06-17 09:22:27, 085 adding INFO reminder for the command startWorkload on the 10.11.19.165 Server

    2015-06-17 09:22:27, 115 WARNING remote call failed: [failure instance: traceback to remote host - Traceback unavailable]

    ]

    Error unhandled offline:

    Unhandled error

    The remote host - unavailable Traceback traceback

    2015-06-17 09:22:30, 119 configuration workload of INFORMATION sent to group: ssss

    You will appreciate your help.

    Thank you

    Guy

    It seems that the ViewPlanner agent is installed incorrectly.

    There are two packs zip for Agent of VP (1) for desktop PC (2) to the client.

    It seems that this client package is installed in the office instead of an office. You can install the agent desktop of VP and try again?

Maybe you are looking for