CN104216999B - A kind of file preparation method and device - Google Patents
A kind of file preparation method and device Download PDFInfo
- Publication number
- CN104216999B CN104216999B CN201410460783.1A CN201410460783A CN104216999B CN 104216999 B CN104216999 B CN 104216999B CN 201410460783 A CN201410460783 A CN 201410460783A CN 104216999 B CN104216999 B CN 104216999B
- Authority
- CN
- China
- Prior art keywords
- file
- terminal device
- access control
- server
- control address
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of file preparation method and device, server prestores the file of the machine serial number SN comprising terminal device in filename, the first file of the Media Access Control address comprising terminal device in whois lookup filename, in the case where server local does not find the first file, the second file is sent to terminal device, the Media Access Control address and SN of terminal device are obtained according to the second file, according to the Media Access Control address and SN of the terminal device of acquisition, the first file is obtained.Using the embodiment of the present invention, the SN of terminal device only need to be obtained ahead of time, label that the SN of terminal device only needs user to paste on the guarantee card of terminal device, terminal equipment mainframe etc. is obtained to check, the process operation of the relative Media Access Control address for obtaining terminal device is simple, the Media Access Control address of terminal device need not be obtained ahead of time, the file of the Media Access Control address comprising terminal device in filename can be also obtained.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of file preparation method and device.
Background technology
With the development of computer networking technology, MAC (the Media Access Control, medium of terminal device are utilized
Access control) address situation it is also more and more, for example, using terminal device MAC Address to installing terminal equipment operate be
System.
Set before using the MAC Address of terminal device to installing terminal equipment operating system, it is necessary to obtain terminal in advance
The file of the MAC Address in filename including at least terminal device is prestored in standby MAC Address, server, if in advance
Obtain less than terminal device MAC Address, then in server will not storage file name in comprise at least terminal device MAC Address
File.
During using the MAC Address of terminal device to installing terminal equipment operating system, due in the server
The file less than the MAC Address that terminal device is comprised at least in filename is searched, the behaviour that will be given tacit consent to installing terminal equipment one
Make system, the operating system of such as acquiescence is:Version is centos5.9 (SuSE) Linux OS, it is impossible in installation and filename
Including at least the operating system of the customization of the file association of the MAC Address of terminal device, the operating system of such as customization is:Version
For centos6.4 (SuSE) Linux OS.The operating system given tacit consent to installing terminal equipment can neither meet the requirement of user,
It is also possible to that the performance of terminal device can not be played.
In order to meet the requirement of user and play the performance of terminal device, it is necessary to the operation customized to installing terminal equipment
System, but the operating system of customization is installed, it is necessary to the MAC Address of terminal device is obtained ahead of time, server prestores text
The file of the MAC Address of terminal device is comprised at least in part name, the MAC Address for the terminal device for being fitted without operating system is obtained
Process it is comparatively laborious.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of file preparation method and device, there is no terminal in advance
In the case of the Media Access Control address of equipment, the medium access control that terminal device is comprised at least in filename can be also obtained
The file of address.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of file preparation method, applied to server, the clothes
Business device is connected with terminal equipment in communication, and methods described includes:
The first of the Media Access Control address of the terminal device is comprised at least in server local locating file name
File;
In the case where server local does not find first file, the second text is sent to the terminal device
Part, so that the terminal device performs the executable program in second file and obtains the medium access of the terminal device
Control to include the medium access control for obtaining the terminal device in address and machine serial number SN, second file
Address and SN executable program;
The Media Access Control address and the SN obtained according to the terminal device, obtains first file.
Preferably, the Media Access Control address and the SN obtained according to the terminal device, obtains institute
The first file is stated, including:
Receive the SN that the terminal device is sent;
According to the SN received, the SN received the 3rd file is comprised at least in server local locating file name;
The 3rd file that finds is sent to the terminal device, so that the terminal device is by the name of the 3rd file
Weigh and be named as the filename of the Media Access Control address obtained including at least the terminal device, so that by described the
Three file translations are first file;
Receive first file that the terminal device is uploaded.
Preferably, the Media Access Control address and the SN obtained according to the terminal device, obtains institute
The first file is stated, including:
Receive the Media Access Control address and the SN for the terminal device that the terminal device is sent;
According to the SN received, the SN received the 3rd file is comprised at least in server local locating file name;
According to the Media Access Control address received and the 3rd file found, first file is generated.
Preferably, after first file that the terminal device is uploaded is received, methods described also includes:
Delete the 3rd file in server.
Preferably, the Media Access Control address that receives of the basis and the 3rd file found, described the is generated
One file, including:
The title RNTO of 3rd file is comprised at least into the medium access control that the terminal device is obtained
The filename of address processed, so as to be first file by the 3rd file translations;
Or
The copy of the 3rd file is obtained, the title RNTO of the copy of the 3rd file is comprised at least described
The filename for the Media Access Control address that terminal device is obtained, so as to the copy of the 3rd file is converted into described
First file.
It is described applied to terminal device the embodiment of the invention discloses a kind of file preparation method to reach above-mentioned purpose
Terminal device is connected with server communication, and methods described includes:
Receive and include in the second file that the server is sent, second file for obtaining the terminal device
Media Access Control address and machine serial number SN executable program;
Perform the executable program in second file, obtain the terminal device Media Access Control address and
SN;
Obtained Media Access Control address and SN is sent to the server, so that the server is according to the end
The medium access control of the terminal device is comprised at least in Media Access Control address and SN that end equipment is sent, generation filename
First file of address processed.
It is described applied to terminal device the embodiment of the invention discloses a kind of file preparation method to reach above-mentioned purpose
Terminal device is connected with server communication, and methods described includes:
Receive and include in the second file that the server is sent, second file for obtaining the terminal device
Media Access Control address and machine serial number SN executable program;
Perform the executable program in second file, obtain the terminal device Media Access Control address and
SN;
Send obtained SN to the server so that the server in the server in locating file name extremely
Few the 3rd file for including the SN received;
The 3rd file that the reception server is sent;
According to the 3rd file received and the Media Access Control address of acquisition, comprised at least in generation filename
First file of the Media Access Control address of the terminal device;
First file is uploaded into the server.
Preferably, the 3rd file and the Media Access Control address of acquisition that the basis is received, generate file
The first file of the Media Access Control address of the terminal device is comprised at least in name, including:
The title RNTO of 3rd file is comprised at least into the medium access control that the terminal device is obtained
The filename of address processed, so as to be first file by the 3rd file translations.
To reach above-mentioned purpose, device, applied to server, the clothes are obtained the embodiment of the invention discloses a kind of file
Business device is connected with terminal equipment in communication, and described device includes:Ff module, file sending module and file obtain module,
The ff module, Jie for comprising at least the terminal device in server local locating file name
First file of matter accessing to control address;
The file sending module, for not finding described first in server local in the ff module
In the case of file, the second file is sent to the terminal device, so that the terminal device is performed in second file
Wrapped in executable program and the Media Access Control address and machine serial number SN for obtaining the terminal device, second file
Containing for obtaining the Media Access Control address of the terminal device and SN executable program;
The file obtains module, for the Media Access Control address that is obtained according to the terminal device and described
SN, obtains first file.
Preferably, the file obtains module, including:First receiving submodule, first search submodule, sending submodule
With the second receiving submodule,
First receiving submodule, for receiving the SN that the terminal device is sent;
Described first searches submodule, for the SN received according to first receiving submodule, in server local
The SN received the 3rd file is comprised at least in locating file name;
The sending submodule, for sending the 3rd text that the first lookup submodule is found to the terminal device
Part, so that the terminal device comprises at least the title RNTO of the 3rd file described in terminal device acquisition
The filename of Media Access Control address, so as to be first file by the 3rd file translations;
Second receiving submodule, for receiving first file that the terminal device is uploaded.
Preferably, the file obtains module, including:3rd receiving submodule, second search submodule and file generated
Submodule,
3rd receiving submodule, the medium access control for receiving the terminal device that the terminal device is sent
Address processed and the SN;
Described second searches submodule, for the SN received according to the 3rd receiving submodule, in server local
The SN received the 3rd file is comprised at least in locating file name;
The file generated submodule, for the Media Access Control address received according to the 3rd receiving submodule
The 3rd file found with the described second lookup submodule, generates first file.
Preferably, described device also includes:File removing module,
The file removing module, for deleting the 3rd file in server.
Preferably, the file generated submodule, specifically for:
The title RNTO of 3rd file is comprised at least into the medium access control that the terminal device is obtained
The filename of address processed, so as to be first file by the 3rd file translations;
Or
The copy of the 3rd file is obtained, the title RNTO of the copy of the 3rd file is comprised at least described
The filename for the Media Access Control address that terminal device is obtained, so as to the copy of the 3rd file is converted into described
First file.
To reach above-mentioned purpose, device is obtained the embodiment of the invention discloses a kind of file, terminal device, the terminal is set
Standby to be connected with server communication, described device includes:First receiving module, first obtain module and the first sending module,
First receiving module, is included for receiving in the second file that the server is sent, second file
There is the executable program of the Media Access Control address and machine serial number SN for obtaining the terminal device;
Described first obtains module, for performing holding in second file that first receiving module is received
Line program, obtains the Media Access Control address and SN of the terminal device;
First sending module, the medium access control that module is obtained is obtained for sending described first to the server
Address processed and SN, so that Media Access Control address and SN that the server is sent according to the terminal device, generate file
The first file of the Media Access Control address of the terminal device is comprised at least in name.
To reach above-mentioned purpose, device is obtained the embodiment of the invention discloses a kind of file, terminal device, the terminal is set
Standby to be connected with server communication, described device includes:Second receiving module, the second acquisition module, the second sending module, the 3rd connect
Module, file generating module and file uploading module are received,
Second receiving module, is included for receiving in the second file that the server is sent, second file
There is the executable program of the Media Access Control address and machine serial number SN for obtaining the terminal device;
Described second obtains module, for performing holding in second file that second receiving module is received
Line program, obtains the Media Access Control address and SN of the terminal device;
Second sending module, obtains the SN that module is obtained, so that institute for sending described second to the server
State server comprises at least the SN received in the server the 3rd file in locating file name;
3rd receiving module, the 3rd file sent for the reception server;
The file generating module, for the 3rd file received according to the 3rd receiving module and described
Two obtain the medium access control that the terminal device is comprised at least in the Media Access Control address that module is obtained, generation filename
First file of address processed;
The file uploading module, for first file to be uploaded into the server.
Preferably, the file generating module, specifically for:
The title RNTO for the 3rd file that 3rd receiving module is received comprises at least the terminal
The filename for the Media Access Control address that equipment is obtained, so as to be first file by the 3rd file translations.
As seen from the above technical solutions, the embodiments of the invention provide a kind of file preparation method and device, server
The file of the machine serial number SN comprising terminal device in filename is prestored, terminal is included in whois lookup filename
First file of the Media Access Control address of equipment, in the case where server local does not find the first file, to end
End equipment sends the second file, the Media Access Control address and SN of terminal device is obtained according to the second file, according to acquisition
The Media Access Control address and SN of terminal device, obtain the first file.The machine serial number of terminal device only need to be obtained ahead of time
SN, obtains label that the SN of terminal device only needs user to be pasted on the guarantee card of terminal device, terminal equipment mainframe etc. and looks into
See, the process operation of the relative Media Access Control address for obtaining terminal device is simple, therefore terminal need not be obtained ahead of time
The Media Access Control address of equipment, can also obtain the text of the Media Access Control address in filename including at least terminal device
Part.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the first schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server;
Fig. 2 is second of schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server;
Fig. 3 is the third schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server;
Fig. 4 is the 4th kind of schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server;
Fig. 5 illustrates for the first flow of the file preparation method provided in an embodiment of the present invention applied to terminal device
Figure;
Fig. 6 illustrates for second of flow of the file preparation method provided in an embodiment of the present invention applied to terminal device
Figure;
Fig. 7 obtains the first structural representation of device for the file provided in an embodiment of the present invention applied to server;
Fig. 8 obtains second of structural representation of device for the file provided in an embodiment of the present invention applied to server;
Fig. 9 obtains the third structural representation of device for the file provided in an embodiment of the present invention applied to server;
Figure 10 obtains the 4th kind of structural representation of device for the file provided in an embodiment of the present invention applied to server;
Figure 11 obtains the first structural representation of device for the file provided in an embodiment of the present invention applied to terminal device
Figure;
Figure 12 is second of structural representation of the file preparation method provided in an embodiment of the present invention applied to terminal device
Figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Below by specific embodiment, the present invention is described in detail.
Fig. 1 is the first schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server,
Server is connected with terminal equipment in communication, and the file preparation method applied to server can include:
S101:The Media Access Control address of the terminal device is comprised at least in server local locating file name
First file;
S102:In the case where server local does not find first file, the is sent to the terminal device
Two files;
Terminal device can perform holding in second file after the second file of server transmission is received
Include in line program and the Media Access Control address and machine serial number SN for obtaining the terminal device, second file
For obtaining the Media Access Control address of the terminal device and SN executable program.
S103:The Media Access Control address and the SN obtained according to the terminal device, obtains described first
File.
Below by terminal device by network come installation operation system exemplified by illustrate.
The machine serial number SN of terminal device is obtained ahead of time, server, which is prestored, comprises at least terminal device in filename
Machine serial number SN file;
Exemplary, the machine serial number SN for the terminal device being obtained ahead of time is:NS19464331, server is prestored
File is entitled:NS19464331 file.
According to terminal device by network come the rule of installation operation system, terminal device sends operating system to server
Mount request, includes the Media Access Control address of terminal device in the request, it is assumed that the medium access control of terminal device
Address is:74-27-EA-3B-85-77 is, it is necessary to which locating file is entitled in the server:01-74-27-EA-3B-85-77 text
Part, file would not be found due to not getting the Media Access Control address of terminal device in advance, therefore in server
It is entitled:01-74-27-EA-3B-85-77 file, then send default configuration files, default configurations to terminal device
The configuration file autoconfig.cfg associated with this document is recorded in file, for example:Append ks=http://
10.121.32.9/autoconfig.cfg, wherein, 10.121.32.9 is the IP address of server, and then in load server
Autoconfig.cfg files, wherein, include in autoconfig.cfg files for obtain terminal device medium visit
Control address and SN executable program are asked, for example:Sn=`dmidecode-t1 | grep Serial | awk-F:'{print$
2 } ' | sed's/ //g'` is used for machine serial number SN, the declare-l mac=`ifconfig eth0 for obtaining terminal device |
grep HWaddr|awk'{print$5}'|sed's/:/ -/g'` is used for the Media Access Control address for obtaining terminal device, false
If the machine serial number SN of the terminal device obtained is:NS19464331, the Media Access Control address of the terminal device of acquisition
For:74-27-EA-3B-85-77, according to the SN of acquisition:NS19464331 and Media Access Control address:74-27-EA-3B-
85-77, obtains file entitled:01-74-27-EA-3B-85-77 file.
Specifically, according to the SN of acquisition:NS19464331 and Media Access Control address:74-27-EA-3B-85-77, is obtained
Obtain file entitled:01-74-27-EA-3B-85-77 file, the embodiment provided referring to Fig. 2 and Fig. 3.
It should be noted that it is above-mentioned by terminal device by network come installation operation system exemplified by server obtain file
The file that the Media Access Control address of terminal device is comprised at least in name is illustrated, only one specific example, not structure
Into limitation of the invention.
Using embodiment illustrated in fig. 1 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Fig. 2 is second of schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server,
Embodiment illustrated in fig. 2 of the present invention is on the basis of embodiment illustrated in fig. 1, and S103 can include:
S1031:Receive the SN that the terminal device is sent;
S1032:According to the SN received, the 3rd of the SN received is comprised at least in server local locating file name
File;
S1033:The 3rd file found is sent to the terminal device;
Terminal device is after the 3rd file of server transmission is received, and can weigh the name of the 3rd file life
The filename of the entitled Media Access Control address obtained including at least the terminal device, so that by the 3rd file
It is converted into first file;
S1034:Receive first file that the terminal device is uploaded.
Specifically, by terminal device by network come installation operation system exemplified by illustrate.
Terminal device is used for the Media Access Control address for obtaining terminal device in autoconfig.cfg files are performed
With SN executable program, for example:Sn=`dmidecode-t1 | grep Serial | awk-F:'{print$2}'|sed'
S/ //g'` is used for machine serial number SN, the declare-l mac=`ifconfig eth0 for obtaining terminal device | grep
HWaddr|awk'{print$5}'|sed's/:/ -/g'` is used for the Media Access Control address for obtaining terminal device, it is assumed that obtain
The SN of terminal device be:NS19464331, the Media Access Control address of the terminal device of acquisition is:74-27-EA-3B-
After 85-77, the SN and Media Access Control address that obtain terminal device, it is possible to the terminal device obtained is sent to server
SN, server receiving terminal device transmission SN:After NS19464331, it is possible in server local locating file
It is entitled:NS19464331 file, the file found is entitled:NS19464331 file is sent to terminal device, terminal
Equipment is entitled by file:NS19464331 file is with the Media Access Control address of terminal device:74-27-EA-3B-85-77
Renaming is carried out, bearing the same name is:01-74-27-EA-3B-85-77, so file is entitled:NS19464331 file translations are
File is entitled:01-74-27-EA-3B-85-77 file, the file that receiving terminal apparatus is uploaded is entitled:01-74-27-EA-
3B-85-77 file, it is entitled that server obtains file:01-74-27-EA-3B-85-77 file, i.e. server obtain file
The file of the Media Access Control address of the terminal device is comprised at least in name.
It should be noted that it is above-mentioned by terminal device by network come installation operation system exemplified by server obtain file
The file that the Media Access Control address of terminal device is comprised at least in name is illustrated, only one specific example, not structure
Into limitation of the invention.
Using embodiment illustrated in fig. 2 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Fig. 3 is second of schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server,
Embodiment illustrated in fig. 3 of the present invention is on the basis of embodiment illustrated in fig. 1, and S103 can include:
S1035:Receive the Media Access Control address and the SN for the terminal device that the terminal device is sent;
S1036:According to the SN received, the 3rd of the SN received is comprised at least in server local locating file name
File;
S1037:According to the Media Access Control address received and the 3rd file found, first text is generated
Part.
In actual applications, according to the Media Access Control address received and the 3rd file found, generation is described
First file, can comprise at least the title RNTO of the 3rd file medium visit that the terminal device is obtained
The filename of control address is asked, so as to be first file by the 3rd file translations;The 3rd text can also be obtained
The copy of part, the medium that the terminal device is obtained is comprised at least by the title RNTO of the copy of the 3rd file
The filename of accessing to control address, so that the copy of the 3rd file is converted into first file.
Specifically, by terminal device by network come installation operation system exemplified by illustrate.
Terminal device is used for the Media Access Control address for obtaining terminal device in autoconfig.cfg files are performed
With SN executable program, for example:Sn=`dmidecode-t1 | grep Serial | awk-F:'{print$2}'|sed'
S/ //g'` is used for machine serial number SN, the declare-l mac=`ifconfig eth0 for obtaining terminal device | grep
HWaddr|awk'{print$5}'|sed's/:/ -/g'` is used for the Media Access Control address for obtaining terminal device, it is assumed that obtain
The SN of terminal device be:NS19464331, the Media Access Control address of the terminal device of acquisition is:74-27-EA-3B-
After 85-77, the SN and Media Access Control address that obtain terminal device, it is possible to the terminal device obtained is sent to server
SN and terminal device Media Access Control address, server receiving terminal device transmission SN:NS19464331 and
Media Access Control address:After 74-27-EA-3B-85-77, it is possible to entitled in server local locating file:
NS19464331 file, the file found is entitled:NS19464331 file is with the medium access control of terminal device
Address:74-27-EA-3B-85-77 carries out renaming, and bearing the same name is:01-74-27-EA-3B-85-77, so file is entitled:
NS19464331 file translations are that file is entitled:01-74-27-EA-3B-85-77 file, it is entitled that server obtains file:
01-74-27-EA-3B-85-77 file, i.e. server obtain the medium access that the terminal device is comprised at least in filename
Control the file of address;Can also be entitled in server local locating file:NS19464331 file, obtains file entitled:
The copy of NS19464331 file, file is entitled:The copy of NS19464331 file is with the medium access of terminal device
Control address:74-27-EA-3B-85-77 carries out renaming, and bearing the same name is:01-74-27-EA-3B-85-77, and then by filename
For:It is entitled that NS19464331 duplicate of the document is converted into file:01-74-27-EA-3B-85-77 file, server obtains text
Part is entitled:01-74-27-EA-3B-85-77 file, i.e. server, which are obtained, comprises at least the terminal device in filename
The file of Media Access Control address, wherein, it is entitled that server can prestore file:NS19464331 duplicate of the document,
It can also not store in advance, it is when needing to use, file is entitled:NS19464331 file is copied, and carries out generation text
Part is entitled:NS19464331 duplicate of the document.
It should be noted that it is above-mentioned by terminal device by network come installation operation system exemplified by server obtain file
The file that the Media Access Control address of terminal device is comprised at least in name is illustrated, only one specific example, not structure
Into limitation of the invention.
Using embodiment illustrated in fig. 3 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Fig. 4 is the 4th kind of schematic flow sheet of the file preparation method provided in an embodiment of the present invention applied to server,
Embodiment illustrated in fig. 4 of the present invention increases S104 on the basis of embodiment illustrated in fig. 2:Delete the 3rd text in server
Part.
Specifically, by terminal device by network come installation operation system exemplified by illustrate.
Server is entitled in the file that receiving terminal apparatus is uploaded:After 01-74-27-EA-3B-85-77 files, so that it may
To carry out the installation of operating system to terminal device using this document, the operation of terminal device transmission can also be being received again
It is entitled using file during system mount request:01-74-27-EA-3B-85-77 files carry out operating system to terminal device
Install, it is in this case, just entitled without storage file in server:NS19464331 file, therefore can be by file
It is entitled:NS19464331 file is deleted.
It should be noted that it is above-mentioned by terminal device by network come installation operation system exemplified by server obtain file
The file that the Media Access Control address of terminal device is comprised at least in name is illustrated, only one specific example, not structure
Into limitation of the invention.
Using embodiment illustrated in fig. 4 of the present invention, the occupancy of server storage is saved.
Fig. 5 illustrates for the first flow of the file preparation method provided in an embodiment of the present invention applied to terminal device
Figure, terminal device is connected with server communication, and the file preparation method applied to terminal device can include:
S201:Receive the second file that the server is sent;
Wherein, the Media Access Control address and machine for obtaining the terminal device are included in second file
Sequence number SN executable program;
S202:The executable program in second file is performed, with obtaining the medium access control of the terminal device
Location and SN;
S203:Obtained Media Access Control address and SN is sent to the server;
Server is receiving the Media Access Control address and SN of terminal device transmission, can be according to the medium received
The first text of the Media Access Control address of the terminal device is comprised at least in accessing to control address and SN, generation filename
Part.
Specifically, by terminal device by network come installation operation system exemplified by illustrate.
The machine serial number SN of terminal device is obtained ahead of time, server, which is prestored, comprises at least terminal device in filename
Machine serial number SN file;
Exemplary, the machine serial number SN for the terminal device being obtained ahead of time is:NS19464331, server is prestored
File is entitled:NS19464331 file.
According to terminal device by network come the rule of installation operation system, terminal device sends operating system to server
Mount request, includes the Media Access Control address of terminal device in the request, it is assumed that the medium access control of terminal device
Address is:74-27-EA-3B-85-77 is, it is necessary to which locating file is entitled in the server:01-74-27-EA-3B-85-77 text
Part, file would not be found due to not getting the Media Access Control address of terminal device in advance, therefore in server
It is entitled:01-74-27-EA-3B-85-77 file, then send default configuration files, default configurations to terminal device
The configuration file autoconfig.cfg associated with this document is recorded in file, for example:Append ks=http://
10.121.32.9/autoconfig.cfg, wherein, 10.121.32.9 is the IP address of server, and terminal device receiving
After the default configuration files that server is sent, and then the autoconfig.cfg files that the reception server is sent, loading
Autoconfig.cfg files, wherein, the medium access for obtaining terminal device is included in autoconfig.cfg files
Address and SN executable program are controlled, for example:Sn=`dmidecode-t1 | grep Serial | awk-F:'{print$2}'
| sed's/ //g'` is used for machine serial number SN, the declare-l mac=`ifconfig eth0 for obtaining terminal device | grep
HWaddr|awk'{print$5}'|sed's/:/ -/g'` is used for the Media Access Control address for obtaining terminal device, and terminal is set
It is standby to receive the autoconfig.cfg files of server transmission, it can perform executable in autoconfig.cfg files
Program " sn=`dmidecode-t1 | grep Serial | awk-F:' { print $ 2 } ' | sed's/ //g'`, declare-l
Mac=`ifconfig eth0 | grep HWaddr | awk'{ print $ 5 } ' | sed's/:/ -/g'` " obtains the machine of terminal device
Device sequence number SN and Media Access Control address, it is assumed that the machine serial number SN of the terminal device of acquisition is:NS19464331, is obtained
The Media Access Control address of terminal device be:74-27-EA-3B-85-77.
The SN obtained is sent to server:NS19464331 and the Media Access Control address obtained:74-27-EA-3B-
85-77, server can be searched in the server after the SN and Media Access Control address of terminal device transmission is received
File is entitled:NS19464331 file, server is entitled by file:NS19464331 file is visited with the medium of terminal device
Ask control address:74-27-EA-3B-85-77 carries out renaming, and bearing the same name is:01-74-27-EA-3B-85-77, and then by file
It is entitled:NS19464331 file translations are that file is entitled:01-74-27-EA-3B-85-77 file, server obtains file
It is entitled:01-74-27-EA-3B-85-77 file, i.e. server obtain Jie that the terminal device is comprised at least in filename
The file of matter accessing to control address, server can also receive terminal device transmission SN and Media Access Control address it
Afterwards, locating file is entitled in the server:NS19464331 file, obtains file entitled:The pair of NS19464331 file
This, file is entitled:The copy of NS19464331 file is with the Media Access Control address of terminal device:74-27-EA-3B-
85-77 carries out renaming, and bearing the same name is:01-74-27-EA-3B-85-77, so file is entitled:NS19464331 file
It is entitled that copy is converted into file:01-74-27-EA-3B-85-77 file, it is entitled that server obtains file:01-74-27-EA-
3B-85-77 file, i.e. server obtain the text for the Media Access Control address that the terminal device is comprised at least in filename
Part.
It should be noted that it is above-mentioned by terminal device by network come installation operation system exemplified by server obtain file
The file that the Media Access Control address of terminal device is comprised at least in name is illustrated, only one specific example, not structure
Into limitation of the invention.
Using embodiment illustrated in fig. 5 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Fig. 6 illustrates for second of flow of the file preparation method provided in an embodiment of the present invention applied to terminal device
Figure, terminal device is connected with server communication, and the file preparation method applied to terminal device can include:
S301:Receive the second file that the server is sent;
Wherein, the Media Access Control address and machine for obtaining the terminal device are included in second file
Sequence number SN executable program;
S302:The executable program in second file is performed, with obtaining the medium access control of the terminal device
Location and SN;
S303:Obtained SN is sent to the server;
Server receive terminal device transmission SN after, can in the server locating file name in comprise at least
The SN received the 3rd file;
S304:The 3rd file that the reception server is sent;
S305:According to the 3rd file received and the Media Access Control address of acquisition, generate in filename extremely
The first file of the Media Access Control address of the terminal device is included less;
Specifically, the title RNTO of the 3rd file can be comprised at least described in terminal device acquisition
The filename of Media Access Control address, so as to be first file by the 3rd file translations;
S306:First file is uploaded into the server.
Specifically, by terminal device by network come installation operation system exemplified by illustrate.
The machine serial number SN of terminal device is obtained ahead of time, server, which is prestored, comprises at least terminal device in filename
Machine serial number SN file;
Exemplary, the machine serial number SN for the terminal device being obtained ahead of time is:NS19464331, server is prestored
File is entitled:NS19464331 file.
According to terminal device by network come the rule of installation operation system, terminal device sends operating system to server
Mount request, includes the Media Access Control address of terminal device in the request, it is assumed that the medium access control of terminal device
Address is:74-27-EA-3B-85-77 is, it is necessary to which locating file is entitled in the server:01-74-27-EA-3B-85-77 text
Part, file would not be found due to not getting the Media Access Control address of terminal device in advance, therefore in server
It is entitled:01-74-27-EA-3B-85-77 file, then send default configuration files, default configurations to terminal device
The configuration file autoconfig.cfg associated with this document is recorded in file, for example:Append ks=http://
10.121.32.9/autoconfig.cfg, wherein, 10.121.32.9 is the IP address of server, and terminal device receiving
After the default configuration files that server is sent, and then the autoconfig.cfg files that the reception server is sent, loading
Autoconfig.cfg files, wherein, the medium access for obtaining terminal device is included in autoconfig.cfg files
Address and SN executable program are controlled, for example:Sn=`dmidecode-t1 | grep Serial | awk-F:'{print$2}'
| sed's/ //g'` is used for machine serial number SN, the declare-l mac=`ifconfig eth0 for obtaining terminal device | grep
HWaddr|awk'{print$5}'|sed's/:/ -/g'` is used for the Media Access Control address for obtaining terminal device, and terminal is set
It is standby to receive the autoconfig.cfg files of server transmission, it can perform executable in autoconfig.cfg files
Program " sn=`dmidecode-t1 | grep Serial | awk-F:' { print $ 2 } ' | sed's/ //g'`, declare-l
Mac=`ifconfig eth0 | grep HWaddr | awk'{ print $ 5 } ' | sed's/:/ -/g'` " obtains the machine of terminal device
Device sequence number SN and Media Access Control address, it is assumed that the machine serial number SN of the terminal device of acquisition is:NS19464331, is obtained
The Media Access Control address of terminal device be:74-27-EA-3B-85-77.
The SN obtained is sent to server:NS19464331, server, can after the SN of terminal device transmission is received
It is entitled with locating file in the server:NS19464331 file, the file found is entitled:NS19464331 file
Terminal device is sent to, terminal device is entitled in the file for receiving server transmission:, can be with after NS19464331 file
File is entitled:NS19464331 file is with the Media Access Control address of terminal device:74-27-EA-3B-85-77 is carried out
Renaming, bearing the same name is:01-74-27-EA-3B-85-77, so file is entitled:NS19464331 file translations are file
It is entitled:01-74-27-EA-3B-85-77 file, file is entitled:01-74-27-EA-3B-85-77 file is uploaded to clothes
It is entitled that business device obtains file:01-74-27-EA-3B-85-77 file, i.e. server are obtained in filename including at least described
The file of the Media Access Control address of terminal device.
It should be noted that it is above-mentioned by terminal device by network come installation operation system exemplified by server obtain file
The file that the Media Access Control address of terminal device is comprised at least in name is illustrated, only one specific example, not structure
Into limitation of the invention.
Using embodiment illustrated in fig. 6 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Corresponding with above method embodiment, the embodiment of the present invention additionally provides a kind of file and obtains device.
Fig. 7 obtains the first structural representation of device for the file provided in an embodiment of the present invention applied to server,
Server is connected with terminal equipment in communication, and the file applied to server, which obtains device, to be included:Ff module 401,
File sending module 402 and file obtain module 403, wherein,
Ff module 401, Jie for comprising at least the terminal device in server local locating file name
First file of matter accessing to control address;
File sending module 402, for not finding first text in server local in ff module 401
In the case of part, the second file is sent to the terminal device so that the terminal device perform in second file can
Included in configuration processor and the Media Access Control address and machine serial number SN for obtaining the terminal device, second file
Have for obtaining the Media Access Control address of the terminal device and SN executable program;
File obtains module 403, for the Media Access Control address that is obtained according to the terminal device and described
SN, obtains first file.
Using embodiment illustrated in fig. 7 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Fig. 8 obtains second of structural representation of device for the file provided in an embodiment of the present invention applied to server,
Embodiment illustrated in fig. 8 of the present invention is on the basis of embodiment illustrated in fig. 7, and file, which obtains module 403, to be included:First receives son
Module 4031, first searches submodule 4032, the receiving submodule 4034 of sending submodule 4033 and second, wherein,
First receiving submodule 4031, for receiving the SN that the terminal device is sent;
First searches submodule 4032, for the SN received according to the first receiving submodule 4031, in server local
The SN received the 3rd file is comprised at least in locating file name;
Sending submodule 4033, the 3rd text that submodule 4032 is found is searched for sending first to the terminal device
Part, so that the terminal device comprises at least the title RNTO of the 3rd file described in terminal device acquisition
The filename of Media Access Control address, so as to be first file by the 3rd file translations;
Second receiving submodule 4034, for receiving first file that the terminal device is uploaded.
Using embodiment illustrated in fig. 8 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Fig. 9 obtains the third structural representation of device for the file provided in an embodiment of the present invention applied to server,
Embodiment illustrated in fig. 9 of the present invention is on the basis of embodiment illustrated in fig. 7, and file, which obtains module 403, to be included:3rd receives son
Module 4035, second searches submodule 4036 and file generated submodule 4037, wherein,
3rd receiving submodule 4035, the medium access control for receiving the terminal device that the terminal device is sent
Address processed and the SN;
Second searches submodule 4036, for the SN received according to the 3rd receiving submodule 4035, in server local
The SN received the 3rd file is comprised at least in locating file name;
File generated submodule 4037, for the Media Access Control address received according to the 3rd receiving submodule 4035
The 3rd file found with the second lookup submodule 4036, generates first file.
The file generated submodule 4037 of the embodiment of the present invention, specifically can be used for:
The title RNTO of 3rd file is comprised at least into the medium access control that the terminal device is obtained
The filename of address processed, so as to be first file by the 3rd file translations;
Or
The copy of the 3rd file is obtained, the title RNTO of the copy of the 3rd file is comprised at least described
The filename for the Media Access Control address that terminal device is obtained, so as to the copy of the 3rd file is converted into described
First file.
Using embodiment illustrated in fig. 9 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, obtains terminal and sets
Standby SN only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relative to obtain
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium access of terminal device need not be obtained ahead of time
Address is controlled, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Figure 10 obtains the 4th kind of structural representation of device for the file provided in an embodiment of the present invention applied to server,
Embodiment illustrated in fig. 10 of the present invention is on the basis of embodiment illustrated in fig. 8, increase:File removing module 404, wherein,
File removing module 404, for deleting the 3rd file in server.
Using embodiment described in Figure 10 of the present invention, the occupancy of server storage is saved.
Figure 11 obtains the first structural representation of device for the file provided in an embodiment of the present invention applied to terminal device
Figure, terminal device is connected with server communication, and the file applied to terminal device, which obtains device, to be included:First receiving module
501st, first the sending module 503 of module 502 and first is obtained, wherein,
First receiving module 501, for receiving the second file that the server is sent, wherein, in second file
Include the executable program of the Media Access Control address and machine serial number SN for obtaining the terminal device;
First obtains module 502, executable in second file that the first receiving module 501 is received for performing
Program, obtains the Media Access Control address and SN of the terminal device;
First sending module 503, the medium access control that module 502 is obtained is obtained for sending first to the server
Address and SN, so that Media Access Control address and SN that the server is sent according to the terminal device, generate filename
In comprise at least the terminal device Media Access Control address the first file.
Using embodiment illustrated in fig. 11 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, terminal is obtained
The SN of equipment only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relatively
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium visit of terminal device need not be obtained ahead of time
Control address is asked, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
Figure 12 obtains second of structural representation of device for the file provided in an embodiment of the present invention applied to terminal device
Figure, terminal device is connected with server communication, and the file applied to terminal device, which obtains device, to be included:Second receiving module
601st, second module 602, the second sending module 603, the 3rd receiving module 604, file generating module 605 and file upload are obtained
Module 606, wherein,
Second receiving module 601, includes for receiving in the second file that the server is sent, second file
For obtaining the Media Access Control address of the terminal device and machine serial number SN executable program;
Second obtains module 602, executable in second file that the second receiving module 601 is received for performing
Program, obtains the Media Access Control address and SN of the terminal device;
Second sending module 603, obtains the SN that module 603 is obtained, so that described for sending second to the server
Server comprises at least the SN received the 3rd file in the server in locating file name;
3rd receiving module 604, the 3rd file sent for the reception server;
File generating module 605, is obtained for the 3rd file received according to the 3rd receiving module 604 and second
The medium access control of the terminal device is comprised at least in the Media Access Control address that module 602 is obtained, generation filename
First file of address;
The file generating module 605 of the embodiment of the present invention, specifically can be used for:
The title RNTO for the 3rd file that 3rd receiving module is received comprises at least the terminal
The filename for the Media Access Control address that equipment is obtained, so as to be first file by the 3rd file translations.
File uploading module 606, for first file to be uploaded into the server.
Using embodiment illustrated in fig. 12 of the present invention, the machine serial number SN of terminal device need to be only obtained ahead of time, terminal is obtained
The SN of equipment only needs label that user pastes on the guarantee card of terminal device, terminal equipment mainframe etc. to check, relatively
The process operation for obtaining the Media Access Control address of terminal device is simple, therefore the medium visit of terminal device need not be obtained ahead of time
Control address is asked, the file of the Media Access Control address in filename including at least terminal device can be also obtained.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence " including one ... ", it is not excluded that
Also there is other identical element in the process including the key element, method, article or equipment.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for device
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is
To instruct the hardware of correlation to complete by program, described program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (16)
1. a kind of file preparation method, applied to server, the server is connected with terminal equipment in communication, it is characterised in that
Methods described includes:
The first file of the Media Access Control address of the terminal device is comprised at least in server local locating file name;
In the case where server local does not find first file, the second file is sent to the terminal device, with
The terminal device is performed the executable program in second file and obtain the medium access control of the terminal device
Include the Media Access Control address for obtaining the terminal device in address and machine serial number SN, second file
With SN executable program;
The Media Access Control address and the SN obtained according to the terminal device, obtains first file.
2. according to the method described in claim 1, it is characterised in that the medium obtained according to the terminal device is visited
Control address and the SN are asked, first file is obtained, including:
Receive the SN that the terminal device is sent;
According to the SN received, the SN received the 3rd file is comprised at least in server local locating file name;
The 3rd file found is sent to the terminal device, so that the terminal device weighs the name of the 3rd file
The filename of the Media Access Control address obtained including at least the terminal device is named as, so that literary by the described 3rd
Part is converted into first file;
Receive first file that the terminal device is uploaded.
3. according to the method described in claim 1, it is characterised in that the medium obtained according to the terminal device is visited
Control address and the SN are asked, first file is obtained, including:
Receive the Media Access Control address and the SN for the terminal device that the terminal device is sent;
According to the SN received, the SN received the 3rd file is comprised at least in server local locating file name;
According to the Media Access Control address received and the 3rd file found, first file is generated.
4. method according to claim 2, it is characterised in that receiving first file that the terminal device is uploaded
Afterwards, methods described also includes:
Delete the 3rd file in server.
5. method according to claim 3, it is characterised in that Media Access Control address and look into that the basis is received
The 3rd file found, generates first file, including:
By the title RNTO of the 3rd file with comprising at least the medium access control that the terminal device is obtained
The filename of location, so as to be first file by the 3rd file translations;
Or
The copy of the 3rd file is obtained, the title RNTO of the copy of the 3rd file is comprised at least into the terminal
The filename for the Media Access Control address that equipment is obtained, so that the copy of the 3rd file is converted into described first
File.
6. a kind of file preparation method, applied to terminal device, the terminal device is connected with server communication, and its feature exists
In methods described includes:
Receive Jie included in the second file that the server is sent, second file for obtaining the terminal device
The executable program of matter accessing to control address and machine serial number SN;
The executable program in second file is performed, the Media Access Control address and SN of the terminal device is obtained;
Obtained Media Access Control address and SN is sent to the server, so that the server is set according to the terminal
The medium access control of the terminal device is comprised at least in Media Access Control address and SN that preparation is sent, generation filename
First file of location.
7. a kind of file preparation method, applied to terminal device, the terminal device is connected with server communication, and its feature exists
In methods described includes:
Receive Jie included in the second file that the server is sent, second file for obtaining the terminal device
The executable program of matter accessing to control address and machine serial number SN;
The executable program in second file is performed, the Media Access Control address and SN of the terminal device is obtained;
Obtained SN is sent to the server, so that the server is at least wrapped in the server in locating file name
The 3rd file containing the SN received;
The 3rd file that the reception server is sent;
According to the 3rd file received and the Media Access Control address of acquisition, comprised at least in generation filename described
First file of the Media Access Control address of terminal device;
First file is uploaded into the server.
8. method according to claim 7, it is characterised in that the 3rd file that the basis is received and acquisition
The first text of the Media Access Control address of the terminal device is comprised at least in Media Access Control address, generation filename
Part, including:
By the title RNTO of the 3rd file with comprising at least the medium access control that the terminal device is obtained
The filename of location, so as to be first file by the 3rd file translations.
9. a kind of file obtains device, applied to server, the server is connected with terminal equipment in communication, it is characterised in that
Described device includes:Ff module, file sending module and file obtain module,
The ff module, the medium for comprising at least the terminal device in server local locating file name is visited
Ask the first file of control address;
The file sending module, for not finding first file in server local in the ff module
In the case of, the second file is sent to the terminal device, so that the terminal device performs holding in second file
Include in line program and the Media Access Control address and machine serial number SN for obtaining the terminal device, second file
For obtaining the Media Access Control address of the terminal device and SN executable program;
The file obtains module, for the Media Access Control address and the SN obtained according to the terminal device,
Obtain first file.
10. device according to claim 9, it is characterised in that the file obtains module, including:First receives submodule
Block, first search submodule, sending submodule and the second receiving submodule,
First receiving submodule, for receiving the SN that the terminal device is sent;
Described first searches submodule, for the SN received according to first receiving submodule, is searched in server local
The SN received the 3rd file is comprised at least in filename;
The sending submodule, for sending the 3rd file that the first lookup submodule is found to the terminal device,
So that the title RNTO of the 3rd file is comprised at least being given an account of for terminal device acquisition by the terminal device
The filename of matter accessing to control address, so as to be first file by the 3rd file translations;
Second receiving submodule, for receiving first file that the terminal device is uploaded.
11. device according to claim 9, it is characterised in that the file obtains module, including:3rd receives submodule
Block, second search submodule and file generated submodule,
3rd receiving submodule, the medium access control of the terminal device for receiving the terminal device transmission
Location and the SN;
Described second searches submodule, for the SN received according to the 3rd receiving submodule, is searched in server local
The SN received the 3rd file is comprised at least in filename;
The file generated submodule, for the Media Access Control address received according to the 3rd receiving submodule and institute
The 3rd file that the second lookup submodule is found is stated, first file is generated.
12. device according to claim 10, it is characterised in that described device also includes:File removing module,
The file removing module, for deleting the 3rd file in server.
13. device according to claim 11, it is characterised in that the file generated submodule, specifically for:
By the title RNTO of the 3rd file with comprising at least the medium access control that the terminal device is obtained
The filename of location, so as to be first file by the 3rd file translations;Or
The copy of the 3rd file is obtained, the title RNTO of the copy of the 3rd file is comprised at least into the terminal
The filename for the Media Access Control address that equipment is obtained, so that the copy of the 3rd file is converted into described first
File.
14. a kind of file obtains device, applied to terminal device, the terminal device is connected with server communication, and its feature exists
In described device includes:First receiving module, first obtain module and the first sending module,
First receiving module, includes use for receiving in the second file that the server is sent, second file
In the Media Access Control address and machine serial number SN executable program that obtain the terminal device;
Described first obtains module, for performing the executable journey in second file that first receiving module is received
Sequence, obtains the Media Access Control address and SN of the terminal device;
First sending module, for sending described first with obtaining the medium access control that module is obtained to the server
Location and SN, so that in Media Access Control address and SN that the server is sent according to the terminal device, generation filename
Including at least the first file of the Media Access Control address of the terminal device.
15. a kind of file obtains device, applied to terminal device, the terminal device is connected with server communication, and its feature exists
In described device includes:Second receiving module, second obtain module, the second sending module, the 3rd receiving module, file generated
Module and file uploading module,
Second receiving module, includes use for receiving in the second file that the server is sent, second file
In the Media Access Control address and machine serial number SN executable program that obtain the terminal device;
Described second obtains module, for performing the executable journey in second file that second receiving module is received
Sequence, obtains the Media Access Control address and SN of the terminal device;
Second sending module, obtains the SN that module is obtained, so that the clothes for sending described second to the server
Business device comprises at least the SN received the 3rd file in the server in locating file name;
3rd receiving module, the 3rd file sent for the reception server;
The file generating module, the 3rd file and described second for being received according to the 3rd receiving module is obtained
The Media Access Control address that obtains of module, the medium access control of the terminal device is comprised at least in generation filename
First file of location;
The file uploading module, for first file to be uploaded into the server.
16. device according to claim 15, it is characterised in that the file generating module, specifically for:
The title RNTO for the 3rd file that 3rd receiving module is received comprises at least the terminal device
The filename of the Media Access Control address obtained, so as to be first file by the 3rd file translations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410460783.1A CN104216999B (en) | 2014-09-11 | 2014-09-11 | A kind of file preparation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410460783.1A CN104216999B (en) | 2014-09-11 | 2014-09-11 | A kind of file preparation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104216999A CN104216999A (en) | 2014-12-17 |
CN104216999B true CN104216999B (en) | 2017-08-25 |
Family
ID=52098489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410460783.1A Active CN104216999B (en) | 2014-09-11 | 2014-09-11 | A kind of file preparation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104216999B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369229A (en) * | 2007-08-17 | 2009-02-18 | 环达电脑(上海)有限公司 | Remote installation system and remote installation method |
CN101398762A (en) * | 2007-09-29 | 2009-04-01 | 联想(北京)有限公司 | Method and device for automatic installing operating system on computer |
CN101459528A (en) * | 2007-12-11 | 2009-06-17 | 康佳集团股份有限公司 | On-line up-grading method and system for network terminal device |
CN103546492A (en) * | 2013-11-14 | 2014-01-29 | 国家电网公司 | Unattended operation installation system and method |
-
2014
- 2014-09-11 CN CN201410460783.1A patent/CN104216999B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369229A (en) * | 2007-08-17 | 2009-02-18 | 环达电脑(上海)有限公司 | Remote installation system and remote installation method |
CN101398762A (en) * | 2007-09-29 | 2009-04-01 | 联想(北京)有限公司 | Method and device for automatic installing operating system on computer |
CN101459528A (en) * | 2007-12-11 | 2009-06-17 | 康佳集团股份有限公司 | On-line up-grading method and system for network terminal device |
CN103546492A (en) * | 2013-11-14 | 2014-01-29 | 国家电网公司 | Unattended operation installation system and method |
Also Published As
Publication number | Publication date |
---|---|
CN104216999A (en) | 2014-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11740891B2 (en) | Providing access to a hybrid application offline | |
US11516288B2 (en) | Synchronized content library | |
KR102121626B1 (en) | Associating a file type with an application in a network storage service | |
US7680067B2 (en) | Peer-to-peer data synchronization architecture | |
JP2016529599A (en) | Content clipboard synchronization | |
US9251187B2 (en) | Metadata-driven version management service in pervasive environment | |
CN109818934B (en) | Method and device for automatically processing logs and computing equipment | |
US20130232187A1 (en) | Systems and methods for managing data in a networked communication system | |
US11789916B2 (en) | Hash-based duplicate data element systems and methods | |
CN106656650A (en) | Business test environment generation method and system and business test method, device and system | |
CN114385091B (en) | Method and device for realizing network disk drive character, network disk and storage medium | |
CN111240892B (en) | Data backup method and device | |
JP2018049653A (en) | Cache management | |
CN112866406B (en) | Data storage method, system, device, equipment and storage medium | |
CN110674084A (en) | Method, apparatus, and computer-readable storage medium for data protection | |
CN105205100A (en) | Data synchronization method based on MTP between terminals and terminals | |
CN110046000A (en) | Small routine operation method and device | |
US20200183887A1 (en) | File redundancy detection and mitigation | |
CN107817994A (en) | The operation method of mobile terminal network application program | |
CN104216999B (en) | A kind of file preparation method and device | |
US20120005162A1 (en) | Managing Copies of Data Structures in File Systems | |
WO2014146448A1 (en) | Method and system for synchronizing browser bookmarks | |
CN104281486B (en) | A kind of virtual machine treating method and apparatus | |
CN103501335A (en) | Data transmission method, data transmission equipment and data transmission system | |
CN113806668A (en) | Data access method of object storage system and object storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |