Summary of the invention
For the problem in correlation technique, the present invention proposes a kind of long-distance monitoring method based on Android platform and device.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of long-distance monitoring method based on Android platform is provided.
This method for supervising comprises:
The network connection information of pre-configured monitored platform;
Network connection information persistence is preserved to the database of Android client;
Android client accesses monitored platform, monitors monitored platform and/or manages.
Wherein, monitored platform is windows platform.
Wherein, Android client accesses monitored platform, comprising:
Android client is by the WMI interface of the monitored platform of access to netwoks.
Wherein, when Android client passes through the WMI interface of the monitored platform of access to netwoks, need to carry out certification to access, after certification is passed through, set up Session between Android client with monitored platform and be connected.
Wherein, monitored platform is monitored and/or is managed, comprising:
Order by WQL language is sent to the WMI interface of monitored platform thus monitors monitored platform and/or manage by Androdi client.
According to a further aspect in the invention, additionally provide a kind of long-distance monitorng device based on Android platform, this device comprises:
Configuration module, for the network connection information of pre-configured monitored platform;
Memory module, for preserving network connection information persistence to the database of Android client;
Control module, accesses monitored platform for Android client, monitors monitored platform and/or manages.
Wherein, monitored platform is windows platform.
Wherein, control module comprises further:
Addressed location, for the WMI interface of Android client by the monitored platform of access to netwoks.
Wherein, this device can also comprise:
Set up module, for when Android client passes through the WMI interface of the monitored platform of access to netwoks, need to carry out certification to access, after certification is passed through, set up Session between Android client with monitored platform and be connected.
Wherein, control module comprises further:
Transmitting element, is sent to the WMI interface of monitored platform for Androdi client by the order by WQL language thus monitors monitored platform and/or manage.
The present invention by above-mentioned technological means can realize need not any agency and plug-in unit to monitored server implementing monitoring, thus can economization cost effectively, can monitor monitored server anywhere or anytime, greatly provide the safety and reliability of system, make monitoring more flexible.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of long-distance monitoring method based on Android platform.
As shown in Figure 1, comprise according to the long-distance monitoring method based on Android platform of the embodiment of the present invention:
Step S101, the network connection information of pre-configured monitored platform;
Step S103, preserves network connection information persistence to the database of Android client;
Step S105, Android client accesses monitored platform, monitors monitored platform and/or manages.
Wherein, monitored platform is can be windows platform.
Wherein, Android client accesses monitored platform, can be conducted interviews by following manner:
Android client is by the WMI interface of the monitored platform of access to netwoks.
Wherein, when Android client passes through the WMI interface of the monitored platform of access to netwoks, need to carry out certification to access, after certification is passed through, set up Session between Android client with monitored platform and be connected.
Wherein, Android client is monitored monitored platform and/or is managed, and comprising:
Order by WQL language is sent to the WMI interface of monitored platform thus monitors monitored platform and/or manage by Androdi client.
Technical scheme for a more clear understanding of the present invention, sets forth with a specific embodiment below.
Please refer to Fig. 2 and Fig. 3, Fig. 2 is the structural representation of present system, and Fig. 3 is the flow chart of this specific embodiment.The present invention mainly studies and carries out telemanagement and monitoring by mobile terminals such as powerful mobile Internet mobile phones to windows operating system.The major technique be applied to is: Android intelligent platform, 3G network technology, RTP, java far call WMI technology.Emphasis is mainly the java application be mounted on Android intelligent platform, by java far call WMI interface, completes the monitor and managment to long-range windows computer.The present invention adopts single application model, without the need for service end, does not also need to install any Agent and plug-in unit on monitored windows computer.Just can complete telemanagement and monitoring.
1. main application technology point.
The present invention is based on java far call WMI technology, Android Mobile Development technology, java calls and performs WQL query language technology;
Mobile communication 3G radio network technique;
HTTP Internet protocol;
The present invention is based on java far call WMI technology;
Java calls and performs WQL query language technology.
2. the principle of the invention and function are described in detail.
First-selected guarantee mobile device and windows computer network to be accessed mutually.
After Android client application start, user needs to preserve in the long-range windows computer network link information configuration that will monitor.Manually can input, also can import in batches.
Network connection information imports to, and is persisted in the database of Android client and preserves.
Android client application can be carried out login according to the network connection information imported to monitored windows computer and connect.Mainly conducted interviews by the WMI interface of network to windows computer.
WMI receives log-on message and will carry out carrying out certification to logining connection, certification by after can return Session link information to Android client.And the Session that connects.
Android client can be sent to WMI interface the statement of the WQL language of monitor and managment, after interface receives, if monitoring returns corresponding specific format data.If management will perform corresponding instruction complete operation, return operating result.
Android client resolution data is saved in database, then is shown by the UI assembly of Android.
According to embodiments of the invention, additionally provide a kind of long-distance monitorng device based on Android platform, as shown in Figure 4, this device comprises:
Configuration module 41, for the network connection information of pre-configured monitored platform;
Memory module 42, for preserving network connection information persistence to the database of Android client;
Control module 43, accesses monitored platform for Android client, monitors monitored platform and/or manages.
Wherein, in this device, monitored platform can be windows platform.
Wherein, control module 43 comprises further:
Addressed location (not shown), for the WMI interface of Android client by the monitored platform of access to netwoks.
Wherein, this device can also comprise:
Set up module (not shown), for when Android client passes through the WMI interface of the monitored platform of access to netwoks, need to carry out certification to access, after certification is passed through, set up Session between Android client with monitored platform and be connected.
Wherein, control module comprises further:
Transmitting element (not shown), is sent to the WMI interface of monitored platform for Androdi client by the order by WQL language thus monitors monitored platform and/or manage.
In sum, by means of technique scheme of the present invention, the present invention can realize need not any agency and plug-in unit to monitored server implementing monitoring, thus can economization cost effectively, can monitor monitored server anywhere or anytime, greatly provide the safety and reliability of system, make monitoring more flexible.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.