A kind of complete machine lock collar method under local area network, system and lock collar device

文档序号:1741660 发布日期:2019-11-26 浏览:19次 中文

阅读说明:本技术 一种局域网下的整机锁盘方法,系统及锁盘装置 (A kind of complete machine lock collar method under local area network, system and lock collar device ) 是由 张建刚 于 2019-07-05 设计创作,主要内容包括:本发明提供一种局域网下的整机锁盘方法,系统及锁盘装置,在存储设备上部署锁盘装置;启动存储设备,通过预设通信机制,与锁盘管理服务器建立通信;锁盘管理服务器接收锁盘装置发送的订单信息,对所述订单信息进行校验,并将校验结果回复锁盘装置;锁盘装置根据校验信息,进行锁盘操作;将锁盘结果记录存入数据库中。通过该整机锁盘流程,最终记录存储设备、驱动器信息以及每块驱动器的序列号对应的锁盘结果。通过Socket通信,完成两者之间报文交互,完成存储设备锁盘操作和管理软件数据逻辑处理和锁盘结果入库等操作,通过自动化锁盘过程,减少人为参与度,提升锁盘准确率,进而防止水盘或者窜盘等现象。(The present invention provides a kind of complete machine lock collar method under local area network, system and lock collar device, disposes lock collar device on a storage device;Starting storage equipment is communicated by presetting communication mechanism with the foundation of lock collar management server;Lock collar management server receives the order information that lock collar device is sent, and verifies to the order information, and check results are replied lock collar device;Lock collar device carries out lock collar operation according to check information;Lock collar result is recorded in deposit database.By the complete machine lock collar process, final entry stores equipment, the corresponding lock collar result of sequence number of Driver Information and every block drive.It is communicated by Socket, completes message interaction between the two, complete the operation of storage equipment lock collar and the operation such as the processing of management software mathematical logic and lock collar result storage, by automating lock collar process, phenomena such as reducing artificial participation, promotion lock collar accuracy rate, and then anti-water-stop tray or altering disk.)

1. a kind of complete machine lock collar method under local area network, which is characterized in that method includes:

Lock collar device is disposed on a storage device;

Starting storage equipment is communicated by presetting communication mechanism with the foundation of lock collar management server;

Lock collar management server receives the order information that lock collar device is sent, and verifies to the order information, and will verification As a result lock collar device is replied;

Lock collar device carries out lock collar operation according to check information;

Lock collar result is recorded in deposit database.

2. the complete machine lock collar method under local area network according to claim 1, which is characterized in that

Method further include:

Lock collar device extracts order information and lock collar mark;

Lock collar device sends order information to lock collar management server;

Lock collar management server receives order information;And

Judge lock collar operation has been completed or carried out to the order whether according to lock collar mark.

3. the complete machine lock collar method under local area network according to claim 2, which is characterized in that

If lock collar is completed or is carrying out lock collar operation, give up the data received, and reply and be completed to storage Lock collar or just in lock collar state;

If the lock collar identifies corresponding no data, then it represents that the order information arrives for the first time, carries out receiving order information at this time Content authentication.

4. the complete machine lock collar method under local area network according to claim 3, which is characterized in that

If it is illegal to verify received order information content, lock collar identification-state field is updated, and reply order verification to storage Failure message;

If order information is without exception, lock collar identification-state field is updated, while according to the message format returned with storage agreement, place Order data is managed, message information replys lock collar device by treated.

5. the complete machine lock collar method under local area network according to claim 4, which is characterized in that

Lock collar management server replys lock collar device, informs that storage equipment has received order and order check results and agreement Message format data;

Lock collar device carries out lock collar;

After the completion of storing equipment lock collar, lock collar management server is sent by lock collar result.

6. the complete machine lock collar method under local area network according to claim 5, which is characterized in that

Lock collar management server, which updates lock collar record, arrives database, and more new order performance, updates lock collar identification field Value;

After lock collar device receives lock collar result, storage equipment message is replied.

7. the complete machine lock collar method under local area network according to claim 6, which is characterized in that

If otherwise whole lock collar successes mark lock collar failure, update and arrive database by lock collar mark labeled as lock collar success (the lock collar mark of lock collar failure can lock collar again, otherwise do not allow lock collar again), updates lock collar identification field values.

8. the complete machine lock collar method under local area network according to claim 2, which is characterized in that

Order information includes: list purchase product information sequence number generated and product information under user;

Product information includes order number, storage device model, lock collar quantity, and lock collar mark is then by every block drive to lock collar No. SN unique number generated according to certain algorithm.

9. the complete machine lock collar system under a kind of local area network characterized by comprising storage equipment, lock collar management server, data Library, deployment module and lock collar device;

Deployment module for disposing lock collar device on a storage device;

Lock collar device is for starting storage equipment, by presetting communication mechanism, communicates with the foundation of lock collar management server;

Lock collar management server is used to receive the order information of lock collar device transmission, verifies to the order information, and will Check results reply lock collar device;

Lock collar device carries out lock collar operation according to check information;

Lock collar result is recorded in deposit database.

10. a lock collar device characterized by comprising

Memory, for storing the complete machine lock collar method under computer program and local area network;

Processor, for executing the complete machine lock collar method under the computer program and local area network, with realize as claim 1 to The step of complete machine lock collar method under local area network described in 8 any one.

Technical field

The present invention relates to a kind of complete machine lock collar method under technical field of data processing more particularly to local area network, system and Lock collar device.

Background technique

In the mass data epoch, driver as storage equipment storage data source, often with storage equipment shipment simultaneously. Since storage equipment price is higher than driver itself to a certain extent, along with nowadays driver manufacturer stands in great numbers, plants in the market Class it is various and may part employee is illegal inside and outside links up, phenomena such as inevitably will appear water pond, alter disk, be easy to cause plant maintenance at Originally increase, user's financial losses.

For driver hard disk water pond and alter disk situation, there are different processing schemes, most of factory in current different vendor Quotient's mainstream scheme is still using artificial statistics identification method, when maintenance personnel in installation service and after sale when, such as find hard disk Driver and type mismatch case, explain the situation to client and refusal of having the right services.Current protocols, although to a certain degree On can alleviate water pond and alter the bring loss of disk, but also have certain drawbacks: increasing employee's installation maintenance cost, including Time cost and O&M cost, are also easy the problems such as being discord when illustrating with client interpretation.

Summary of the invention

In order to overcome the deficiencies in the prior art described above, the present invention relates to storage equipment installation service and needles after sale in scene The locking of driver hard disk is proposed with user storage device scheme identification binding a kind of towards storage equipment and driver The complete machine lock collar method of shipment simultaneously.

According to a first aspect of the embodiments of the present invention, method includes:

Lock collar device is disposed on a storage device;

Starting storage equipment is communicated by presetting communication mechanism with the foundation of lock collar management server;

Lock collar management server receives the order information that lock collar device is sent, and verifies to the order information, and will Check results reply lock collar device;

Lock collar device carries out lock collar operation according to check information;

Lock collar result is recorded in deposit database.

In some embodiments of the invention, method further include:

Lock collar device extracts order information and lock collar mark.

Lock collar device sends order information to lock collar management server;

Lock collar management server receives order information;And

Judge lock collar operation has been completed or carried out to the order whether according to lock collar mark;

In some embodiments of the invention, if lock collar is completed or is carrying out lock collar operation, give up reception The data arrived, and replied to storage and lock collar is completed or just in lock collar state;

If the lock collar identifies corresponding no data, then it represents that the order information arrives for the first time, carries out receiving order letter at this time The content authentication of breath;

In some embodiments of the invention, illegal if verifying received order information content, update lock collar mark shape State field, and reply order to storage and verify failure message;

If order information is without exception, lock collar identification-state field is updated, while according to the message lattice returned with storage agreement Formula handles order data, and by treated, message information replys lock collar device;

In some embodiments of the invention, lock collar management server replys lock collar device, informs that storage equipment has received To the message format data of order and order check results and agreement;

Lock collar device carries out lock collar;

After the completion of storing equipment lock collar, lock collar management server is sent by lock collar result.

In some embodiments of the invention, lock collar management server, which updates lock collar record, arrives database, and updates and order Single performance updates lock collar identification field values;

After lock collar device receives lock collar result, storage equipment message is replied.

In some embodiments of the invention, if whole lock collar successes, by lock collar mark labeled as lock collar success, otherwise Lock collar failure is marked, is updated to database (the lock collar mark of lock collar failure can lock collar again, otherwise do not allow lock collar again), Update lock collar identification field values.

In some embodiments of the invention, order information includes: single purchase product information sequence generated under user Number and product information;

Product information includes order number, storage device model, lock collar quantity, and lock collar mark is then by every piece of drive to lock collar No. SN unique number generated according to certain algorithm of dynamic device.

According to a second aspect of the embodiments of the present invention, the complete machine lock collar system under a kind of local area network is provided, comprising: storage Equipment, lock collar management server, database, deployment module and lock collar device;

Deployment module for disposing lock collar device on a storage device;

Lock collar device is for starting storage equipment, by presetting communication mechanism, communicates with the foundation of lock collar management server;

Lock collar management server is used to receive the order information of lock collar device transmission, verifies to the order information, And check results are replied into lock collar device;

Lock collar device carries out lock collar operation according to check information;

Lock collar result is recorded in deposit database.

According to a third aspect of the embodiments of the present invention, a kind of lock collar device is provided, comprising:

Memory, for storing the complete machine lock collar method under computer program and local area network;

Processor, for executing the complete machine lock collar method under the computer program and local area network, to realize under local area network Complete machine lock collar method the step of.

As can be seen from the above technical solutions, the invention has the following advantages that

The invention proposes a kind of methods of automation complete machine lock collar integrally sold for storage equipment and driver, lead to It crosses and disposes lock collar device in storage equipment itself, the lock collar record request processing software of exploitation is disposed in lock collar management server, And interactively communicated under same local area network based on kernel software and lock collar management server Socket, the operation of completion complete machine lock collar, Related data storage etc. in lock collar result storage and lock collar operating process.Pass through the complete machine lock collar process, final entry storage The corresponding lock collar result of the sequence number of equipment, Driver Information and every block drive.Execution through the invention, other sources Driver, such as water pond and alter disk etc. be inserted into storage equipment on, storage equipment will be unable to identify and use, not only increasing can Can reduce in the investment in O&M service while may expand lock collar shipment production capacity, avoid pre- with the communication of being discord of client Driver caused by indeterminacy is standby wastes, and improves enterprise's business revenue profit.

Detailed description of the invention

In order to illustrate more clearly of technical solution of the present invention, attached drawing needed in description will be made below simple Ground introduction, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill For personnel, without creative efforts, it is also possible to obtain other drawings based on these drawings.

Fig. 1 is the complete machine lock collar method flow diagram under local area network;

Fig. 2 is the complete machine lock collar embodiment of the method flow chart under local area network;

Fig. 3 is the complete machine lock collar system schematic under local area network.

Specific embodiment

It in order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below will be with specific Examples and drawings, the technical solution protected to the present invention are clearly and completely described, it is clear that implementation disclosed below Example is only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in this patent, the common skill in this field Art personnel all other embodiment obtained without making creative work belongs to the model of this patent protection It encloses.

Flow chart shown in attached drawing 1 to 3 is merely illustrative, it is not necessary to including all content and operation/step Suddenly, it nor is it necessary that and executed by described sequence.For example, some operation/steps can also decompose, and some operation/steps It can merge or part merges, therefore the sequence actually executed is possible to change according to the actual situation.

If realized within hardware, the present invention relates to a kind of devices, such as can be used as processor or integrated circuit dress It sets, such as IC chip or chipset.Alternatively or additionally, if realized in software or firmware, the technology can Realize at least partly by computer-readable data storage medium, including instruction, when implemented, make processor execute one or More above methods.For example, computer-readable data storage medium can store the instruction such as executed by processor.

The present invention may include computer storage medium, such as random access memory (RAM), read-only memory (ROM), Nonvolatile RAM (NVRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory magnetically or optically count According to storage medium and analog.In some embodiments, a kind of manufacture product may include one or more computer-readable storages Media.

For the present invention for storage and driver in unit sale, order data information is mainly drive data Automatic lock collar method, specific implementation process are as follows:

Lock collar device is disposed on a storage device;

Starting storage equipment is communicated by presetting communication mechanism with the foundation of lock collar management server;

Lock collar management server receives the order information that lock collar device is sent, and verifies to the order information, and will Check results reply lock collar device;

Lock collar device carries out lock collar operation according to check information;

Lock collar result is recorded in deposit database.

Specifically, disposing the lock collar device of the soft exploitation of core on a storage device, lock collar device can be lock collar software. In default setting, starting storage equipment starts new thread and initiates the behavior of complete machine lock collar, at this time by the order information and lock of extraction Disc identifier is generated by the SN of every piece of disk, and the request that lock collar device is sent to lock collar management software can be identified with lock collar, is sent Lock collar management server.Then, it is communicated by Socket connection request, lock collar management server receives ordering for lock collar device transmission Single information carries out verification order information operation processing according to corresponding order processing logic, and check results reply complete machine is set It is standby.Lock collar device carries out lock collar operation or other behaviors operation according to check information.Lock collar management server remembers lock collar result It records in database, also has and periodically carry out DB Backup mechanism.

In some embodiments of the invention, aforementioned schemes are based on, during complete machine lock collar, storage equipment sends order letter Lock collar result is put in storage breath to the end, mainly including the following steps:

(1) pass through newly-built thread or PXE server, guidance storage triggering lock collar process;

(2) storage equipment extracts order information and lock collar mark.Wherein, order information i.e. client place an order to buy and produce Product, the sequence number of generation and the main information of product mainly include order number, storage device model, lock collar quantity, lock collar mark It is then by No. SN unique number generated according to certain algorithm of every block drive to lock collar;

(3) storage equipment sends order information to lock collar management server;

(4) lock collar management server receives order information, judges whether the order has been completed according to lock collar mark first Or carrying out lock collar operation;If lock collar is completed or is carrying out lock collar operation, give up the data received, and to Storage replys and lock collar is completed or just in lock collar state;If the lock collar identifies corresponding no data, then it represents that the order information It arrives for the first time, the content authentication for carrying out receiving order information at this time updates lock if it is illegal to verify received order information content Disc identifier mode field, and reply order to storage and verify failure message;If order information is without exception, lock collar identification-state is updated Field, while according to the message format returned with storage agreement, order data is handled, message information replys storage by treated Software;

(5) lock collar management server replys lock collar device, informs that storage equipment has received order and order check results And the message format data of agreement;

(6) lock collar device carries out lock collar to storage equipment;

(7) after the completion of storing equipment lock collar, lock collar management server is sent by lock collar result.Lock collar result includes: to order Odd numbers, whether complete machine lock collar, storage equipment control cabinet SN and each hard disk lock collar model, lock collar result, hard disk type The SN of extension cabinet or control cabinet where (HDD, SSD), hard disk SN, hard disk manufacture date, hard disk.Management software receives lock collar knot The time of fruit regards the lock collar time as;

(8) lock collar management server, which updates lock collar record, arrives database.No matter success or not, be saved in database, Whether it is same hard disk with hard disk SN differentiation, and more new order performance, updates lock collar identification field values;

(9) after lock collar management server receives lock collar result, lock collar device message is replied, message includes that order and lock collar are remembered It whether inconsistent records.

(10) if otherwise whole lock collar successes mark lock collar failure by lock collar mark labeled as lock collar success, update is arrived Database.The lock collar mark of lock collar failure can lock collar again, otherwise do not allow lock collar again, update lock collar identification field values.

System embodiment of the invention introduced below can be used for executing the above-mentioned method of the present invention.Fig. 3 shows basis The structural schematic diagram of the system of the embodiment of the present invention.System includes: to store equipment 1, lock collar management server 2, database 5, Deployment module 3 and lock collar device 4;

Deployment module 3 is used to dispose lock collar device 4 in storage equipment 1;

Lock collar device 4 is for starting storage equipment 1, by presetting communication mechanism, establishes with lock collar management server 2 logical Letter;

Lock collar management server 2 is used to receive the order information of the transmission of lock collar device 4, carries out school to the order information It tests, and check results is replied into lock collar device 4;

Lock collar device 4 carries out lock collar operation according to check information;

Lock collar result is recorded in deposit database 5.

The present invention uses the deployment of local area network internal memory devices, lock collar management server 2, can be serviced here by PXE Device or starting new thread method start lock collar task, in deployment memory device core software and pipe before storage equipment factory Under the premise of the communication and infomational message interaction of managing software Socket mechanism, complete the extraction of order information, verification, logical operation and The execution of lock collar task executes the operations such as lock collar result storage, completes the scene of storage equipment and one lifting pin shipment of driver.With The lock collar strategy of the manufacturer of current main-stream is compared, and the present invention uses the communication interaction of local area network internal memory devices and lock collar server On the basis of, complete the automation lock collar process of storage equipment and driver shipment simultaneously, reduce the human input of manual operation with Possible fault reduces the driver hard disk waste that budget inaccuracy is be easy to cause, while preventing water pond and altering disk.

Complete machine lock collar scheme application deployment in present system example towards local area network, it is soft in storage deployed with devices core Part lock collar program, to complete lock collar work;Management software program is disposed in lock collar management server, to complete the school of order information Test, extract and lock collar result storage etc. work.In a local network, by Socket communication mechanism, storage equipment and management are completed Software server message interaction communication, to complete entire lock collar process;

In complete machine lock collar detailed process, the unique identification as a order is identified using lock collar, it is continuous to update lock Disc identifier field is mainly comprised the following steps tracking the lock collar state of the order constantly:

The exclusive identification code for identifying the order is generated using particular encryption algorithm using the hard disk for including in order SN;

Before lock collar, the key verification of lock collar task is completed first, for key verification failure scene, is directly refused lock collar and is asked It asks, while updating lock collar identification-state is key verification status of fail;

It obtains lock collar and identifies corresponding state, if lock collar is completed or just in lock collar etc., then gives up the order information, Directly reply storing device information;If the corresponding lock collar of order message received is identified as all failures or part failure;

Verify order contents, the order information that main judgement storage equipment is sent, with data in COM code library whether one It causes, if inconsistent, the information such as update lock collar mark G character learning section, directly reply storage equipment order are illegal;If consistent, processing is ordered Single information, returns to the message format information of storage equipment agreement, while updating related order data and lock collar mark;

Lock collar device completes order lock collar as a result, sending lock collar result information message to lock collar management server 2;

Lock collar management server 2 receives the lock collar of storage equipment as a result, verifying received lock collar result message, more new data Related data is received in library, updates lock collar identification field and lock collar result table data.

The present invention also provides a lock collar devices, comprising: memory, for storing the complete machine under computer program and local area network Lock collar method;Processor, for executing the complete machine lock collar method under the computer program and local area network, to realize under local area network Complete machine lock collar method the step of.

The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种快照回滚方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类