Está en la página 1de 6

Fibrevillage

(/)

Search...

Home(/)
Sysadmin(/index.php/sysadmin)
Storage(/index.php/storage)
Database(/index.php/database)
Scripting(/index.php/scripting)

IBM TS3500 Command Line Interface(CLI) examples


(/index.php/storage/184-ibm-ts3500-command-line-interface-cliexamples)
TheIBMTS3500TapeLibraryCommandLineInterface(CLI)isajavaprogram,canbeusedtoaccesstheTS3500
TapeLibraryfromaCLI.ThisisinadditiontotheTS3500TapeLibraryWebSpecialist.
TheTS3500CLIaccessesTS3500TapeLibraryWebInterface,providestheabilitytoaccesslibraryfunctionsthrough
acommandlineinterface,alsoyoucanredirecttheoutputtoafile.

Prerequisites
InordertousetheTS3500CLI,thefollowingprerequisitesapply:
TheTS3500TapeLibrarymustbeatafirmwarelevel8xxx(orhigher).
TheAdvancedLibraryManagementSystem(ALMS)mustbeinstalledandenabled.
Java5.0orlatermustbeinstalled.

Download
TheTS3500CLIcanbedownloadedfromthewebatthefollowingURL:
http://www01.ibm.com/support/docview.wss?uid=ssg1S4000854.

Examples:
View System Summary

javajarTS3500CLI.jara<LibraryIP>viewSystemSummaryu<admin>p<pass>
Accessorstatus,OK
LTOCapacityUtilization,98%
Totalstorageslots,5937
LTOLicensedCapacity,5937
LTOUnlicensedCapacity,0
Totalemptystorageslots,84
Offlinestorageslots,0
Accessors,1
TotalI/Oslots,16
EmptyI/Oslots,16
TotalLTOdatacartridges,5869
LTOUltrium1,0
LTOUltrium2,0
LTOUltrium3,0
LTOUltrium4,1949
LTOUltrium5,2600
LTOUltrium6,1320
LTOUltriumNotLabeled,0
Cleaningcartridges,2
Drives,24
Nodecards,5
Totalframes,6
Activeframes,6
Servicebays,0

View Library VPD


javajarTS3500CLI.jara<LibraryIP>viewLibraryVPDu<admin>p<pass>

View Logical Libraries


javajarTS3500CLI.jara<LibraryIP>viewLogicalLibrariesu<admin>p<pass>
LogicalLibrary,Type,DedicatedDrives,SharedDrives,AssignedCartridges,MaxCartridges,
LTO6,LTO,8,0,3248,3320,
LTO5,LTO,14,0,2600,2620,
LTO6TEST1,LTO,1,0,10,30,
LTO6TEST2,LTO,1,0,10,120,

View Data Cartridges


javajarTS3500CLI.jara<LibraryIP>viewDataCartridgesu<admin>p<pass>
...
A03891L5,LTO5,2917,LTOUltrium5,Slot(F5,C1,R1,T5),NotEncrypted,2014070313:05:53
A03892L5,LTO5,2918,LTOUltrium5,Slot(F5,C7,R30,T5),NotEncrypted,2014070315:28:40
A03893L5,LTO5,2919,LTOUltrium5,Slot(F4,C1,R7,T5),NotEncrypted,2014070513:52:28
A03894L5,LTO5,2920,LTOUltrium5,Slot(F4,C5,R36,T5),NotEncrypted,2014071923:45:35
A03895L5,LTO5,2921,LTOUltrium5,Slot(F2,C2,R14,T0),NotEncrypted,2014090108:46:03
A03896L5,LTO5,2922,LTOUltrium5,Slot(F1,C3,R40,T0),NotEncrypted,2014081717:10:07
A03897L5,LTO5,2923,LTOUltrium5,Slot(F5,C5,R28,T5),NotEncrypted,2014072002:28:38
A03898L5,LTO5,2924,LTOUltrium5,Slot(F2,C7,R8,T0),NotEncrypted,2014080414:16:11
A03899L5,LTO5,2925,LTOUltrium5,Slot(F4,C8,R40,T0),NotEncrypted,2014080620:25:10
A03900L5,LTO5,2926,LTOUltrium5,Slot(F1,C8,R2,T0),NotEncrypted,2014101100:34:42
...
Note:thiscommandtakesverylongtimeifyouhavemanytapecartridge

View Drive details

Incasebelow,itchecksthedriveinFrame1,Row11.amewdrive
javajarTS3500CLI.jara<LibraryIP>viewDriveDetailsf1r11u<admin>p<pass>
PendingFirmwareActivation,None
Encryption,Disabled
Loads,56
Unloads,56
MBwritten,1347
MBread,1591
Cleanings,0
Poweronhours,119
Port0ID,27
Port0NodeName,500507630F132C0B
Port0PortName,500507630F532C0B
Port1ID,91
Port1NodeName,500507630F132C0B
Port1PortName,500507630F932C0B

View I/O status


javajarTS3500CLI.jara<LibraryIP>viewIoStationu<admin>p<pass>
I/OStationEmpty
TherearenodataorcleaningcartridgesinanyI/Ostation

Assign tape cartridge to logical library


javajarTS3500CLI.jara<LibraryIP>assignDataCartridges<filefullpath>u<admin>p<pass>
Fileformat:
<Vosor>,<LogicalLibrary>
A00001L4,LTO6
A00002L4,LTO6
A00003L4,LTO6

Note:it'sveryslowifyouhavemanytapecartridgesinthelibrary

Bulk tape cartridge assignment


javajarTS3500CLI.jara<LibraryIP>bulkAssignDataCartridges<filefullpath>u<admin>p<pa
ss>
Fileformat:
<Vosor>,<LogicalLibrary>
A00001L4,LTO6
A00002L4,LTO6
A00003L4,LTO6
FasterthanassignDataCartridges

Bulk tape cartridge assignment by logical library


javajarTS3500CLI.jara<LibraryIP>bulkAssignDataCartridgesByLogicalLibrary<filefullpath>
ll<logicallibrary>u<admin>p<pass>
Fileformat:
<Vosor>,<LogicalLibrary>
A00001L4,LTO6
A00002L4,LTO6
A00003L4,LTO6

ForthebulkAssignDataCartridgesByLogicalLibraryaction,onlycartridgesthatarealreadyassignedtothespecified
sourcelogicallibrarywillbesearchedandthenassignedtotheirnewlogicallibrary,specifiedintheinputfile.This
methodisfasterthanbulkAssignDataCartridgesifyouonlyneedcartridgesfromonelogicallibrary.

Move tape from I/O station


javajarTS3500CLI.jara<LibraryIP>moveFromIo<TapeSlotF,C,R,T>u<admin>p<pass>

Move tape to I/O station


javajarTS3500CLI.jara<LibraryIP>removedatacartridge<VOser>u<admin>p<pass>

Move from All drives


javajarTS3500CLI.jara<LibraryIP>moveFromAllDrivesu<admin>p<pass>

Theactionwillfirstattempttomovebacktothehomeslotandifhomeslotisfull,itwillmovetofirstemptystorage
slot

Mover from drive


javajarTS3500CLI.jara<LibraryIP>moveFromDrivesf<frame>r<row>u<admin>p<pass>

Eitherfandr,orw,canbeusedtodesignatewhichtapedrive.
Thefandroptionssupplytheframeandrowlocationofthedrive.
Thewoptionisthelast2charactersofthedrive'sWWNN.

SamelikemoveFromAllDrives,themoveFromDriveactionwillfirstattempttomovebacktothehomeslotandifhome
slotisfull,itwillmovetofirstemptystorageslot

Power Cycle Drive


PowerCycledriveF1,R11
javajarTS3500CLI.jara<LibraryIP>powerCycleDrivef1r11u<admin>p<pass>

Download logs
javajarTS3500CLI.jara<LinuraryIP>downloadLogsALLu<admin>p<pass>

Logtypecouldbethelistofthem,
<ALL,EVENT,SHUTTLE_EVENT,SERVO,NVRAM_EVENT,VIO,ESM,ES_DATA,EXCEPTION,ERROR,NVRAM_DUMP,

MASTER_CONSOLE,MRPD,STATISTICS,CAR_LOGS>
Note:Multiplelogtypesmustbeseparatedbycommaswithoutspaces.Anoptionalargumentf<frame
number>willdownloadonlythatframe'slogsforthespecifiedlogtype(s).Togetbothaccessors'logsfor
thattypewhenspecifyingaframenumber,useframe1

Ifyouprefertoreadthefullinstruction,seeTS3500CLIinstructions
(ftp://ftp.software.ibm.com/storage/358x/3584/TS3500CLI/TS3500CLI_Instructions.pdf)

<Prev(/index.php/storage/189iscsitargetsetupconfigonlinuxrhelcentossletc)
Next>(/index.php/storage/183arcconfcommandexamplesquickreference)

Youarehere:Home(/)

Storage

See also:
Linuxmtcontrolmagnetictapedriveoperation(/index.php/storage/121linuxmtcontrolmagnetictapedrive
operation)
mhvtlalinuxvirtualtapelibrary(/index.php/storage/122mhvtlalinuxvirtualtapelibrary)
mtxanativelinuxmediachangertool(/index.php/storage/123mtxanativelinuxmediachangertool)
mtxinventoryforcetapelibrarytodoinventorycheck(/index.php/storage/125mtxinventoryforcetape
librarytodoinventorycheck)

New posts
iSCSIinitiator(client)configonLinux(/index.php/storage/190iscsiinitiatorclientconfigonlinux)
iSCSItarget(Server)setup/configonLinux(RHEL,CentOS,SLetc..)(/index.php/storage/189iscsitargetsetup
configonlinuxrhelcentossletc)
PerlHashexamples(/index.php/scripting/188perlhashexamples)
SSHreversetunneling(/index.php/sysadmin/187sshreversetunneling)
Howtosetupsshtunnel(sshforwarding)(/index.php/sysadmin/186howtosetupsshtunnelsshforwarding)

Most liked:
Cli(CommandLineinterface)forIBMDSStorageManagerexamples(/index.php/storage/151clicommand
lineinterfaceforibmdsstoragemanagerexamples)
badblockssearchadeviceforbadblocks(/index.php/storage/1searchadeviceforbadblocks)
Arcconfcommandexamples(AdaptecARRAYController)(/index.php/storage/3arcconfcommandexamples
adaptecarraycontroller)
CheckHBAcardanditsdriver'sinfoonlinux(RHEL6)(/index.php/storage/9checkhbacardanditsdrivers
infoinlinuxrhel6)
CurlhttpcommandswithWebDAV(/index.php/storage/117curlhttpcommandswithwebdav)
TCPtuning10GNIConlinux(/index.php/sysadmin/91tcpperformancetuning10gnicwithhighrttinlinux)
HowtotellifCPUhyperthreadingenabledonLinux(/index.php/sysadmin/155howtotellifcpuhyperthreading
enabledonlinux)
MegaCliusefulcommandswithexamples(/index.php/storage/145megacliusefulcommandswithexamples)
smartctlexamplestogetSMARTstatusofyourharddrives(/index.php/storage/57smartctlexamplestoget
smartstatusofyourharddrives)
CheckandlistlunsattachedtoHBAinRHEL6(/index.php/storage/8checkandlistlunsattachedtohbain
rhel6)
LinuxlsscsilistSCSIdevices(orhosts)andtheirattributes(/index.php/storage/51linuxlsscsilistscsi
devicesorhostsandtheirattributes)

systool,ausefultoolforSAN,aswellforsysfsdevices(/index.php/storage/61systoolausefultoolforsan
aswellforsysfsdevices)
scsi_idexamplesonRHEL6(/index.php/sysadmin/87scsiidexamplesinrhel6)
udevadmuseageexamples(/index.php/sysadmin/93udevadmuseageexamples)
HowtocheckHBAdriver,firmwareandbootimageinfoonLinux(/index.php/storage/62waystocheckhba
driverfirmwareandbootimageinfoonlinux)
Waystosavetypescriptsessionsonlinux(/index.php/scripting/106waystosavetypescriptsessionson
linux)
DeviceMapperMultipathconfigurationonlinux(/index.php/storage/10devicemappermultipathconfiguration
onlinux)
Badblockshowto(/index.php/storage/2badblockshowto)
mhvtlalinuxvirtualtapelibrary(/index.php/storage/122mhvtlalinuxvirtualtapelibrary)
GetPostgreSQLdb,tableandindexsizes(/index.php/database/66getpostgresqldbtableandindexsizes)

Username
Password
SecretKey

"
#
B

Login Form

RememberMe
Login

Createanaccount (/index.php/component/users/?view=registration)
Forgotyourusername?(/index.php/component/users/?view=remind)
Forgotyourpassword?(/index.php/component/users/?view=reset)

2015Fibrevillage

BacktoTop

También podría gustarte