[mcollective-users] mco agent for windows to run system command like linux

2016-06-30 Thread rakare2015
Hi Folks, I just installed mcollecitve on Windows and would like to run system thru mco. Is there any mCollective agent available for Windows like Shell agent for Linux to run system commands. Thanks Ravi -- --- You received this message because you are subscribed to the Google Groups "mc

[mcollective-users] Need to get process pid of the command along with exitcode and output

2016-07-01 Thread rakare2015
I have been using shell agent https://github.com/phobos182/mcollective-plugins/tree/master/agent/shell and used to run my long running scripts in backgroud. But I want to get the pid of this script execution and monitor on the server until it completes. Right now its not giving the pid and look

[mcollective-users] mColllective registration meta.rb

2016-08-04 Thread rakare2015
I believe the below lines on meta.rb will run collect the latest facter information and send it. PluginManager["facts_plugin"].get_facts But I have cron configured to collect the data in some interval. So is there any way to get the facts from that file instead of running facts_plugin again w

Re: [mcollective-users] mColllective registration meta.rb

2016-08-04 Thread rakare2015
Ok cool.. But /usr/libexec/mcollective/mcollective/facts/yaml_facts.rb which runs at end of puppet agent call. This is doesn't formatting the partitions facts value in proper yaml format. When I run 'facter -y partition' its providing result in proper format. Here are the results: # facter -y

[mcollective-users] Monitor ActiveMQ Brokers monitor

2016-08-07 Thread rakare2015
Hi Folks, I have ActiveMQ servers configured based on country and all brokers are connected to one master server. I noticed sometime master broker or any of country specific broker is not responding due to Java memory issue. Is there any tool available to monitor all the connected brokers and n

Re: [mcollective-users] mColllective registration meta.rb

2016-08-08 Thread rakare2015
Hi, One more query please. I have activemq brokers configured based on country and configured this meta registration and servers are connected with respective country based activemq servers. All the country based activemq brokers are connected with one master activemq server. In such case if I

[mcollective-users] Registration monitor not receiving messages properly in big infra

2016-08-29 Thread rakare2015
In our Infra we have 40,000 servers where its all managed by mCollective and connected with ActiveMQ broker. We have setup meta registration monitor for all the servers and it will send meta information for every 12hours. The registration receiver is only one server where we need to keep all of

Re: [mcollective-users] Registration monitor not receiving messages properly in big infra

2016-08-29 Thread rakare2015
I just found http://allanfeid.com/content/create-inventory-tool-using-mcollectives-registration-feature which say to use queue instead of topic which is more comfortable to avoid to load broker. Also I found https://devco.net/rip/mcollective-registration-receiver.rb which is service to recei

Re: [mcollective-users] Registration monitor not receiving messages properly in big infra

2016-08-29 Thread rakare2015
I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Monday, 29 August, 2016 16:47:12 > > Subject: Re: [mcollective-users] Registration monitor not receiving > mess

Re: [mcollective-users] Registration monitor not receiving messages properly in big infra

2016-08-29 Thread rakare2015
/receiver.rb:91 > > Am using rabbitmq connector. Not sure why its not getting the subscription > id. > > > That'll be the bit where I said its ancient and needs a rework :) > > It uses old APIs. > > > > > > On Monday, August 29, 2016 at 8:23:46 PM

Re: [mcollective-users] Registration monitor not receiving messages properly in big infra

2016-08-29 Thread rakare2015
t;> from /root/receiver.rb:91:in `new' >> from /root/receiver.rb:91 >> >> Am using rabbitmq connector. Not sure why its not getting the >> subscription id. >> >> >> That'll be the bit where I said its ancient and needs a rewor

Re: [mcollective-users] Registration monitor not receiving messages properly in big infra

2016-08-30 Thread rakare2015
t getting the >> subscription id. >> >> >> That'll be the bit where I said its ancient and needs a rework :) >> >> It uses old APIs. >> >> >> >> >> >> On Monday, August 29, 2016 at 8:23:46 PM UTC+5:30, R.I.Pienaar wrote

[mcollective-users] Registration meta tuning

2016-10-17 Thread rakare2015
the facter command returns partitions output properly and also when i write facter information as yaml to facts_plugin file and the format also proper. But on meta registration the result variable is defined as below, result = {:agentlist => [], :facts => {},

Re: [mcollective-users] Registration meta tuning

2016-10-17 Thread rakare2015
yes. it does On Tuesday, October 18, 2016 at 12:38:58 AM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Monday, 17 October, 2016 11:30:36 > > Su

[mcollective-users] mCollective registration receiver tune

2016-10-26 Thread rakare2015
Am using https://github.com/ripienaar/mc-plugins/blob/master/registration/mcollective-registration-receiver.rb to receive meta information registration message. But I want to compare the timestamp of the message and if anything mismatch with current timestamp then I need to skip that. Current

Re: [mcollective-users] mCollective registration receiver tune

2016-10-26 Thread rakare2015
ssage. On Wednesday, October 26, 2016 at 6:08:20 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Wednesday, 26 October, 2016 14:30:49 > > Subject: [

Re: [mcollective-users] mCollective registration receiver tune

2016-10-26 Thread rakare2015
I am using meta.rb https://github.com/puppetlabs/mcollective-plugins/blob/master/registration/meta.rb On Wednesday, October 26, 2016 at 6:17:21 PM UTC+5:30, R.I.Pienaar wrote: > > > - Original Message - > > From: "rakare2015" > > > To: "mcolle

Re: [mcollective-users] mCollective registration receiver tune

2016-10-27 Thread rakare2015
Cool. Thanks On Wednesday, October 26, 2016 at 6:35:15 PM UTC+5:30, R.I.Pienaar wrote: > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Wednesday, 26 October, 2016 14:56:37 > > Subject: R

[mcollective-users] mCollective connection broken with error

2016-11-02 Thread rakare2015
Unable to figure out why getting below error and due to this connection broken with mcollective. WARN -- : runner.rb:185:in `receiver_thread' Received frame of type 'ERROR' expected 'MESSAGE' INFO -- : runner.rb:187:in `receiver_thread' sleeping for suggested 2.56 seconds any idea? -- ---

Re: [mcollective-users] mCollective connection broken with error

2016-11-02 Thread rakare2015
on activemq i dont see any logs for this time On Wednesday, November 2, 2016 at 6:36:20 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Wednesday, 2

[mcollective-users] overcome mcollective connectivity issue due to time drift

2016-11-02 Thread rakare2015
Is there a way to overcome time drift issue with mcollective? Many servers has time sync on my environment where i can't fix it immediately but I need to run mcollective command against them. -- --- You received this message because you are subscribed to the Google Groups "mcollective-users

Re: [mcollective-users] mCollective connection broken with error

2016-11-02 Thread rakare2015
do you want to enable debug on mcollective service? Also when I did restart mcollective service restart it started working fine and dont see that error. On Wednesday, November 2, 2016 at 7:01:53 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > >

Re: [mcollective-users] overcome mcollective connectivity issue due to time drift

2016-11-02 Thread rakare2015
gh you really > should > fix the actual problem. > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Wednesday, 2 November, 2016 14:38:53 > > Subject: [mcollective-users] overcome mcoll

Re: [mcollective-users] overcome mcollective connectivity issue due to time drift

2016-11-02 Thread rakare2015
system to > avoid request replay attacks, allowing a client to override a server TTL > would defeat > the security. > > So no, you have to set it on servers > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users&quo

Re: [mcollective-users] mCollective connection broken with error

2016-11-03 Thread rakare2015
tent-type"=>"text WARN -- : runner.rb:185:in `receiver_thread' Received frame of type 'ERROR' expected 'MESSAGE' Many servers connection broken with the same issue. Any idea? On Wednesday, November 2, 2016 at 7:15:18 PM UTC+5:30, R.I.Pienaar wrote: > > &g

Re: [mcollective-users] mCollective connection broken with error

2016-11-03 Thread rakare2015
, November 3, 2016 at 5:07:24 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Thursday, 3 November, 2016 10:10:03 > > Subject: Re: [mcollective-users] mColl

Re: [mcollective-users] mCollective connection broken with error

2016-11-03 Thread rakare2015
stomp-1.3.2 On Thursday, November 3, 2016 at 5:59:57 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Thursday, 3 November, 2016 13:09:23 > >

Re: [mcollective-users] mCollective connection broken with error

2016-11-03 Thread rakare2015
sorry i didnt get you. I meant gem version which am using is stomp-1.3.2. On Thursday, November 3, 2016 at 6:24:32 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" &

Re: [mcollective-users] mCollective connection broken with error

2016-11-06 Thread rakare2015
its resolved. found that its related with stomp login issue. Thanks! On Thursday, November 3, 2016 at 6:30:54 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > >

Re: [mcollective-users] overcome mcollective connectivity issue due to time drift

2016-11-06 Thread rakare2015
Thanks for information! its helpful! On Wednesday, November 2, 2016 at 8:25:07 PM UTC+5:30, R.I.Pienaar wrote: > > > > - Original Message - > > From: "rakare2015" > > > To: "mcollective-users" > > > Sent: Wednesday, 2 Nove

[mcollective-users] mcollective with rabbitmq connector with federation for geographical servers management

2016-11-06 Thread rakare2015
i have a setup as below, Rabbitmq central cluster servers with federation: rabbit-central1.server.com rabbit-central2.server.com Canada location cluster servers which used to connect all canada location servers(sub collective name as canada_mcollective): canada1.server.com canada2.server.com Te

[mcollective-users] unable to register mcollective service on windows 2008 sp2 64bit

2017-02-27 Thread rakare2015
Am trying to install mcollective on windows 2008 sp2 64bit but getting segmentation fault error, === C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.9.10-x86-mingw32/lib/1.9/ffi_c.so: [BUG] Segmentation fault ruby

[mcollective-users] run scripts thousand of servers

2017-02-28 Thread rakare2015
Hi, I have script which has more than 2000 lines and want to execute on all my servers and those scripts are not available on all the servers. Is there any way to execute this script on all servers from mco console server? Regards Ravi -- --- You received this message because you are subsc

[mcollective-users] Use mCollective geographically

2017-03-03 Thread rakare2015
Hi, I want to use mcollective on geographically and attempted to configure ActiveMQ network of brokers for that. After the configuration everything is working fine as expected but only problem is, when I run any mco query for multiple servers then its getting disconnected for sometime when many

Re: [mcollective-users] Use mCollective geographically

2017-03-03 Thread rakare2015
Sorry yes mco rpc rpcutil ping and I mentioned wrongly. you can find my setup on https://awwapp.com/s/f0123542-5072-43dc-94a1-72f33fbbfcb1/ and here is my central server activemq.xml file. Just given you limited number of sites only here and I have many number of sites and total number of ser

Re: [mcollective-users] Use mCollective geographically

2017-03-03 Thread rakare2015
I don't have any issues with any specific site until I do mco query for multiple nodes using --nodes. when I do inventory am getting below, Collective Nodes == = australia_mcollective 1950 london_mcollective

Re: [mcollective-users] Use mCollective geographically

2017-03-04 Thread rakare2015
yeah am also thinking that some optimisations I have to do but I tried lot which didn't help. If you would help me with optimization that would be great. I put my client in debug mode and seeing it publishing 1 message per node, since am using direct_addressing on both client and server config

Re: [mcollective-users] Use mCollective geographically

2017-03-04 Thread rakare2015
Hi, Sorry I didn't get you exactly. Am already having load balancing on all remote sites and have only one broker on central. Do you want me to try with load balancing for central one also? Also I just remember that I have set ttl to 300 to avoid time drift issue for some of the servers. Not

Re: [mcollective-users] Use mCollective geographically

2017-03-04 Thread rakare2015
Ok sure I will try with your recommendation. Thanks for your help! Regards Ravi On Saturday, March 4, 2017 at 2:22:26 PM UTC+5:30, R.I.Pienaar wrote: > > Between the activemq instances you have networkConnector one for topic > and one for queue. > > I would add a 2nd networkConnector in the xm

Re: [mcollective-users] Use mCollective geographically

2017-03-04 Thread rakare2015
By the way any idea with configuring federation in RabbitMQ for this case? I attempted that as well but am not getting response back from all the servers when I scale up to multiple remote sites. Regards Ravi On Saturday, March 4, 2017 at 2:29:16 PM UTC+5:30, rakar...@gmail.com wrote: > > Ok

Re: [mcollective-users] Use mCollective geographically

2017-03-05 Thread rakare2015
I agree people will make mistakes and that could affect all nodes. But its very limited access for this mcollective in my environment and also I have to manage all the servers in one place. Today I attempted to do mco rpc rpcutil ping 5745 servers using --nodes with --dt=120 by changing the co

Re: [mcollective-users] Use mCollective geographically

2017-03-05 Thread rakare2015
Hmm Okay. If I want to use NATS then I have upgrade my puppet with version 4 and ruby to 1.9.3. But RHEL5 doesn't have ruby 1.9.3 and I want to use the same for all kind of OS like Linux, Windows, Solaris. Regards Ravi On Monday, March 6, 2017 at 11:56:48 AM UTC+5:30, R.I.Pienaar wrote: > > H

Re: [mcollective-users] Use mCollective geographically

2017-03-06 Thread rakare2015
Problem is I dont see any logs in activemq for that time being for slow down. Otherwise I would have given you the that also. I can enable debug mode on activemq but am getting huge log details and not able to capture it properly. If I make separate kahadb for each remote site on central active

Re: [mcollective-users] Use mCollective geographically

2017-03-06 Thread rakare2015
Ok np. See if you can get me about that pls and that would be very helpful. So you are saying nothing I can do except running batch wise :( Regards Ravi On Monday, March 6, 2017 at 2:51:29 PM UTC+5:30, R.I.Pienaar wrote: > > > > On Mon, Mar 6, 2017, at 09:36, rakar...@gmail.com wrote: > > Prob

[mcollective-users] publish message from servers to client

2017-03-07 Thread rakare2015
Hi, I want to publish a message from one of mcollective server to queue and client has to fetch that message. Am trying below which didn't work, >From server I tried with below code, == module MCollective class Message def body result = {:testing =>

Re: [mcollective-users] publish message from servers to client

2017-03-07 Thread rakare2015
Ok got it. Thanks On Tuesday, March 7, 2017 at 4:02:12 PM UTC+5:30, R.I.Pienaar wrote: > > > > On Tue, Mar 7, 2017, at 11:28, Ravi Kumar wrote: > > Is there any client available to achieve this in ruby? > > > > On Tue, Mar 7, 2017 at 3:48 PM, R.I.Pienaar > wrote: > > > > > > > > > > > On

[mcollective-users] Re: Use mCollective geographically

2017-03-08 Thread rakare2015
Thanks let me try the same On Wednesday, March 8, 2017 at 5:08:44 AM UTC+5:30, seabos wrote: > > So just a thought here...When you're dealing with geographically > distributed nodes, at least in the case of RMQ you can run into TCP > timeouts/truncation that can occur on long running TCP connec

[mcollective-users] sudden onconnection fail error on mcollective client log

2017-03-08 Thread rakare2015
Hi, My mcollective environment was running fine and all of sudden I started seeing "on_connectfail" error on mcollective client log file. But when I checked on the central activemq broker its running which is configured with network of brokers. But when I check on activemq log fine I found be

[mcollective-users] Re: sudden onconnection fail error on mcollective client log

2017-03-08 Thread rakare2015
Additionally was seeing below message as well, 2017-03-08 20:50:49,891 | WARN | Failed to add Connection central-infra->remote-site-2-9277-1489027421352-323:1 due to javax.jms.InvalidClientIDException: Broker: central-infra - Client: site2-queues1_remote-site-2_inbound_central-infra already co

[mcollective-users] mco ping vs rpcutil ping

2017-03-08 Thread rakare2015
Hi, I know the mco ping is very low level network test which broadcast message to all servers even if we use identify and direct addressing enable. But rpcutil ping will send send message to the filtered server only. When we have huge number of servers like 50k+ then if someone running mco ping

[mcollective-users] Understanding about direct addressing mode

2017-03-09 Thread rakare2015
Hi, I just want to understand about direct addressing mode vs broadcast mode. I believe when we use direct addressing mode whatever mco query we are running it will not do broadcast instead it will reach the particular server. But how this works with based on facts filter. Correct if am wrong.

[mcollective-users] mco rpc vs mco

2017-03-10 Thread rakare2015
Hi, Just to understand what would be difference between run mco commands with the direct agents like "mco shell -I 'uname -a' " and with rpc like "mco rpc --agent shell --action run --argument command=whomai". Is there any performance specific relation either mcollective side or middleware si

[mcollective-users] make use of registrationmonitor discovery

2017-03-10 Thread rakare2015
I have registration meta configured and have the inventory detail of all of my servers, so I would like to use the https://github.com/puppetlabs/mcollective-plugins/tree/master/agent/registration-monitor/discovery discovery to perform the facts based filters to avoid broadcast discovery each

Re: [mcollective-users] make use of registrationmonitor discovery

2017-03-10 Thread rakare2015
Hey, No I did not make any change on that file. I just simply downloaded .rb and .ddl files from https://raw.githubusercontent.com/puppetlabs/mcollective-plugins/master/agent/registration-monitor/discovery/ and tried. On Saturday, March 11, 2017 at 11:03:37 AM UTC+5:30, R.I.Pienaar wrote:

Re: [mcollective-users] make use of registrationmonitor discovery

2017-03-10 Thread rakare2015
Here is that server inventory data file, = --- identity: testserver123 facts: uptime: 383 days memoryfree: 5.68 GB title: main ps: ps -ef memoryfree_mb: "5816.89" lsbrelease: ":base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4

Re: [mcollective-users] make use of registrationmonitor discovery

2017-03-11 Thread rakare2015
I tried as you said and below the registrationmonitor.rb content. # discovers against directory of yaml files instead of the traditional network discovery # the input must be a directory of files as written out by the registration-monitor plugin require 'mcollect

[mcollective-users] mco query with nested facts filter

2017-03-11 Thread rakare2015
Hi, In the latest facter version I see the facts value format is nested like below, system_uptime => {"uptime"=>"415 days", "days"=>415, "seconds"=>35903914, "hours"=>9973} But how can we do this facts based filter with mco query when we have nested format. For example if I want to perform fa

Re: [mcollective-users] mco query with nested facts filter

2017-03-11 Thread rakare2015
hmmm. so you meant to say there is no way to filter with nested facts right? But found something on https://tickets.puppetlabs.com/browse/MCO-363 and not sure if this something what am expecting. Thanks Ravi On Saturday, March 11, 2017 at 11:25:24 PM UTC+5:30, R.I.Pienaar wrote: > > > > On

Re: [mcollective-users] mco query with nested facts filter

2017-03-11 Thread rakare2015
ohh.. Then I may have to downgrade the facter to little lower version make use of all the facts through mcollective. Do you think any solution for this with the latest facts version with nested structure? If not then the only way to downgrade it. Regards Ravi On Sunday, March 12, 2017 at 11:

Re: [mcollective-users] mco query with nested facts filter

2017-03-11 Thread rakare2015
Am using facter version 2.4.6 and it says invalid option. [root@mco-console ~]# facter --show-legacy invalid option: --show-legacy [root@mco-console ~]# facter --version 2.4.6 [root@mco-console ~]# Regards Ravi On Sunday, March 12, 2017 at 12:36:08 PM UTC+5:30, michael.smith wrote: > > The lat

Re: [mcollective-users] make use of registrationmonitor discovery

2017-03-13 Thread rakare2015
Looks like its not working with compound filters, # mco rpc rpcutil ping --do /data/mcollective_inventory/ --dm registrationmonitor -S "osfamily=Solaris and hostname=/gard/" Discovering hosts using the mc method for 2 second(s) 26 And the same working with --nodes and it says, The rpc appl

[mcollective-users] timeout for mco command when middleware is down

2017-03-19 Thread rakare2015
Hi, Yesterday I faced an issues. My ActiveMQ middleware went down and the mco command triggered with timeout value 10. But there is onconnect fail error on mco client log due to middleware down and mco command was keep connecting until I press CTRL+C. Is there any to run the mco command with s

Re: [mcollective-users] timeout for mco command when middleware is down

2017-03-20 Thread rakare2015
Oh ok. I have the below timeout tunable limits on my both client and server cfg files and am using stom 1.3.2. plugin.activemq.heartbeat_interval = 30 plugin.activemq.timeout = 5 plugin.activemq.max_hbread_fails = 2 plugin.activemq.max_hbrlck_fails = 0 plugin.activemq.stomp_1_0_fallback = 0 So

Re: [mcollective-users] mco query with nested facts filter

2017-03-20 Thread rakare2015
yes please. Michael, By downgrading I can get facts in non nested structure and can be used to with mco query facts filter. On Wednesday, March 15, 2017 at 11:58:37 PM UTC+5:30, R.I.Pienaar wrote: > > > > On Wed, Mar 15, 2017, at 18:48, Michael Smith wrote: > > PUP-6040

Re: [mcollective-users] mco query with nested facts filter

2017-03-20 Thread rakare2015
in facter 1.6.7, we are getting facts output as below, uptime => 135 days uptime_days => 135 uptime_hours => 3259 uptime_seconds => 11735064 so we can use this as facts filter in mco query. On Tuesday, March 21, 2017 at 10:31:08 AM UTC+5:30, michael.smith wrote: > > > > On Mon, Mar 20, 2017 at

[mcollective-users] mongodb registration not working properly

2017-03-25 Thread rakare2015
Hi, I configured monogdb registration and when the registration receive messages getting below error, D, [2017-03-25T13:34:45.379511 #21619] DEBUG -- : registration.rb:100:in `handlemsg' Updated data for host server61273.domain.com with id in 0.0200910568237305s E, [2017-03-25T13:34:45.379731

[mcollective-users] Re: mongodb registration not working properly

2017-03-25 Thread rakare2015
I suspect with the below lines in registration.rb, doc_id = nil begin doc = @coll.find_and_modify(:query => by_fqdn, :update => {'$set' => req}, :new => true) doc_id = doc['_id'] rescue Mongo::OperationFailure doc_id = @coll.insert(req, {:safe

[mcollective-users] Re: mongodb registration not working properly

2017-03-25 Thread rakare2015
I managed to get this working without using begin and rescue in that block, since mongodb collection find_update is not throwing any exception when its not find any data for the server. but am using JSON formatted registration and due to this mongo discovery with facts filter is not working. s

Re: [mcollective-users] timeout for mco command when middleware is down

2017-03-30 Thread rakare2015
Please can someone provide the recommend tunable parameters for both client and server.cfg for both STOMP and ActiveMQ. On Tuesday, March 21, 2017 at 9:34:14 AM UTC+5:30, rakar...@gmail.com wrote: > > Oh ok. > > I have the below timeout tunable limits on my both client and server cfg > files

[mcollective-users] run mco query with back slash (\) on windows

2017-04-15 Thread rakare2015
Hi, Whenever I run mco query with single blackslash(\) mcollective sends as double backslash (\\). For example am running below mco query, mco shell "dir C:\temp\testing" -I testwinserver124 but i see below format on mcollective audit log file, [2017-04-15 11:04:13 UTC] reqid=0d2cf654da895a8

[mcollective-users] Re: run mco query with back slash (\) on windows

2017-04-21 Thread rakare2015
Any help please.. On Saturday, April 15, 2017 at 4:36:53 PM UTC+5:30, rakar...@gmail.com wrote: > > Hi, > > Whenever I run mco query with single blackslash(\) mcollective sends as > double backslash (\\). > > For example am running below mco query, > > mco shell "dir C:\temp\testing" -I testwi

[mcollective-users] Run mco queries as selected user

2017-05-16 Thread rakare2015
Currently am running mcollective instances as root user and when I run commands which require to run as particular then am using "su - -c ''" with mco command. Is there any way to pass the user along with mco shell agent, so mcollective shell agent will login as the given user and run the comm

[mcollective-users] MCollective discovery method using mysql

2017-10-04 Thread rakare2015
Our infra is huge and we have configured the network of brokers using ActiveMQ with one central middleware to manage the servers from single mco console server. Since we are using mcollective based discovery method it causes so many issues. we are collecting the registration data daily, so woul

[mcollective-users] Mcollective ActiveMQ session thread management issue

2018-01-12 Thread rakare2015
I have configured Mcollective using ActiveMQ middleware where it has network of brokers. Like central AMQ is connected with multiple locations of ActiveMQ servers and have around 20k servers connected with them. The problem is when I run mco query against all 20K servers it works perfect, but a

[mcollective-users] Re: Mcollective ActiveMQ session thread management issue

2018-01-12 Thread rakare2015
Due to this issue unable to run multiple mco commands when another mco command running against huge number of servers. Please let me know if you are looking any config details and will sharing you whatever you are looking. On Friday, January 12, 2018 at 3:13:40 PM UTC+5:30, rakar...@gmail.com

[mcollective-users] Re: Mcollective ActiveMQ session thread management issue

2018-01-13 Thread rakare2015
Basically this occurs for every mco commands which runs for 100+ servers and as soon as the execution completed for these 100+ servers then everything backs to normal. When I check the thread dump in Central ActiveMQ and noticed that some locks are happening. On Friday, January 12, 2018 at 3:3

[mcollective-users] MCollective Message Decode in Python

2018-01-21 Thread rakare2015
Hi, Am trying to use different consumer which can consume messages which is being called with reply-to option and the consumer which am trying to use is stompest (https://github.com/nikipore/stompest) which is Python based. Am able to configure this and its receiving the message but unable to

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-21 Thread rakare2015
The data is not corrupted, since I was able to get the data using Ruby by importing mcollective and using native mcollective decode. And this what the code I tried in Python, def run(self): client = Stomp(self.config) yield client.connect() headers = {StompSpec.ACK_HEADER: StompSpec

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-21 Thread rakare2015
I tried with the method which you suggested and getting below error when consumer is trying to consume the message. 'utf-8' codec can't decode byte 0x9a in position 0: invalid start byte Any idea please. On Sunday, January 21, 2018 at 6:52:57 PM UTC+5:30, rakar...@gmail.com wrote: > The data

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-24 Thread rakare2015
Ok managed to process little bit but struggling with the format, Looks like the Stompest consumer frame is returning the data in dict format as below, {'command': 'MESSAGE', 'body': b'\x04\x08{\x0b:\tbody"n\x04\x08{\x08:\tdata{\n:\x0bstdout"\x14output-data\n:\rexitcodei\x00:\x0bstderr"\x00:\x0b

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-24 Thread rakare2015
Am not using any security plugin, securityprovider = psk plugin.psk = unset On Wednesday, January 24, 2018 at 11:32:52 PM UTC+5:30, R.I.Pienaar wrote: > yes, you need body and decode that > > what security plugin do you use? > > > On Wed, 24 Jan 2018, at 18:38, rakar...@gmail.com wrote: >

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-24 Thread rakare2015
And also I have enabled the debug of mcollective client and printed the resp value on client.rb and noticed that it has @payload on MCollective::Message and the mcollective gets data from this payload instead if body value. If that's the case am worrying why am not getting this payload data in

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-24 Thread rakare2015
My bad :( If you don't mind can you please clarify below queries. If I use either of OpenSSL or AES security then can't it be possible to decode it in python? Is there any asynchronous ruby stomp consumer available like Python Stompest(which will consume n number of messages parallel)? Sinc

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-24 Thread rakare2015
I agree. Can you suggest any better tuning for ActiveMQ to make Ruby STOMP consumer to consume message more fast. Right now it consumes around 2000 messages per 1-2mins of time, but am looking consumer where it can receive around 1000 messages in seconds. On Thursday, January 25, 2018 at 12:2

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-24 Thread rakare2015
Oh that's really great! If you don't mind could you please share the ActiveMQ.xml config details on the central ActiveMQ, So I can also try with the same config to see if that helps. On Thursday, January 25, 2018 at 1:45:11 AM UTC+5:30, R.I.Pienaar wrote: > > > > On Wed, 24 Jan 2018, at 21:10,

Re: [mcollective-users] MCollective Message Decode in Python

2018-01-24 Thread rakare2015
Ok, if we have too many machines connected with ActiveMQ then we can't solve this problem at all right? On Thursday, January 25, 2018 at 1:52:41 AM UTC+5:30, R.I.Pienaar wrote: > > > > On Wed, 24 Jan 2018, at 21:20, rakar...@gmail.com wrote: > > Oh that's really great! If you don't mind could