nbu WIN平台下面(mtx/robtest/tar/nt_ttu)手动测试driver是否正常
在这里介绍一下WIN平台上面怎么测试带库是否可以正常的读写数据库。
WIN这个是个好东西,但是在用于服务器方案,我切不会的。
这里不介绍厂商自己提供的软件来测试带库。
WIN下面同样用两种方案:
方案一:使用mtx与tar来实现
方案二:使用robtest与nt_ttu工具
方案一:
方案一需要用到两个工具,mtx与tar,这两个工具都需要到第三方去下载。
mtx下载地址http://sourceforge.net/projects/mtx/files/Windows/
tar下载地址http://sourceforge.net/projects/guntar/?source=directory
软件安装完成后记得在PATH里面增加好环境变量。
- 1.1 查看已经配置的设备的状态
- C:\Documents and Settings\Administrator>tpconfig -l
- Device Robot Drive Robot Drive Device
- Type Num Index Type DrNum Status Comment Name Path
- robot 0 - TLD - - - - {3,0,0,0}
- drive - 0 hcart 1 UP - IBM.ULTRIUM-TD1.000 {3,0,0,1}
- drive - 1 hcart 2 UP - IBM.ULTRIUM-TD1.001 {3,0,0,2}
- 1.2 查看机械手的状态
- C:\Documents and Settings\Administrator>mtx -f 3:0:0:0 status
- Storage Changer 3:0:0:0:2 Drives, 40 Slots ( 20 Import/Export )
- Data Transfer Element 0:Empty
- Data Transfer Element 1:Full (Storage Element 2 Loaded):VolumeTag = 00580001
- Storage Element 1:Full :VolumeTag=00580000
- Storage Element 2:Empty
- Storage Element 3:Full :VolumeTag=00580002
- Storage Element 4:Full :VolumeTag=00580003
- Storage Element 5:Full :VolumeTag=00580004
- 1.3 加载槽位3的磁带到driver 0
- C:\Documents and Settings\Administrator>mtx -f 3:0:0:0 load 3 0
- Loading media from Storage Element 3 into drive 0...done
- C:\Documents and Settings\Administrator>mtx -f 3:0:0:0 status|more
- Storage Changer 3:0:0:0:2 Drives, 40 Slots ( 20 Import/Export )
- Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = 00580002
- Data Transfer Element 1:Full (Storage Element 2 Loaded):VolumeTag = 00580001
- Storage Element 1:Full :VolumeTag=00580000
- Storage Element 2:Empty
- Storage Element 3:Empty
- Storage Element 4:Full :VolumeTag=00580003
- Storage Element 5:Full :VolumeTag=00580004
- Storage Element 6:Full :VolumeTag=00580005
- Storage Element 7:Full :VolumeTag=00580006
- Storage Element 8:Full :VolumeTag=00580007
- Storage Element 9:Full :VolumeTag=00580008
- Storage Element 10:Empty
- 1.4 查看tape的名字
- C:\Documents and Settings\Administrator>scan -tape
- ************************************************************
- *********************** SDT_TAPE ************************
- ************************************************************
- ------------------------------------------------------------
- Device Name : "Tape0"
- Passthru Name: "Tape0"
- Volume Header: ""
- Port: 3; Bus: 0; Target: 0; LUN: 1
- Inquiry : "IBM ULTRIUM-TD1 18N2"
- Vendor ID : "IBM "
- Product ID : "ULTRIUM-TD1 "
- Product Rev: "18N2"
- Serial Number: "92FUC00601"
- WWN : ""
- WWN Id Type : 0
- Device Identifier: "IBM ULTRIUM-TD1 92FUC00601 "
- Device Type : SDT_TAPE
- NetBackup Drive Type: 3
- Removable : Yes
- Device Supports: SCSI-3
- Flags : 0x0
- Reason: 0x0
- ------------------------------------------------------------
- Device Name : "Tape1"
- Passthru Name: "Tape1"
- Volume Header: ""
- Port: 3; Bus: 0; Target: 0; LUN: 2
- Inquiry : "IBM ULTRIUM-TD1 18N2"
- Vendor ID : "IBM "
- Product ID : "ULTRIUM-TD1 "
- Product Rev: "18N2"
- Serial Number: "92FUC00602"
- WWN : ""
- WWN Id Type : 0
- Device Identifier: "IBM ULTRIUM-TD1 92FUC00602 "
- Device Type : SDT_TAPE
- NetBackup Drive Type: 3
- Removable : Yes
- Device Supports: SCSI-3
- Flags : 0x0
- Reason: 0x0
- 1.5 向tape 0写数据
- C:\Documents and Settings\Administrator>tar -cvf Tape0 "C:\Program Files\mtx"
- C:\\Program Files\\mtx/
- C:\\Program Files\\mtx/loaderinfo.exe
- C:\\Program Files\\mtx/mtx.exe
- C:\\Program Files\\mtx/README.win32
- C:\\Program Files\\mtx/scsieject.exe
- C:\\Program Files\\mtx/scsitape.exe
- C:\\Program Files\\mtx/tapeinfo.exe
- 1.6 查看已经备份的数据
- C:\Documents and Settings\Administrator>tar -tvf Tape0 "C:\Program Files\mtx"
- drw-rw-rw- Administrator/0 0 2012-10-13 18:33 C:\\Program Files\\mtx/
- -rwxrwxrwx Administrator/0 77824 2008-08-20 23:52 C:\\Program Files\\mtx/loaderinfo.exe
- -rwxrwxrwx Administrator/0 90112 2008-08-20 23:52 C:\\Program Files\\mtx/mtx.exe
- -rw-rw-rw- Administrator/0 1360 2008-08-20 23:53 C:\\Program Files\\mtx/README.win32
- -rwxrwxrwx Administrator/0 81920 2008-08-20 23:52 C:\\Program Files\\mtx/scsieject.exe
- -rwxrwxrwx Administrator/0 81920 2008-08-20 23:52 C:\\Program Files\\mtx/scsitape.exe
- -rwxrwxrwx Administrator/0 81920 2008-08-20 23:52 C:\\Program Files\\mtx/tapeinfo.exe
方案二:
要使用此方案,是需要安装NBU软件与配置设备的
- 2.1 robtest测试带库
- C:\Documents and Settings\Administrator>robtest
- Configured robots with local control supporting test utilities:
- TLD(0) robotic path = {3,0,0,0}
- Robot Selection
- ---------------
- 1) TLD 0
- 2) none/quit
- Enter choice: 1
- 1
- Robot selected: TLD(0) robotic path = {3,0,0,0}
- Invoking robotic test utility:
- C:\Program Files\Veritas\Volmgr\bin\tldtest.exe -rn 0 -r {3,0,0,0}
- Opening {3,0,0,0}
- MODE_SENSE complete
- Enter tld commands (? returns help information)
- ?
- To exit the utility, type q or Q.
- init - Initialize element status
- initrange <d#|s#|p#|t> [#]- Init element status range
- allow - Allow media removal
- prevent - Prevent media removal
- extend - Extend media access port
- retract - Retract media access port
- mode - Mode sense
- m <from> <to> - Move medium
- pos <to> - Position to drive or slot
- s [d|p|t|s [n]] [raw] - Read element status
- inquiry - Display vendor and product ID
- rezero - Rezero unit
- inport - Ready inport (media access port)
- debug - Toggle debug mode for this utility
- test_ready - Send a TEST UNIT READY to the device
- <from> <to> specifies drive (d#), slot (s#), media access port (p#),
- or transport (t#)
- <d#|s#|p#|t#> is drive #, slot #, media access port #, or transport #
- [#] is number of elements for d, s, p, or t
- NOTE - drive # is 1 - Number of drives
- slot # is 1 - Number of slots
- media access port # is 1 - Number of media access port elements
- transport # is 1 - Number of transports
- <type> = (d)rive, (s)lot, media access (p)ort, or (t)ransport
- unload <drive> - Issue SCSI unload
- <drive> = d1 or 1, d2 or 2, d3 or 3 ... d648 or 648
- multipath [enable|disable] - turn multipathing on/off
- multipath [auto|manual] - turn auto path discovery on/off
- multipath [addpath|removepath] [path] - for manual mode, add/remove path
- multipath [showpaths] - show currently configured paths for auto or manual
- mode
- s d
- drive 1 (addr 500) access = 1 Contains Cartridge = no
- drive 2 (addr 501) access = 1 Contains Cartridge = no
- READ_ELEMENT_STATUS complete
- s s
- slot 1 (addr 1000) contains Cartridge = yes
- Source address = 500
- Barcode = 00580000
- slot 2 (addr 1001) contains Cartridge = yes
- Source address = 500
- Barcode = 00580002
- slot 3 (addr 1002) contains Cartridge = yes
- Source address = 501
- Barcode = 00580001
- slot 4 (addr 1003) contains Cartridge = yes
- Source address = 0
- Barcode = 00580003
- slot 5 (addr 1004) contains Cartridge = yes
- Source address = 0
- Barcode = 00580004
- slot 6 (addr 1005) contains Cartridge = yes
- Source address = 0
- Barcode = 00580005
- slot 7 (addr 1006) contains Cartridge = yes
- Source address = 0
- Barcode = 00580006
- << Press return to continue, or q and return to stop >>
- q
- READ_ELEMENT_STATUS complete
- m s1 d1
- Initiating MOVE_MEDIUM from address 1000 to 500
- MOVE_MEDIUM complete
- s d
- drive 1 (addr 500) access = 0 Contains Cartridge = yes
- Source address = 1000 (slot 1)
- Barcode = 00580000
- drive 2 (addr 501) access = 1 Contains Cartridge = no
- READ_ELEMENT_STATUS complete
- q
- Robot Selection
- ---------------
- 1) TLD 0
- 2) none/quit
- Enter choice: 2
- 2
- 2.2 向tape0写数据
- C:\Documents and Settings\Administrator>nt_ttu -f Tape0
- Welcome to nt_ttu, h[elp] or ? for help.
- Data Buffer Initial Address - 0000000002164000
- nt_ttu> open t
- OPEN elapsed time = 16 msecs.
- nt_ttu> ioctl c=rew
- cmd = rew
- now rewinding the tape
- nt_ttu> write t b=65536
- WRITE time=0 msec; records=1; bytes/record=65536; bytes/msec=65536.000
- nt_ttu> c t
- CLOSE elapsed time = 0 msecs.
- nt_ttu> exit
已经成功。
本文转自7343696 51CTO博客,原文链接:http://blog.51cto.com/luoping/1027147,如需转载请自行联系原作者
nbu WIN平台下面(mtx/robtest/tar/nt_ttu)手动测试driver是否正常相关推荐
- win平台搭建Lnmp环境
win10上面安装的phpStudy这些天有时候打不开网页 502,请求一直loading,就算是代码问题我也扶不住,安装个Redis,mongodb都超级麻烦,并且好多都模拟Linux做的东西,最终 ...
- 如何简单利用git_stats脚本统计项目的代码量(以及win平台使用时的错误排除)...
废话不多说,先放上几张插件生成的页面的预览图 (页面主页) (每日提交量) (代码行数统计,因为是练习项目,很多代码是copy的,不要在意细节) 预览大致就到这里,当然还有很多其他功能,大家可以自己去 ...
- php 动态引用dll文件路径,win平台环境变量与dll动态链接库搜索路径小结
今日需要做一个在cmd命令窗口下使用php.exe执行的php小程序,用于循环获取某API提供的json数据并进行分析后实时发送短信提醒. 用惯了linux下的直接命令窗口输入curl.php等命令而 ...
- 最新WIN平台服务器安全解决方案【青云原创】
前言 我们先来看一些目前网络上比较成熟的WIN平台服务器安全加固方案,因都是一些教程和链接我把他们放在本文的最后列出. 其实这些方案再加上一个合格的服务器管理员就已经可以做到服务器相当高水平的安全了, ...
- 使用RMAN实现异机备份恢复(WIN平台)
--================================= -- 使用RMAN实现异机备份恢复(WIN平台) --================================= 在有些 ...
- linux打开gaussian16软件,win平台下最新版Gaussian16使用经验分享
本帖最后由 tjchkj 于 2017-12-7 16:04 编辑 看到论坛里几乎是清一色的在linux下使用Gaussian16的交流,使我这个linux门外汉感到居然找不到在windows平台下的 ...
- win平台使用惯导模块:WHEELTEC N100 模块
win平台使用惯导模块:WHEELTEC N100 模块 模块介绍 WHEELTEC N100 参数 WIN驱动安装 连接上位机 电路设计 修改波特率 修改数据包发布频率 模块调平校准 模块介绍 WH ...
- 原始复古的forfiles的使用(win平台)
最近因为项目需要,在linux安装basemap图像库的时候,安装成功后,一直提示缺失mpl_toolkits.Basemap.尝试了半天时间没有解决问题,可能问题出在其他依赖库的版本上.遂在win平 ...
- Qt 程序中获取 CPUID UUID 等系统信息的方法(win 平台,wmic)
Qt 程序中获取 CPUID UUID 等系统信息的方法(win 平台,wmic) 最近的程序中要加入序列号注册的功能.这就需要获得电脑的一些基本信息,比如 UUID .或者 CPUID 一类的固定的 ...
最新文章
- Fastcgi是什么
- Java5线程并发库之保障变量的原子性操作
- java 高并发解决方案
- 数据库——修改表信息(转)
- 学习webpack(二)
- mc服务器村民交易修改,【原创】【教程】MCPE自定义村民交易内容
- alinq mysql_ALinq让Mysql变得如此简单_MySQL
- 产品经理必看:终于有人把数据指标讲明白了
- JavaScript里的函数加或不加括号的区别
- 多线多IP的服务器配置
- 经典排序算法(八)--选择排序Selection Sort
- JAVA开发环境搭建
- BigGAN(2019)
- 计算机课程word教学,Word教学方法及使用技巧
- 新年计划(2018)
- 【无标题】程序员的一大步
- 使用FileZilla连接时超时,无法连接到服务器
- brk系统调用和copy-on-write机制
- 缺芯导致全球汽车减产超一千万辆
- 完整的DJ表演工具包djay Pro 2 Mac,DJ打碟神器
热门文章
- python shutil模块用法实例分析_python之shutil模块使用方法(三分钟了解)
- java 正则判断二进制_regex – 正则表达式,用于定义一些二进制序列
- python 指针_C++的动态内存:C++的指针
- delphi mysql 加密_Delphi对Access文件加密
- 简述php的发展和特点,有关PHP特点的详细介绍
- android adbd代码在哪个目录下,Android源代码目录结构
- java 显示服务器的图片,【JavaWeb】实现读取本地服务器路径下的图片
- 用计算机弹奏体面6,抖音能用计算器按出音乐有哪些?计算器乐谱分享
- qt5 传输 图片压缩_图片如何转换成pdf?免费教你几个宝藏方法,请低调使用!...
- html区域背景,保存/恢复HTML5 Canvas的背景区域