I am learning Redis right now and one of the first things I did was trying to interactively issue commands to an online Redis server: http://try.redis.io/
The FLUSHALL command is well documented here: http://redis.io/commands/flushall and is also referenced in this SO answer.
But when I try to issue it, it is simply not recognized:
My question: Why? Where has it disappeared? After all, the documentation says it is:
"Available since 1.0.0."
The web interface at try.redis.io, while executing against a real Redis database, offers only a subset of the actual commands. Because the database is shared by all users of the interface, some commands (FLUSHALL for example) are disabled in it.
Related
I'm using redis to store the userId as a key and the socketId as the value. What's more important is that the userId doesn't change, but the socketId constantly changes. So I want to edit the socketId value inside redis, but I'm not sure what node_redis command to use. I'm currently just editing by using .set(userId, mostRecentSocketId).
In addition, I haven't found a good node_redis API anywhere with a complete list of commands. I briefly looked at the redis-commands package, but it still doesn't seem to have a full list of complete commands.
Any help is appreciated; thanks in advance :)
The full list of Redis commands can be found at https://redis.io/commands. After finding a proper command it wouldn't be hard to find how is it proxied in binding ("api") you use.
Upd. To make it clear: you have Redis Server, its commands are listed at the doc I provided. Then you have redis-commands - it's a library for working with redis (I called it a "binding"). My point was that redis-commands may have not all the commands that redis-server can handle, and also the names of some commands can differ a bit. Some other bindings can offer slightly different set of commands. So it's better to examine the list of commands that Redis Server handles, and then select a binding that allowes calling that command (I guess all the bindings have set method)
Is it possibile to know where solr finished to index my data?
I work with solrcloud 4.9.0 and zookeeper for conf file manager.
I have the data.import file, but in it there is only where the indexing is STARTED not when it ended.
You can get the dataimporthandler status using:
<MY_SERVER>/solr/dataimport?command=status
Reading the status you can understand if the import is still running. A similar procedure (with a different url) is advised in "Solr in Action" book in order to check if a backup is still running.
Another option would involve the use of listeners as advised here.
I also use the /dataimport?command=status way to check if the job is done or not, and while it works, sometimes I get the impression it is a bit flaky.
There are listeners you can use: see here I would really like to use those, but of course you need to write java code and handle your jar in solr etc. So it is a bit of a PITA
I have an application from a third party that writes to the Oracle database. One component of the application returns no data given particular parameters, while the other component of the application does return data with those same parameters. Nobody has the source code to this application, but it can be seen that the database has the proper information in it.
The misbehaving component gets ORA-01403 returned from the oracle database server, which means no data found, but can be related to a syntax error, as seen by a packet sniffer I installed.
I want to see the differences in the queries that the different components of the application actually generate.
Would also like to run these queries on the command line or in some other database viewer to see what gets returned.
How can I monitor the database with a trace that actually shows the queries being made? I would also like to isolate these by IP address or source.
Using Oracle 10g Enterprise
I found this worked well for an AWS Oracle RDS instance. I ran the tcpdump from the linux instances connecting to the db...
tcpdump tcp port 1521 -s 0 -l -w - | strings | perl -e '
while(<>) { chomp; next if /^[^ ]+[ ]*$/;
if(/^(SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP|ALTER)/i) {
if (defined $q) { print "$q\n"; }
$q=$_;
} else {
$_ =~ s/^[ \t]+//; $q.=" $_";
}
}'
Hope that helps someone else.
IIRC, TOAD will do what you want.
Additionally, there is a free trial - http://www.quest.com/toad-for-oracle/software-downloads.aspx
There are other interesting downloads (search oracle free toad) but I can't be sure of their legitimacy.
If your client connects directly to the database without any middle-tier layer, then you have two pretty much straightforward options.
First of all, figure out required session's ID using v$session view, and then either find your query in v$sql/v$sql_text by its hash value (you can check description of each in the docs), or enable session-level sql trace (1) (2) and get your queries in a plain text trace file.
If you have a middle-tier then things get slightly more complicated but only in terms of figuring out the session you need to trace. You can always enable system-wide tracing though.
A little late to the party but I ran into this problem and didn't want to installe something on the database server for a one off use, I wound up using wireshark; the queries were sent in plaintext and perfectly readable.
In RavenDB a curl command on ravenServer.com/databases/myApp/indexes
returns a nice list of all index definitions for the database.
For my disaster recovery scenario, is there a http command that can put them all back. Or will I have to parse each one out and issue the command outlined in the documentation?
My app is using the HttpApi and not using .Net to create indexes, or I would just push them all that way.
No, you have to create them one at a time.
Note that you can use the smuggler tool, which will do this for you.
It is a command line app that comes with RavenDB.
I am looking for information on using mstscax.dll in VB. The goal is to create a utility that logs into a remote service in the same manner as remote desktop. However, my utility is not required to show the desktop.
I have a series of commands that I will start off with that will look for users, reset logins, shadow, and message. I have been using a batch file on my RDP to perform these functions, but we are already looking for more functionality and power than what the batch commands can offer.
I am googling 'mstscax.dll' but the results have been less than satisfactory although I continue to search. Does anyone have any good references? Is this even going to be possible?
If you are looking to list or perform operations on remote desktop sessions, you might find the Cassia library helpful. The library can list users logged on to a server, disconnect or logoff sessions, shadow sessions, and display message boxes in a session, among other things. (Note that the shadowing functionality requires a pre-release version of the library available on the project's build server -- use the artifacts link.)
I think you're supposed to use the msrdp.ocx control rather than that dll, though I've personally never used either so can't say for sure.
Edit: Add link
Here's a codeproject article about automating RDP:
http://www.codeproject.com/KB/cs/RemoteDesktop_CSharpNET.aspx