Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Prompt Commands for Metaframe XP FR2

Status
Not open for further replies.

rcpis

Technical User
Feb 6, 2002
26
US
Does anyone have a listing of command prompt commands for MetaFrame XP FR2? I'm specifically looking for a command that will show past session information by user. I had this command at one time but didn't write it down [sad]. It shows the dates the user logged in along with time. Thanks in advance for the help.
 
No. Query user just gives you info of a user that is logged in. This was a command, entered at the command prompt, where one of the parameters was the user name, and it would display the dates that user has logged in to the Citrix server and how long they were logged on for. The user doesn't have to be logged in for the admin to get the info.
 
The only thing I can think of is that this would be a variant of the query command.

I don't know of any MetaFrame command that could get historical data, except by running a script against the Summary Database. The LHC only contains current data, and static farm settings from the Data Store, ie disconnected and active sessions, but not past sessions. Even the RM local database only holds current RM settings.

I will watch this thread in case anyone has the answer!

Hope this is helpful

CitrixEngineer@yahoo.co.uk
 
When I do a "query farm /online" on one of my servers, it returns no list. Yet the server list in the CMC is accurate, so I think it does connect to the Data Store properly. This server is the only one running FR3.

When I run the same command on any other server in the farm, it returns the list I would expect to see, the same as the list in the CMC. These other servers are FR2.

Does anyone know why the discrepency between the CMC result of the command on the FR3 server? Does this command query the datastore or the LocalHostCache? More info would be appreciated. Thanks.
 
Sorry I missed your response; The answer is that the command-line tools query the LHC - they do not go through the ODBC drivers to your DS. So in this case, either the updates had not got through to the LHC in time, or the LHC is corrupted. Running dsmaint recreatelhc should fix it.

I hope this is helpful.

 
Another question about the CLI. Does "queryhr" query the lhc or the data store? About 4 weeks ago I removed a server from our XP farm. It still shows up in the results of "query farm" but, if I run "queryhr", there is no host record in that list for the ex-farm server. The MCM does not show the ex-farm server in its server list either. Which result is an accurate reflection of the state of our farm?

Our servers reboot every night, and it appears that they connect to the DS without any problems. I ran dsmaint refreshlhc on one of current farm servers and it still returns the same results as above.
 
If you removed a server from the farm, then the host record will be deleted (!). The Data Store is not a historical database - that is what the RM Summary Database is for.

Did you mean you tred the recreatelhc option, as opposed to refreshlhc? In what other ways does that server differ to other servers in the farm?

I don't know the queryhr command - is it a Citrix command? I tried this in my test lab, where I have FR2 and FR3 servers, and none recognised it.

A nightly reboot schedule seems a little excessive - once a week should be enough.

Hope this helps

 
Thanks for your help – This from Advanced Concepts: “After a failed installation, compare the list of servers in the Citrix Management Console to the list of servers returned by queryhr. Use the command queryhr –d hostID to remove any servers listed in the queryhr results that are not listed in the Citrix Management Console”. Queryhr is found in the Debug tools on the MFXP CD.

Here is some more information about our farm: One Farm, one Zone, all servers with Win2k SP2. Fourteen servers with MFXP FR2, two servers running with MFXP FR3. One of the FR3 is dedicated to management – it is also the Zone Data Collector and Farm Metric Server. We log into and run CMC from this server.

When I use qfarm, I get a list of all the active servers, plus the one I removed from the farm. When I use qfarm /online, I get a list of only the active servers. When I run queryhr, I get a list of all the active servers and their host id’s. It appears that there is an inconsistency in the data store that I would like to clean up using queryhr, but queryhr does not return a host id for the phantom server, so I don’t know how to make it go away. I get these same results no matter which server I run the commands from.

The nightly reboot has come about because of a problem we are having with user profiles hanging up on the server. The reboot deletes some of the profiles, while the others are removed manually. That’s next on "The List".
 
I don't know enough about the debug commands to comment with any accuracy, but I ran Filemon at the same time as queryhr and qfarm. Both seem to query the LHC and the RM Subsystem.

I would speculate that the two queries differ subtly, hence the phantom information you're seeing. That would at least explain why all servers show the same information - and indicate that there is no problem updating the LHC.

You can inspect imalhc.mdb and RMLocalDatabase.mdb in Access. If the server record exists in one or other database, that might confirm my speculation.

It looks like, in answer to the original question, that the commands query the LHC and the Resource Manager Local database.

Hope this helps

 
Thanks for the information. I found a command in FR3 - dscheck - that we ran with /clean option. This has resolved the inconsistency.
 
rcpis - did you find this already? You can use AUDITLOG if you have enabled logon/logoff accounting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top