First Steps with Cassia help!

58 views
Skip to first unread message

kerberos

unread,
Apr 10, 2011, 12:50:27 PM4/10/11
to Cassia Users
Hello,

I'm trying to use Cassia to monitor and maintain remote windows xp and
windows 7 machines running other applications.
Basically I need to display what processes are running and identify
specific ones.
Reset the application.
Restart the machine
Monitor for external ODBC connections made from the remote machine
(check if connection is up constantly)
Read the Event log for each selected machine.

I'm starting but need some guidance if possible.


I got :

Imports Cassia
Imports MSTSCLib


Public Class Form2

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Dim manager As ITerminalServicesManager = New
TerminalServicesManager()
Using server As ITerminalServer =
manager.GetRemoteServer("29db")
server.Open()

For Each session As ITerminalServicesSession In
server.GetSessions()

Label1.Text = session.UserAccount.ToString
Label2.Text = session.SessionId.ToString
Label3.Text = session.ConnectionState.ToString
Label4.Text = session.LoginTime.ToString

Next
End Using


End Sub
End Class

I'm trying to simply display all information into labels
unsuccessfully

Questions:

1 How do I send my user/password for the given server?
2 Do you have any VB.net samples available?
3 Can I have multiple TS connections from the same application?

Thanks for any help,

Best,

Kerb

Dan Ports

unread,
Apr 10, 2011, 6:22:52 PM4/10/11
to cassia...@googlegroups.com
Responses inline.

Dan

Are you getting a particular exception?
 

Questions:

1 How do I send my user/password for the given server?

You'd need to use impersonation for this. See issue 32 and the sample program attached to issue 34.
 
2 Do you have any VB.net samples available?

Not currently. Is there a particular task you're having trouble with in VB.NET?

3 Can I have multiple TS connections from the same application?

If by that question you mean having multiple ITerminalServer instances active, certainly you can have multiple connections.
 

Thanks for any help,

Best,

Kerb

--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To post to this group, send email to cassia...@googlegroups.com.
To unsubscribe from this group, send email to cassia-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cassia-users?hl=en.


kerberos

unread,
Apr 12, 2011, 2:52:06 PM4/12/11
to Cassia Users
Hello Dan,
Thanks for your reply,

I'm not getting any error, simply it doesnt connect to any host I
insert.

I'm trying to show specific processes on a list box,
shutdown one specifically if needed by a button.
and, the more complex task, monitor if from the remote machine the
ODBC connections are up or being droppred.
A shutdown button and a restart button for the remote machine.
I'm already connecting by using AxMsRdpClient71.Connect()

About the multiple connections I meant some kind of tab conrol that
will host (each) a connection.

Thansk for your reply I will look into this references and see how can
I accomodate to my VB.Net reality.

Best,

Ker
> 32<http://code.google.com/p/cassia/issues/detail?id=32>and the sample
> program attached to issue
> 34 <http://code.google.com/p/cassia/issues/detail?id=34#c7>.
>
> > 2 Do you have any VB.net samples available?
>
> Not currently. Is there a particular task you're having trouble with in
> VB.NET?
>
> 3 Can I have multiple TS connections from the same application?
>
>
>
> If by that question you mean having multiple ITerminalServer instances
> active, certainly you can have multiple connections.
>
>
>
>
>
> > Thanks for any help,
>
> > Best,
>
> > Kerb
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Cassia Users" group.
> > To post to this group, send email to cassia...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cassia-users...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/cassia-users?hl=en.- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Dan Ports

unread,
Apr 13, 2011, 6:44:50 AM4/13/11
to cassia...@googlegroups.com
Kerb,

It sounds like you are trying to use the RDP ActiveX control to connect to a remote system. This is a bit outside the scope of Cassia, which is concerned with the API that allows you to monitor RDP connections on the server (and doesn't actually establish new RDP connections).

There are a few resources I can suggest for your ActiveX control question:
  • The source code for a project like Terminals which uses that ActiveX control extensively;
  • The source for the automated integration tests in the Cassia trunk which use the ActiveX control;
  • and, of course, a more general Q&A site like StackOverflow, which would allow more brains to ponder your questions.
Dan
Reply all
Reply to author
Forward
0 new messages