Monday, December 29, 2008

HPACUCLI commands

To find HARDWARE RAID and DISK information (For HP servers / Smart Array control card – Need “hpacucli” rpm)+++++++ctrl all showctrl slot=0 showctrl slot=1 logicaldrive all show ctrl slot=1 physicaldrive all show+++++++[root@Server01 root]# hpacucliHP Array Configuration Utility CLI 7.40.7.0Detecting Controllers...Done.Type "help" for a list of supported commands.Type "exit" to close the console.=> ctrl all show
Smart Array 5i in Slot 0 ()
=> ctrl all show status
Smart Array 5i in Slot 0 Controller Status: OK Cache Status: OK
=> ctrl slot=0 show
Controller Smart Array 5i in Slot 0 Bus Interface: pci slot: 0 RAID 6 (ADG) status: False Controller Status: OK Chassis Slot: 1 Hardware Revision: Rev B Firmware Version: 2.58 Rebuild Priority: Low Expand Priority: Low Surface Scan Delay: 15 sec Cache Board Present: True Cache Status: OK Accelerator Ratio: 100/0 (read/write) Read Cache Size: 48 MB Write Cache Size: 0 MB Total Cache Size: 48 MB Battery Backed Cache Size: 0 MB Non Battery Backed Cache Size: 48 MB Battery Pack Count: 0
=> ctrl slot=0 array all show
Smart Array 5i in Slot 0 array A (Parallel SCSI, Unused Space: 0 MB)
=> ctrl slot=0 logicaldrive all show
Smart Array 5i in Slot 0
array A logicaldrive 1 (33.9 GB, 1+0, OK)
=> ctrl slot=0 physicaldrive all show
Smart Array 5i in Slot 0
array A physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK) physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.4 GB, OK)

---------------

/sbin/hplog -v will show all the Hardware alert logs regarding th HP Server

/sbin/hplog -t -- Display current thermal sensor data

/sbin/hplog -f Display current fan data

/sbin/hplog -p Display current power data

remove blank spaces, tabs and blank lines from file.

tr -d ' \t\n\r' < filename

Thursday, August 28, 2008

Thursday, August 21, 2008

=VLOOKUP(E3,C:C,1,0)

Vlookup for checking the difference between two columns.

E3 is from the column where you want compare.C:C is the entire column where the other set of data is there for comparision.

1,0 - :D no idea.... ---- But it works...

Friday, March 28, 2008

NetBackup Commands

backup Version Details
--------------------------
more /usr/openv/netbackup/bin/version

Media Manager Version
-----------------------
more /usr/openv/volmgr/bin/version

Check the Status of the Tape Drive
----------------------------------
/usr/openv/volmgr/bin/tpconfig -d or -dl
/usr/openv/volmgr/bin/vmoprcmd -d
UP/Down the Tape Library.

-------------------------
/usr/openv/volmgr/bin/vmoprcmd -up 0 #--- UP
/usr/openv/volmgr/bin/vmoprcmd -down 0 #--Down

Check the NetBackup Services.
--------------------------------
/usr/openv/netbackup/bin/bpps -a
Stop / Start the NetBakcup Serivce
-----------------------------------
/usr/openv/netbackup/bin/goodies/K77netbackup #---Kill all the services.
/usr/openv/netbackup/bin/goodies/S77netbackup # ---- Start all the services

Run the Inventory Check on the Tape Library
---------------------------------------------
/usr/openv/volmgr/bin/vmcheckxxx -rt tld -rn 0

Update the Library content to the Scratch Pool (NetBackup)
------------------------------------------
/usr/openv/volmgr/bin/vmupdate -rt tld -rn 0

Netbackup Menu Window for Netbackup operations
-------------------------------------------------
/usr/openv/netbackup/bin/bpadm

Check the Available Media on the Backup server
--------------------------------------
/usr/openv/netbackup/bin/goodies/available_media #---------- From Catalogue
/usr/openv/volmgr/bin/vmquery -rn 0 -bx #-----------From Tape Library.

View the contents of the Tape
------------------------------
/usr/openv/netbackup/bin/admincmd/bpimmedia -L -mediaid R011L1

Expire the Media details from the Catalogue
-----------------------------------------
/usr/openv/netbackup/bin/admincmd/bpexpdate -d 0 -ev R011L1 -force

Delete the contents of a Media
-------------------------------------
/usr/openv/netbackup/bin/admincmd/bplabel -ev R011L1 -d dlt -p NetBackup

List all the Client Backup image List details.
------------------------------------------
/usr/openv/netbackup/bin/admincmd/bpimagelist -U

Freeze a Media
---------------
/usr/openv/netbackup/bin/admincmd/bpmedia -freeze -ev R013L1

Check the Backup Status
--------------------------
/usr/openv/netbackup/bin/admincmd/bpdbjobs -summary
/usr/openv/netbackup/bin/admincmd/bpdbjobs -report #------ Will give more exhaustive information.

Check all the Class files information on Master Server
----------------------------------------------------
/usr/openv/netbackup/bin/admincmd/bpcllist -allclasses -U
/usr/openv/netbackup/bin/admincmd/bpcllist adhoc-gejpfp1_root -U #---------- Individual Class file.

Set the Class file as Active/Inactive
-------------------------------------
/usr/openv/netbackup/bin/admincmd/bpclinfo adhoc-gejpfd1-6206323 -modify -active #-------- Set Active
/usr/openv/netbackup/bin/admincmd/bpclinfo adhoc-gejpfd1-6206323 -modify -inactive # -------- Set Inactive.
Check the Status of the Backup Status. (Get the Active Backup ID from bpdbjobs -report)
--------------------------------------
/usr/openv/netbackup/bin/admincmd/bperror -jobid 13860 -U #----- Take the Job ID from here.
tail -f /usr/openv/netbackup/db/jobs/13870.1206700777.t #------- File will show which file is getting written.

Check the Tape Library Cleaning Status
-------------------------------------
/usr/openv/volmgr/bin/tpclean -L
/usr/openv/netbackup/bin/goodies/cleanstats

Reset the Cleaning Status to Zero
--------------------------------
/usr/openv/volmgr/bin/tpclean -M Drive0

Add Tape to the Clean Tape pool (None)
---------------------------------------
/usr/openv/netbackup/bin/admincmd/bplabel -ev Q949L1 -d dlt_clean -p None

View Rule for Cleaning Tape
------------------------------
/usr/openv/volmgr/bin/vmrule -listall

Add/Remove rule for cleaning Tape.
-----------------------------------
/usr/openv/volmgr/bin/vmrule -add Q949L1 dlt2_clean None 25 "Cleaning Tape"
/usr/openv/volmgr/bin/vmrule -del Q949L1 dlt2_clean None 25 "Cleaning Tape"

Manually Clean the Tape Drive
-----------------------------
/usr/openv/volmgr/bin/tpclean -C Drive0