jueves, 19 de agosto de 2010

Robtest - SL500 - NBU

root@masterserver # nbpemreq -suspend_scheduling
root@masterserver # robtest
Configured robots with local control supporting test utilities:
TLD(0) robotic path = /dev/sg/c0tw500104f00094e619l0

Robot Selection
---------------
1) TLD 0
2) none/quit
Enter choice: 1

Robot selected: TLD(0) robotic path = /dev/sg/c0tw500104f00094e619l0

Invoking robotic test utility:
/usr/openv/volmgr/bin/tldtest -rn 0 -r /dev/sg/c0tw500104f00094e619l0

Opening /dev/sg/c0tw500104f00094e619l0
MODE_SENSE complete
Enter tld commands (? returns help information)
?

To exit the utility, type q or Q.

init - Initialize element status
initrange [#]- 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 - Move medium
pos - 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

specifies drive (d#), slot (s#), media access port (p#),
or transport (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
= (d)rive, (s)lot, media access (p)ort, or (t)ransport

unload - Issue SCSI unload
= 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 s
slot 1 (addr 1000) contains Cartridge = yes
Barcode = SUN005
slot 2 (addr 1001) contains Cartridge = yes
Barcode = T00223
slot 3 (addr 1002) contains Cartridge = yes
Barcode = T00198
slot 4 (addr 1003) contains Cartridge = yes
Barcode = SUN091
slot 5 (addr 1004) contains Cartridge = yes
Barcode = SUN021
slot 6 (addr 1005) contains Cartridge = no
slot 7 (addr 1006) contains Cartridge = yes
Barcode = SUN063
slot 8 (addr 1007) contains Cartridge = yes
Barcode = T00118
slot 9 (addr 1008) contains Cartridge = yes
Barcode = T00199
slot 10 (addr 1009) contains Cartridge = yes
Barcode = SUN205
slot 11 (addr 1010) contains Cartridge = yes
Barcode = SUN156
<<>>
q
READ_ELEMENT_STATUS complete

m s1 s6
Initiating MOVE_MEDIUM from address 1000 to 1005
MOVE_MEDIUM complete

Invalid command
m s6 d3
Initiating MOVE_MEDIUM from address 1005 to 502
MOVE_MEDIUM complete

Invalid command
m s11 s6
Initiating MOVE_MEDIUM from address 1010 to 1005
MOVE_MEDIUM complete

Invalid command
m s6 s11
Initiating MOVE_MEDIUM from address 1005 to 1010
MOVE_MEDIUM complete
m d3 s6
Initiating MOVE_MEDIUM from address 502 to 1005
MOVE_MEDIUM complete

Invalid command
m s6 s1
Initiating MOVE_MEDIUM from address 1005 to 1000
MOVE_MEDIUM complete

miércoles, 4 de agosto de 2010

tar y dd remoto

TAR:
tar cvf - /opt/ | ssh root@10.13.3.43 "cat > /bk_oracle/BACKUP_UNIX/tivolidatos02/opt.tar"

DD:
dd if=/dev/dsk/c0d0t0s0/ | ssh root@host_destino "of=/BACKUP_DESTINO/root.iso"