CN109426505B - Software installation method and device, electronic equipment and storage medium - Google Patents

Software installation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109426505B
CN109426505B CN201710701969.5A CN201710701969A CN109426505B CN 109426505 B CN109426505 B CN 109426505B CN 201710701969 A CN201710701969 A CN 201710701969A CN 109426505 B CN109426505 B CN 109426505B
Authority
CN
China
Prior art keywords
software
installation
hardware device
asset data
data model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710701969.5A
Other languages
Chinese (zh)
Other versions
CN109426505A (en
Inventor
袁雁南
李响
段然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710701969.5A priority Critical patent/CN109426505B/en
Publication of CN109426505A publication Critical patent/CN109426505A/en
Application granted granted Critical
Publication of CN109426505B publication Critical patent/CN109426505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a software installation method, a software installation device, electronic equipment and a storage medium, which are used for solving the problems of un-decoupling of software and hardware resource waste. The method comprises the following steps: determining first software to be installed and a first quantity of the first software to be installed according to a software installation request; determining each candidate hardware device supporting installation of the first software according to the first software and installation information supported by the remaining resources of each hardware device, namely second software supporting installation; and selecting at least one target hardware device in each candidate hardware device according to the first number and the second number of the second software in the installation information, and installing the first software of the first number in the at least one target hardware device. The second software and the second number of the second software which are installed in the support of the residual resources of each hardware device are stored, namely the mapping relation of the software and the hardware is stored, so that the decoupling of the software and the hardware is realized, and the resource waste of the hardware device is reduced.

Description

Software installation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of technologies, and in particular, to a software installation method and apparatus, an electronic device, and a storage medium.
Background
The goal of Network Function Virtualization (NFV) is to replace traditional proprietary dedicated Network element devices in telecommunication networks by Information Technology (IT) devices based on industry standards for computing, storage, and Network switching. On one hand, IT equipment based on industry standards has low cost, which can save huge investment cost for operators, and on the other hand, open Application Programming Interface (API) can help operators to obtain more and more flexible network capabilities. The NFV decouples the functions of the software and hardware resources, abstracts the functions of the software, ensures that the functions of the software do not depend on special hardware any more, can be fully and flexibly shared, realizes the rapid development and deployment of new services, and performs automatic deployment, elastic expansion, fault isolation, self-healing and the like based on actual service requirements.
In recent years, the functions of some software in the telecommunication network cannot be realized on the IT equipment of standard computing, storage and network, and can only be realized on the traditional private special network element equipment.
In the prior art, when an operator wants to use the partial software which can only be implemented on the special network element device, the operator needs to purchase the software provided by the manufacturer and also needs to purchase the hardware device which can implement the function of the partial software and is provided by the manufacturer. The network management system stores the hardware Information and the software Information in two completely independent Information Object Classes (IOCs), and the software Information and the hardware Information do not have any relation or mapping relation.
However, some hardware devices may have some software installed but may have remaining resources and still have other software installed. However, because there is no link or mapping relationship between the software information and the hardware information, the software and the hardware are not decoupled, and the operator does not know how many remaining resources of the hardware device, nor does the operator know which software and how many software the remaining resources of the hardware device can support to install, thereby causing waste of hardware device resources.
Disclosure of Invention
The embodiment of the invention discloses a software installation method, a software installation device, electronic equipment and a storage medium, which are used for solving the problem of hardware equipment resource waste caused by the fact that software and hardware are not decoupled in the prior art.
In order to achieve the above object, an embodiment of the present invention discloses a software installation method, including:
determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
determining each candidate hardware device supporting installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation;
and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device.
Further, the installation information supported by the remaining resources of each hardware device is stored in a first preset field in the first asset data model;
the first asset data model is: network element and hardware oriented asset data models or extended asset data models;
if the first asset data model is: the asset data model is oriented to network units and hardware, and the first preset field is an existing field or an extended field in an information object IOC (input object class) of an Inventory Unit; or the like, or, alternatively,
if the first asset data model is: the first preset field is an existing field in the IOC of the Inventory Unit NE or an extended field.
Further, if the request carries information of third software and information of a third quantity, the determining, according to the request for software installation, the first software to be installed, and the installing the first quantity of the first software include:
determining the third software carried in the request as first software to be installed, and determining the third quantity carried in the request as the first quantity of the first software.
Further, if the request carries information of a first service parameter and information of the number of users, where the first service parameter includes a wireless standard, the determining, according to the request for software installation, a first software to be installed, and installing the first number of the first software includes:
determining first software to be installed according to the first service parameters carried in the request and the corresponding relation between each second software and the second service parameters;
and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
Further, the first service parameter further includes: system bandwidth and/or number of antennas.
Further, the corresponding relation between each second software and the second service parameter is stored in a second preset field in the second asset data model;
the second asset data model is an asset data model facing network units and hardware or an extended asset data model;
if the second asset data model is: the asset data model facing the network unit and the hardware, wherein the second preset field is as follows: existing fields or extended fields in an information object class IOC of an Inventory Unit; or the like, or, alternatively,
if the second asset data model is: the extended asset data model, the second preset field is: existing fields or extended fields in the IOC of the Inventory Unit SW; or
If the second asset data model is: the extended asset data model, the second preset field is: existing fields or extended fields in the IOC of the Inventory Unit SW.
Further, the method further comprises:
and updating the saved installation information supported by the residual resources of the target hardware equipment according to the number of the installed software in the target hardware equipment aiming at each target hardware equipment.
The embodiment of the invention discloses a software installation device, which comprises:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
the determining module is further configured to determine, according to the first software and the saved installation information supported by the remaining resources of each hardware device, each candidate hardware device that supports installation of the first software, where the installation information includes second software that supports installation; selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information;
an installation module to install the first quantity of first software in the at least one target hardware device.
The embodiment of the invention discloses electronic equipment, which comprises: a memory and a processor;
the processor is used for reading the program in the memory and executing the following processes: determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
determining each candidate hardware device supporting installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation;
and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device.
Further, if the request carries information of third software and information of a third quantity, the processor is specifically configured to determine the third software carried in the request as the first software to be installed, and determine the third quantity carried in the request as the first quantity of the first software.
Further, if the request carries information of a first service parameter and information of the number of users, where the first service parameter includes a wireless standard, the processor is specifically configured to determine first software to be installed according to the first service parameter carried in the request and a stored correspondence between each second software and a second service parameter; and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
Further, the processor is further configured to, for each target hardware device, update the saved installation information supported by the remaining resources of the target hardware device according to the number of installed software in the target hardware device.
The embodiment of the invention discloses an electronic device, which comprises: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of the installation method of the software.
The embodiment of the invention discloses a computer readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the electronic device is caused to execute the steps of the software installation method.
The embodiment of the invention discloses a software installation method, a software installation device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining first software to be installed and a first quantity of the first software to be installed according to a software installation request; determining each candidate hardware device supporting installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation; and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device. In the embodiment of the invention, the installation information supported by the remaining resources of each hardware device, namely the second software supporting installation and the second quantity of the second software, is stored, namely the mapping relation between the software information and the hardware information is stored, so that the decoupling of software and hardware is realized, and after the first software of the first quantity to be installed is determined, at least one target hardware device supporting the installation of the first software of the first quantity can be determined according to the installation information, so that the remaining resources of the hardware device are reasonably utilized, and the resource waste of the hardware device is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an installation process of software according to embodiment 1 of the present invention;
fig. 2 is a structural diagram of a software installation apparatus provided in embodiment 6 of the present invention;
fig. 3 is an electronic device according to embodiment 7 of the present invention;
fig. 4 is an electronic device provided in embodiment 8 of the present invention.
Detailed Description
In order to achieve decoupling of software and hardware and improve resource utilization rate of hardware equipment, embodiments of the present invention provide a software installation method, an apparatus, an electronic device, and a storage medium.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of an installation process of software according to embodiment 1 of the present invention, where the installation process includes the following steps:
s101: according to a request for software installation, first software to be installed and a first number of installed first software are determined.
The software installation method provided by the embodiment of the invention is applied to a network management system of an operator, and particularly, the network management system is installed on electronic equipment which can be a server of the operator.
When the operator receives the customer's needs, or the adjustment based on its own network, it is necessary to install some software on the hardware device. Firstly, software to be installed needs to be determined, then hardware equipment for installing the software is determined, and finally the software is installed on the hardware equipment.
The server may receive a request for software installation, and determine, based on the request for software installation, a first software to be installed, and a first quantity of the first software to be installed.
When determining the first software and the first quantity, the server may determine according to the information of the software and the quantity carried in the request, or according to the information of the service parameters carried in the request.
S102: and determining each candidate hardware device supporting the installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting the installation.
The server stores installation information supported by the remaining resources of each hardware device, and the installation information comprises second software supporting installation.
After the first software is determined, each candidate hardware device supporting installation of the first software may be determined according to the first software and the stored installation information supported by the remaining resources of each hardware device. Specifically, the first software may be matched with a second software that is stored and that is installed in support of the remaining resources of each hardware device, and a hardware device corresponding to the second software matched with the first software may be used as a candidate hardware device. The hardware device may be a baseband processing board. And matching the first software with the second software, wherein the first software is the same as the second software.
S103: and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device.
The installation information of the remaining resource support of each hardware device saved in the server further includes a second number of second software supporting installation. The second software supported by the candidate hardware devices to be installed is the same as the determined first software, that is, each candidate hardware device supports to install the first software, and the second number supported by each candidate hardware device to install the first software may be the same as or different from the first number.
After the first quantity of the first software is determined, at least one target hardware device may be selected from each candidate hardware device according to the first quantity and the second quantity of the second software included in the installation information, that is, at least one target hardware device may be selected from each candidate hardware device according to the first quantity and the second quantity of the second software, that is, the first software, which is supported to be installed by the remaining resources of each candidate hardware device.
The selection of the at least one target hardware device in each candidate hardware device may be arbitrarily selected, or may be selected by sorting from large to small according to the second number of the second software supported by the remaining resources, as long as the sum of the selected second numbers of the second software supported by the at least one target hardware device for installation is not less than the first number.
When at least one target hardware device is selected, the first amount of first software may be installed in the at least one target hardware device. Installing software on corresponding hardware devices may also be referred to as instantiation of the software, the number of installed software may be referred to as the number of instances of the software, and a specific installation process belongs to the prior art and is not described in detail in the embodiments of the present invention.
In the embodiment of the invention, the installation information supported by the remaining resources of each hardware device, namely the second software supporting installation and the second quantity of the second software, is stored, namely the mapping relation between the software information and the hardware information is stored, so that the decoupling of software and hardware is realized, and after the first software of the first quantity to be installed is determined, at least one target hardware device supporting the installation of the first software of the first quantity can be determined according to the installation information, so that the remaining resources of the hardware device are reasonably utilized, and the resource waste of the hardware device is reduced.
Example 2:
on the basis of the above embodiment, in the embodiment of the present invention, the installation information supported by the remaining resources of each hardware device is stored in a first preset field in the first asset data model;
the first asset data model may be a network element and hardware oriented asset data model or an extended asset data model.
If the first asset data model is: the first field may be an existing field in the IOC of an Inventory Unit in the network element and hardware oriented asset data model, or an extended field. If an extended field, the name of the extended field may be, for example, Usage.
If the first asset data model is: the first preset field may be an existing field in the IOC of the Inventory Unit NE in the extended asset data model, or an extended field. If an extended field, the name of the extended field may be, for example, Usage.
The format of the installation information supported by the remaining resources of each hardware device, that is, the format of the second software and the second quantity of the second software that are supported by the remaining resources of each hardware device and are stored in the first preset field, may be as shown in table 1 below:
identification information of hardware device Information of software Number of
Device 1 LTE baseband processing unit 1.0 3
Device 2 DU software 1.0 6
Device N …… ……
TABLE 1
As shown in table 1, it can be seen that the device 1 supports software for installing 3 LTE baseband processing boards 1.0, and the device 2 supports software for installing 6 DU software 1.0. According to the software which is supported and installed by the remaining resources of each hardware device shown in table 1, candidate hardware devices which support the installation of the first software can be determined, and according to the number of the software which is supported and installed by the remaining resources of each candidate hardware device shown in table 1, at least one target hardware device which supports the installation of the first software with the first number is determined, and the sum of the number of the second software which is supported and installed by the at least one target hardware device is not less than the first number.
The server may further store installation information supported by all resources of each hardware device, and specifically, the installation information supported by all resources of each hardware device may be stored in a third field in a third asset data model, where the installation information includes second software supported and installed by all resources and a fourth quantity of the second software.
The third asset data model may be a network element and hardware oriented asset data model or an extended asset data model.
If the third asset data model is: the third preset field is an asset data model facing to network units and hardware: existing fields or extended fields in the IOC of the Inventory Unit in the network element and hardware oriented asset data model. In the case of an extended field, the name of the extended field may be, for example, supplemental Information.
If the third asset data model is: the extended asset data model, the third preset field is: existing fields in the IOC of the Inventory Unit SW in the extended asset data model or extended fields. In the case of an extended field, the name of the extended field may be, for example, SW Capability.
If the third asset data model is: the extended asset data model, the third preset field is: existing fields in the IOC of the Inventory Unit SW in the extended asset data model or extended fields. If the field is an existing field, for example, the field may be an additional Information field.
In selecting at least one target hardware device in each candidate hardware device, a fourth amount of the second software installed may be supported by all resources of each candidate hardware device may be considered. Specifically, at least one target hardware device may be selected from each candidate hardware device according to the determined first number, the second number of the second software included in the installation information, and the fourth number of the second software that all resources of each candidate hardware device support installation.
Further, whether the second number is the same as the fourth number or not may be recognized, and candidate hardware devices corresponding to the second number different from the second number may be preferentially selected as the target hardware devices, or candidate hardware devices corresponding to the second number that is the same as the second number may be preferentially selected as the target hardware devices.
Generally, all the resources of each hardware device can support one or more types of installed software, and if all the resources of the hardware device support two types of installed software, once one of the software is installed on the hardware device, the other software is considered to be no longer able to be installed on the hardware device. If the hardware device has the software installed thereon, it may be determined that the remaining resources of the hardware device support the installed second software according to the installed software, that is, the installed software is used as the second software that the hardware device supports the installation.
Example 3:
on the basis of the foregoing embodiments, in an embodiment of the present invention, if the request carries information of third software and information of a third quantity, the determining, according to the request for software installation, first software to be installed, and installing the first quantity of the first software includes:
determining the third software carried in the request as first software to be installed, and determining the third quantity carried in the request as the first quantity of the first software.
Or in this embodiment of the present invention, if the request carries information of a first service parameter and information of a user number, where the first service parameter includes a wireless standard, the determining, according to the request for software installation, a first software to be installed, and installing a first number of the first software includes:
determining first software to be installed according to the first service parameters carried in the request and the corresponding relation between each second software and the second service parameters;
and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
In the embodiment of the invention, the server stores the corresponding relation between each piece of software and the second service parameter.
When the request carries information of a first service parameter, where the first service parameter includes a wireless standard, and when determining first software to be installed according to a software installation request, the first service parameter, that is, the wireless standard, carried in the request may be specifically matched with a second service parameter, that is, a wireless standard, corresponding to each piece of stored software, and the software corresponding to the second service parameter matched with the first service parameter is determined as the first software to be installed. The first service parameter and the second service parameter are matched to be the same.
The server stores the maximum number of users corresponding to each software, generally, the communication protocol specifies the maximum number of users corresponding to each software, and the user can store the maximum number of users corresponding to each software in the server according to the specification of the protocol.
The software installation request carries the number of users, and when the first number of the first software is determined to be installed according to the number of users carried in the software installation request and the stored maximum number of users corresponding to the first software, the quotient of the number of the carried users and the maximum number of users can be determined, and an integer not less than the quotient is taken as the determined first number.
For example, the number of users carried in the request is 700, the maximum number of users corresponding to the first software is 200, and in order to ensure that each user can use the first software, the determined first number is 4.
In order to make the determined first software more accurate, in an embodiment of the present invention, the first service parameter may further include: system bandwidth and/or number of antennas.
Preferably, the first service parameter includes a wireless system, a system bandwidth and the number of antennas.
When the first service parameter includes the wireless standard, the system bandwidth, and the number of antennas, it may be determined that the first software to be installed is determined according to the wireless standard, the system bandwidth, and the number of antennas carried in the request, and the stored corresponding relationship between each software and the wireless standard, the system bandwidth, and the number of antennas.
Although the service parameters include the wireless system, the system bandwidth and the number of antennas when determining the first software to be installed, the service parameters are not limited to this in practical applications.
Example 4:
on the basis of the above embodiments, in the embodiment of the present invention, the corresponding relationship between each second software and the second service parameter is stored in a second preset field in the second asset data model;
the second asset data model may be an asset data model that may be network element and hardware oriented or an extended asset data model.
If the second asset data model is: the second preset field may be an existing field or an extended field in the IOC of the Inventory Unit in the asset data model oriented to the network element and the hardware, and if the second preset field is an extended field, the name of the extended field may be, for example, an additional Information.
If the second asset data model is: the second preset field may be an existing field in the IOC of the Inventory Unit SW in the extended asset data model or an extended field. In the case of an extended field, the name of the extended field may be, for example, SW Capability.
If the second asset data model is: the second preset field may be an existing field in the IOC of the Inventory Unit SW in the extended asset data model or an extended field. If the field is an existing field, for example, the field may be an additional Information field.
The format of the corresponding relationship between each second software and the second service parameter stored in the second preset field may be as shown in table 2 below:
Figure BDA0001380554090000131
TABLE 2
As shown in table 2, it can be seen that the service parameter corresponding to the software of the LTE baseband processing unit 1.0 is LTE without limitation, the system bandwidth is 200KH, the number of antennas is 2, the content in table 2 is only to illustrate the corresponding relationship between the software and the service parameter, in a specific embodiment, the content in the service parameter is different, the system bandwidth may be, for example, 200KMz, 1.6MHz, and 20MHz, and the number of antennas may be, for example, 2, 4, and 8. According to the corresponding relationship between each piece of software and the service parameter shown in table 2, the first piece of software to be installed can be determined.
Example 5:
in order to make the determined target hardware device more accurate, on the basis of the foregoing embodiments, in an embodiment of the present invention, the method further includes:
and updating the saved installation information supported by the residual resources of the target hardware equipment according to the number of the installed software in the target hardware equipment aiming at each target hardware equipment.
In the embodiment of the present invention, after the first software of the first number is installed on at least one target hardware, the installation information supported by the remaining resources stored in the target hardware may also be updated for each target hardware device, specifically, the installation information supported by the remaining resources stored may be updated according to the number of installed software in the target hardware device, and mainly, the number in the installation information is updated.
Specifically, the number of the supported installed software is updated according to the currently saved second number of the software that each target hardware device supports installation and the installed fifth number of each first software, and if each target hardware device installs the fifth number of the first software, the updated second number is the difference between the currently saved second number and the fifth number. The sum of the fifth number for each candidate hardware device is equal to the first number.
The installation information supported by the remaining resources of each hardware device may also be the installation information supported by the remaining resources of each hardware device, which is sent to the server of the operator by the electronic device in the manufacturer that provides software and hardware for the operator, and the server of the operator receives and stores the installation information supported by the remaining resources of each hardware device sent by the electronic device of the manufacturer.
The electronic device of the manufacturer can send installation information supported by the remaining resources of the hardware device to the server of the operator according to a set period; the method may include that when the electronic device of the manufacturer recognizes that the remaining resources of the hardware device change, the changed installation information supported by the remaining resources of each hardware device is sent to a server of the operator; or after the server of the operator determines the first software to be installed, sending a query request of the remaining resources of the hardware device to the electronic device of the manufacturer, and sending installation information supported by the remaining resources of each hardware device to the server of the operator by the electronic device of the manufacturer.
The manufacturer's electronic device may send installation information supported by the remaining resources of each hardware device to the operator's server through the Os-Ma-Nfvo interface, and the operator's server may send a query request for the remaining resources of the hardware device to the manufacturer's electronic device through the Itf-N interface.
Example 6:
on the basis of the above embodiments, based on the same inventive concept, the embodiments of the present invention further provide a software installation apparatus, and because the principle of the software installation apparatus for solving the problem is similar to the software installation method, the implementation of the software installation apparatus in the embodiments may refer to the implementation of the method, and repeated details are not repeated.
Fig. 2 is a structural diagram of a software installation apparatus provided in embodiment 6 of the present invention, where the apparatus includes:
a determining module 21, configured to determine, according to a request for software installation, first software to be installed and a first number of the first software to be installed;
the determining module 21 is further configured to determine, according to the first software and the saved installation information supported by the remaining resources of each hardware device, each candidate hardware device that supports installation of the first software, where the installation information includes second software that supports installation; selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information;
an installation module 22, configured to install the first amount of first software in the at least one target hardware device.
If the request carries information of third software and information of a third quantity, the determining module 21 is specifically configured to determine the third software carried in the request as the first software to be installed, and determine the third quantity carried in the request as the first quantity of the first software.
If the request carries information of a first service parameter and information of the number of users, where the first service parameter includes a wireless standard, the determining module 21 is specifically configured to determine first software to be installed according to the first service parameter carried in the request and a stored correspondence between each second software and a second service parameter; and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
The device further comprises:
and the updating module is used for updating the stored installation information supported by the residual resources of the target hardware equipment according to the number of the installed software in the target hardware equipment aiming at each target hardware equipment.
Example 7:
on the basis of the above embodiments, based on the same inventive concept, an embodiment of the present invention further provides an electronic device, and since a principle of solving the problem of the electronic device is similar to a software installation method, implementation of the electronic device in the embodiment may refer to implementation of the method, and repeated parts are not described again.
Fig. 3 is an electronic device provided in embodiment 7 of the present invention, where the electronic device includes: a memory 31 and a processor 32;
in fig. 3, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 32 and various circuits of memory represented by memory 31 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The processor 32 is responsible for managing the bus architecture and general processing, and the memory 31 may store data used by the processor 32 in performing operations.
Alternatively, the processor 32 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).
The processor 32 is configured to read the program in the memory 31, and execute the following processes: determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
determining each candidate hardware device supporting installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation;
and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device.
If the request carries information of third software and information of a third quantity, the processor 32 is specifically configured to determine the third software carried in the request as the first software to be installed, and determine the third quantity carried in the request as the first quantity of the first software.
If the request carries information of a first service parameter and information of the number of users, where the first service parameter includes a wireless standard, the processor 32 is specifically configured to determine first software to be installed according to the first service parameter carried in the request and a stored correspondence between each second software and a second service parameter; and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
The processor 32 is further configured to update, for each target hardware device, the saved installation information supported by the remaining resources of the target hardware device according to the number of the installed software in the target hardware device.
Example 8:
fig. 4 is an electronic device provided in embodiment 8 of the present invention, including: the system comprises a processor 41, a communication interface 42, a memory 43 and a communication bus 44, wherein the processor 41, the communication interface 42 and the memory 43 complete mutual communication through the communication bus 44;
the memory 43 has stored therein a computer program which, when executed by the processor 41, causes the processor 41 to perform the steps of:
determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
determining each candidate hardware device supporting installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation;
and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device.
The electronic device provided by the embodiment of the invention can be a desktop computer, a portable computer, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a network side device and the like.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
A communication interface 42 for communication between the above-mentioned electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 9:
an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the program causes the electronic device to perform the following steps:
determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
determining each candidate hardware device supporting installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation;
and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
The embodiment of the invention discloses a software installation method, a software installation device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining first software to be installed and a first quantity of the first software to be installed according to a software installation request; determining each candidate hardware device supporting installation of the first software according to the first software and the saved installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation; and selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information, and installing the first software of the first quantity in the at least one target hardware device. In the embodiment of the invention, the installation information supported by the remaining resources of each hardware device, namely the second software supporting installation and the second quantity of the second software, is stored, namely the mapping relation between the software information and the hardware information is stored, so that the decoupling of software and hardware is realized, and after the first software of the first quantity to be installed is determined, at least one target hardware device supporting the installation of the first software of the first quantity can be determined according to the installation information, so that the remaining resources of the hardware device are reasonably utilized, and the resource waste of the hardware device is reduced.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (12)

1. A method of installing software, the method comprising:
determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
determining each candidate hardware device supporting installation of the first software according to the first software and the stored installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation, and the hardware device is a special network element device of a telecommunication network;
selecting at least one target hardware device from each candidate hardware device according to the first number and a second number of second software included in the installation information, and installing the first software of the first number in the at least one target hardware device;
wherein, if the request carries information of a first service parameter and information of the number of users, wherein the first service parameter includes a wireless standard, the determining a first software to be installed according to the request for software installation, and the installing the first number of the first software includes:
determining first software to be installed according to the first service parameters carried in the request and the corresponding relation between each second software and the second service parameters;
and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
2. The method of claim 1, wherein installation information for remaining resource support for each hardware device is stored in a first preset field in a first asset data model;
the first asset data model is: network element and hardware oriented asset data models or extended asset data models;
if the first asset data model is: the asset data model is oriented to network units and hardware, and the first preset field is an existing field or an extended field in an information object IOC of an Inventory Unit in the asset data model; or the like, or, alternatively,
if the first asset data model is: the first preset field is an existing field in the IOC of an Inventory Unit NE in the extended asset data model or an extended field.
3. The method of claim 1, wherein if the request carries information of a third software and a third amount of information, the determining a first software to be installed according to the request for software installation, and installing the first amount of the first software comprises:
determining the third software carried in the request as first software to be installed, and determining the third quantity carried in the request as the first quantity of the first software.
4. The method of claim 1, wherein the first traffic parameter further comprises: system bandwidth and/or number of antennas.
5. The method of claim 1 or 4, wherein the correspondence of each second software to a second business parameter is stored in a second preset field in a second asset data model;
the second asset data model is an asset data model facing network units and hardware or an extended asset data model;
if the second asset data model is: the asset data model facing the network unit and the hardware, wherein the second preset field is as follows: existing fields or extended fields in an information object class IOC of an Inventory Unit in the asset data model; or the like, or, alternatively,
if the second asset data model is: the extended asset data model, the second preset field is: existing fields or extended fields in the IOC of an Inventory Unit SW in the extended asset data model; or
If the second asset data model is: the extended asset data model, the second preset field is: existing fields or extended fields in the IOC of the Inventory Unit SW.
6. The method of claim 1, wherein the method further comprises:
and updating the saved installation information supported by the residual resources of the target hardware equipment according to the number of the installed software in the target hardware equipment aiming at each target hardware equipment.
7. An apparatus for installing software, the apparatus comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
the determining module is further configured to determine, according to the first software and the saved installation information supported by the remaining resources of each hardware device, each candidate hardware device that supports installation of the first software, where the installation information includes second software that supports installation, and the hardware device is a dedicated network element device for a telecommunications network; selecting at least one target hardware device from each candidate hardware device according to the first quantity and a second quantity of second software included in the installation information;
an installation module to install the first quantity of first software in the at least one target hardware device;
if the request carries information of a first service parameter and information of the number of users, wherein the first service parameter comprises a wireless standard, the determining module is specifically configured to determine first software to be installed according to the first service parameter carried in the request and a corresponding relationship between each stored second software and each stored second service parameter; and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
8. An electronic device, characterized in that the electronic device comprises: a memory and a processor;
the processor is used for reading the program in the memory and executing the following processes: determining first software to be installed and a first quantity of the first software to be installed according to a software installation request;
determining each candidate hardware device supporting installation of the first software according to the first software and the stored installation information supported by the remaining resources of each hardware device, wherein the installation information comprises second software supporting installation, and the hardware device is a special network element device of a telecommunication network;
selecting at least one target hardware device from each candidate hardware device according to the first number and a second number of second software included in the installation information, and installing the first software of the first number in the at least one target hardware device;
the processor is specifically configured to determine first software to be installed according to the first service parameters carried in the request and a stored corresponding relationship between each second software and each second service parameter if the request carries information of the first service parameters and information of the number of users, wherein the first service parameters include a wireless standard; and determining the first quantity of the first software according to the user quantity and the pre-stored maximum user quantity corresponding to the first software.
9. The electronic device according to claim 8, wherein if the request carries information of a third software and a third amount of information, the processor is specifically configured to determine the third software carried in the request as the first software to be installed, and determine the third amount carried in the request as the first amount of the first software.
10. The electronic device of claim 8, wherein the processor is further configured to update, for each target hardware device, the saved installation information supported by the remaining resources of the target hardware device according to the number of software installed in the target hardware device.
11. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any of claims 1 to 6.
12. A computer-readable storage medium, storing a computer program executable by an electronic device, the program, when executed on the electronic device, causing the electronic device to perform the steps of the method of any of claims 1 to 6.
CN201710701969.5A 2017-08-16 2017-08-16 Software installation method and device, electronic equipment and storage medium Active CN109426505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710701969.5A CN109426505B (en) 2017-08-16 2017-08-16 Software installation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710701969.5A CN109426505B (en) 2017-08-16 2017-08-16 Software installation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109426505A CN109426505A (en) 2019-03-05
CN109426505B true CN109426505B (en) 2022-03-29

Family

ID=65497678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710701969.5A Active CN109426505B (en) 2017-08-16 2017-08-16 Software installation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109426505B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706147B (en) * 2019-09-29 2023-08-11 阿波罗智联(北京)科技有限公司 Image processing environment determination method, device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2004246692A1 (en) * 2003-06-04 2004-12-16 Electronic Data Systems Corporation System and method for remote systems management and reporting
CN103561055A (en) * 2013-10-11 2014-02-05 山东省计算中心 Web application automatic elastic extension method under cloud computing environment based on sessions
CN103918320A (en) * 2011-10-05 2014-07-09 高通股份有限公司 Systems and methods for management of background application events
CN105308568A (en) * 2013-06-09 2016-02-03 苹果公司 Dynamic adjustment of mobile device based on user activity
CN105718299A (en) * 2014-12-04 2016-06-29 中国移动通信集团广东有限公司 Virtual machine configuration method, device and system
CN105808341A (en) * 2014-12-29 2016-07-27 中国移动通信集团公司 Method, apparatus and system for scheduling resources
CN106095445A (en) * 2016-06-13 2016-11-09 北京金山安全软件有限公司 Driver installation method and device and terminal
CN106325998A (en) * 2015-06-30 2017-01-11 华为技术有限公司 Method and device for deploying application based on cloud computing
CN106980547A (en) * 2015-10-12 2017-07-25 计算系统公司 Expansible assets class in the monitoring system with common platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278708A1 (en) * 2004-06-15 2005-12-15 Dong Zhao Event management framework for network management application development

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2004246692A1 (en) * 2003-06-04 2004-12-16 Electronic Data Systems Corporation System and method for remote systems management and reporting
CN103918320A (en) * 2011-10-05 2014-07-09 高通股份有限公司 Systems and methods for management of background application events
CN105308568A (en) * 2013-06-09 2016-02-03 苹果公司 Dynamic adjustment of mobile device based on user activity
CN103561055A (en) * 2013-10-11 2014-02-05 山东省计算中心 Web application automatic elastic extension method under cloud computing environment based on sessions
CN105718299A (en) * 2014-12-04 2016-06-29 中国移动通信集团广东有限公司 Virtual machine configuration method, device and system
CN105808341A (en) * 2014-12-29 2016-07-27 中国移动通信集团公司 Method, apparatus and system for scheduling resources
CN106325998A (en) * 2015-06-30 2017-01-11 华为技术有限公司 Method and device for deploying application based on cloud computing
CN106980547A (en) * 2015-10-12 2017-07-25 计算系统公司 Expansible assets class in the monitoring system with common platform
CN106095445A (en) * 2016-06-13 2016-11-09 北京金山安全软件有限公司 Driver installation method and device and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Digital Asset Management on Cloud;Azure-Aws-google-Cloud;《https://secureanycloud.com/digital-asset-management-technical-support-cloud-help-azure-aws-opensource-cognosys/》;20160901;全文 *
服务器部署十大问题系列一:软件与硬件;weixin_33721344;《https://blog.csdn.net/weixin_33721344/article/details/90466166》;20170707;全文 *

Also Published As

Publication number Publication date
CN109426505A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN113127168A (en) Service distribution method, system, device, server and medium
CN107957888B (en) Application program gray scale upgrading method and device
CN104243531A (en) Data processing method, device and system
CN109426505B (en) Software installation method and device, electronic equipment and storage medium
CN107943532A (en) Live software upgrade package dissemination method, device, electronic equipment and storage medium
CN112527615B (en) Equipment determination method and device, electronic equipment and storage medium
CN108733536B (en) Monitoring management system and method
CN108009036B (en) Method for positioning operation causing data abnormity and server
CN107491700B (en) Data access method and equipment
CN110035496B (en) Cloud platform switching method and system and electronic equipment
CN112199132A (en) Page layout method and device
CN110381150B (en) Data processing method and device on block chain, electronic equipment and storage medium
CN107689969B (en) Method and device for determining cache strategy
CN115438020A (en) Database resource scheduling method, device, equipment and medium
CN109522118B (en) Service processing method, device, server and readable storage medium
WO2017206092A1 (en) Life cycle management method and management unit
CN113298397A (en) Information processing method and device
CN112241276B (en) Equipment upgrading method and device
CN109561406B (en) SIM card selection method, device, system, electronic equipment and medium
CN110543340A (en) Method, device, equipment and medium for determining password equipment corresponding to interface library
CN105204885A (en) Installation method and system of applications between cross-platform associated devices
CN108459940A (en) Application performance manages configuration information amending method, device and the electronic equipment of system
CN111107037B (en) Service triggering method and device
CN114615150B (en) Simulation network generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant