Access an instance through a console

VNC or SPICE is used to view the console output of an instance, regardless of whether or not the console log has output. This allows relaying keyboard and mouse activity to and from an instance.

There are three remote console access methods commonly used with OpenStack:

novnc
An in-browser VNC client implemented using HTML5 Canvas and WebSockets
spice
A complete in-browser client solution for interaction with virtualized instances
xvpvnc
A Java client offering console access to an instance

Example:

To access an instance through a remote console, run the following command:

$ openstack console url show INSTANCE_NAME --xvpvnc

The command returns a URL from which you can access your instance:

+--------+------------------------------------------------------------------------------+
| Type   | Url                                                                          |
+--------+------------------------------------------------------------------------------+
| xvpvnc | http://192.168.5.96:6081/console?token=c83ae3a3-15c4-4890-8d45-aefb494a8d6c  |
+--------+------------------------------------------------------------------------------+

--xvpvnc can be replaced by any of the above values as connection types.

When using SPICE to view the console of an instance, a browser plugin can be used directly on the instance page, or the openstack console url show command can be used with it, as well, by returning a token-authenticated address, as in the example above.

 

 

转自: http://docs.openstack.org/user-guide/cli-access-instance-through-a-console.html

#SceneScript Reference SceneScript is follows the ECMAScript 2018 specification, so you can utilize all functionalities from ECMAScript that you would also find in similar languages such as JavaScript. This is very useful as you can make use of various helpful classes. For example, allows you to access the current date and time, allows you to access various mathematical utility functions.DateMath This page only covers all additions that SceneScript adds to make working with wallpapers possible. #Globals SceneScript introduces a handful of globals which you can access at any point in your code. Global Description engine Access to general features of the application. class.IEngine input Input related data, mainly the mouse cursor. class.IInput thisScene The currently loaded scene wallpaper. classIScene thisLayer The layer this script has been loaded on. class.ILayer thisObject The object this script belongs to. class.IThisPropertyObject console Access the console log for debugging purposes. class.IConsole shared Empty by default, allows you to share data between multiple scripts. class.Shared #Events SceneScript uses an event system that allows you to run specific code whenever certain events take place. Most notably, the event is most commonly used to execute SceneScript code at every frame that Wallpaper Engine calculates. The event is good for running code once when the wallpaper is first loaded and the event allows you to react to changes to user properties of your wallpaper. Additionally, there are a handful of events which related to mouse movement and mouse input which you can incorporate into your wallpaper.updateinitapplyUserPropertiescursor Event Description init This initialization function will be called once after the object it belongs to has been created. update This event function will be called every frame for all scripts that export it. destroy This event function will be called just before the object it belongs to gets destroyed. resizeScreen This function will be called every time the wallpaper resizes because of a change to the current resolution. applyUserProperties This event function will be called once initially when the wallpaper is loaded and whenever any user properties are being adjusted by the user. cursorEnter This event function will be called when the cursor enters the bounds of the object. cursorLeave This event function will be called when the cursor leaves the bounds of the object. cursorMove This event function will be called when the cursor has been moved. cursorDown This event function will be called when the cursor is being pressed down on an object. cursorUp This event function will be called when the cursor is being released over an object. cursorClick This event function will be called when the cursor has been pressed and released on the same object. mediaStatusChanged This event function will be called when the media integration is turned on or off by the user. mediaPlaybackChanged This event function will be called when the users starts, stops or pauses media. mediaPropertiesChanged This event function will be called when the properties of the currently playing media change. mediaThumbnailChanged This event function will be called when the thumbnail of the currently playing media changes. mediaTimelineChanged This event function will be called when the current time of the playing media changes and is only provided by certain applications. #Classes All components of Wallpaper Engine are provided with a fitting class so that you can access everything programmatically. The following list contains all relevant classes introduced by SceneScript: Class Description AnimationEvent This object describes an animation event that has been fired from a timeline or puppet warp animation. AudioBuffers Provides access to the left and right audio spectrum values and their combined average for audio visualization purposes. CameraTransforms Objects of this class describe the camera orientation and position. CursorEvent Provides information about the cursor position during cursor events. IAnimation This class represents a timeline property animation. IAnimationLayer This class represents a puppet warp or 3D model animation layer. IConsole You can access this interface anywhere in your SceneScript code through the global object to interact with the console log.console IEffect Provides access to image effects used on image layers. IEffectLayer Base class for image and text layers. IEngine Provides general information about the user device and the running wallpaper. IImageLayer This class provides access to functions specific to image layers. ITextLayer This class provides access to functions specific to text layers. IModelLayer This class provides access to functions specific to 3D model layers. IInput Provides access to input related data, mainly the mouse cursor. ILayer Provides access to data related to a layer. ILocalStorage Provides access to the local storage functionality. IMaterial Provides access to dynamic properties of materials / shader properties. IParticleSystem Provides access to particle systems and lets you modify their playback state. IParticleSystemInstance Provides access to instance modifiers for particle systems. You can use this to adjust details of a particle system dynamically. IScene Provides access to properties of the currently loaded scene. ISoundLayer Provides access functions specific to sound layers. ITextureAnimation This class represents a texture animation. IVideoTexture This class represents a video texture animation. Mat4 Utility class used for creating a 4 dimensional identity matrix. MediaPlaybackEvent Media integration event, fired when the user starts, stops or pauses media. MediaPropertiesEvent Media integration event, fired when the properties of the current media session are changing. MediaStatusEvent Media integration event, fired when the user turns the media integration on or off. MediaThumbnailEvent Media integration event, fired when the thumbnail pertaining to the current media changes. MediaTimelineEvent Optional media integration event, fired irregularly when the current time of the media session changes. Shared Related to the global object which you may use to share data between multiple scripts.shared Vec2 Utility class which holds a 2 dimensional value pair: and .xy Vec3 Utility class which holds a 3 dimensional value pair: , and .xyz #Modules Wallpaper Engine also provides some modules which can be used to access certain utility functions. These can be helpful to easily implement certain use-cases. Module Description WEColor Module which provides utility functions related to color manipulation. WEMath Module which provides utility functions related to general mathematical functions. WEVector Module which provides utility functions related to working with vectors.我让你写的代码是在wallpaer引擎内使用的,这是他的语言参考
08-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值