Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Accessing the kernel via telnet
Accessing the kernel via telnet [message #800867] Fri, 17 February 2012 16:11 Go to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Hi.

Another admin type question: I am trying to access my running Virgo kernel via telnet. Although the connection succeeds and I get the osgi> prompt, I do no seem to be able to run any useful commands.

Any vsh command returns exception
gogo: CommandNotFoundException: Command not found: vsh


and any standard OSGi command (such as list etc.) return a "No repository admin service available" response, even though bundle com.springsource.server.management.remote is active.

Any help?

TIA,
B.
Re: Accessing the kernel via telnet [message #800873 is a reply to message #800867] Fri, 17 February 2012 16:17 Go to previous messageGo to next message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
Hi,

Which version of Virgo Kernel do you use? 3.5.0.M02 - the latest development build, or 3.0.2 - the latest released version?

Regards,
Lazar
Re: Accessing the kernel via telnet [message #800874 is a reply to message #800873] Fri, 17 February 2012 16:18 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Sorry, I should have mentioned that. I am using 3.0.0.RELEASE (running a little behind)
Re: Accessing the kernel via telnet [message #800891 is a reply to message #800874] Fri, 17 February 2012 16:48 Go to previous messageGo to next message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
In this version you should use vsh with prefix "equinox:". The same is valid for the list command. The console in RELEASE 3.0.0 uses the Gogo shell, which uses the notion of scopes - this is the prefix before the column. You may have commands with the same name but different scopes - this is the case with the list command.
As for the vsh command - you most probably call it in the shell to the kernel region. It is not present there - it is in the user region and you should open a connection to the shell in the user region and call the command there.
Re: Accessing the kernel via telnet [message #802032 is a reply to message #800891] Sun, 19 February 2012 09:37 Go to previous messageGo to next message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
One more detail - you can see the list of all available commands using the command "equinox:help -all" or "man -all.
Re: Accessing the kernel via telnet [message #811474 is a reply to message #802032] Fri, 02 March 2012 11:40 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Thank you very much!

Using the "equinox:" prefix handles my problems.

Cheerio,
B.
Re: Accessing the kernel via telnet [message #824391 is a reply to message #811474] Mon, 19 March 2012 16:13 Go to previous messageGo to next message
James Gartner is currently offline James GartnerFriend
Messages: 30
Registered: March 2012
Member
Hey folks -- I am having the same issue (using jetty server 3.0.2-RELEASE), but both vsh and equinox:vsh both show the:
gogo: CommandNotFoundException: Command not found: equinox:vsh

I am telnet'd in to localhost, and I have:
osgi.console=2401
set in the org.eclipse.virgo.kern.userregion.properties.
Am I missing something?
Re: Accessing the kernel via telnet [message #824410 is a reply to message #824391] Mon, 19 March 2012 16:33 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Hi James.

I sometimes find I have to issue my command twice, the first time it fails with the error you mention and the second time it works. Weird and time consuming, but when you need the information... Smile

HTH,
B.
Re: Accessing the kernel via telnet [message #824424 is a reply to message #824410] Mon, 19 March 2012 16:49 Go to previous messageGo to next message
James Gartner is currently offline James GartnerFriend
Messages: 30
Registered: March 2012
Member
Thanks Barbara -- I tried a few times in a row, and nothing.
There is nothing for vsh or equinox:vsh in the help, the commands don't work -- just seems to not be there.

I tried the TOMCAT version (I'm using the jetty release normally) thinking that perhaps the vsh stuff wasn't installed with jetty, but no luck.

Re: Accessing the kernel via telnet [message #824426 is a reply to message #824424] Mon, 19 March 2012 16:52 Go to previous messageGo to next message
James Gartner is currently offline James GartnerFriend
Messages: 30
Registered: March 2012
Member
Also the clhas, clload and clexport commands show the same CommandNotFoundExsceptions...
Re: Accessing the kernel via telnet [message #824586 is a reply to message #824426] Mon, 19 March 2012 21:09 Go to previous message
James Gartner is currently offline James GartnerFriend
Messages: 30
Registered: March 2012
Member
Looks like I WAS NOT looking at the user region (2502 where the kernel was 2401)
Previous Topic:a problem about dependencies.
Next Topic:Possible caching issue?
Goto Forum:
  


Current Time: Wed Apr 24 22:57:20 GMT 2024

Powered by FUDForum. Page generated in 0.03036 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top