Solaris Cmds
Solaris Cmds
Solaris Cmds
http://www.symantec.com/business/support/index?page=content&id=TECH9288
taskkill /F /IM tpconfig.exe
************
ypcat passwd| grep -i nbkvsrr
ca5spvma11:/usr/openv/db/bin# ./nbdb_ping
Database [NBDB] is not available.
**************************************************
NIC settings
1)first chk in bp.conf file which interface is being used
2)if no interface entry in bp.conf then use ./bpclntcmd -self-on same server
3)by using that ip chk on ifconfig -a which nic card it is using
4)then use dladm show-dev to chk that nic card real setting it should be full du
plex recommneded
nic card--linux
use ifconfig to chk which nic ard is being used for backup
ethtool hba name-----(hba name eth4/eth5)
dmesg | grep eth0/mii-tool -v th0---ethtool eth9(ethtool <<interface_name>>)
nic card --aix
use ifconfig -a to chk which network card is used
entstat -d eth0(toshow nic card settings)
NIC settings in AIX
netstat -v|grep -i speed
entstat -d
***************************************
http://seer.entsupport.symantec.com/docs/300810.htm
http://seer.entsupport.symantec.com/docs/300810.htm
-bash-3.2$ more /etc/xinetd.conf
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
#
enabled
=
#
disabled
=
# Define general logging characteristics.
log_type
= SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
#
#
#
no_access
only_from
max_load
cps
instances
per_source
=
=
=
=
=
=
0
50 10
50
100
BEFORE:
-bash-3.2$ more vnetd.INC000017687657
# Service vnetd for NetBackup
service vnetd
{
socket_type
= stream
protocol
= tcp
wait
= no
user
= root
server
= /usr/openv/bin/vnetd
disable
= no
instances
= UNLIMITED
cps
= 1000 1
********************************************************************************
******************************************
Sun Clusert Commands
/usr/cluster/bin/scswitch -z -g bkup-rg -h <dest_nodename>
scswitch -z -g scnb-harg -h NODE_ONE
scstat
scstat -g
scstat -g
va2spvma11:/# scswitch -z -g scnb-harg -h va2spvma12
scswitch: NOTICE: Resource group(s) {scvert-harg on node va2spvma11} were switch
ed to different nodes as a result of their strong resource group affinities for
resource group scnb-harg.
Veritas Cluster Commands:
Veritas Cluster Cheat sheet(http://www.datadisk.co.uk/html_docs/veritas/veritas_
cluster_cs.htm)
va2spvma41:/usr/openv/netbackup/bin# hastatus -summary
-- SYSTEM STATE
-- System
State
Frozen
A va2spvma41
A va2spvma42
RUNNING
RUNNING
0
0
-- GROUP STATE
-- Group
System
Probed
AutoDisabled
State
B
B
B
B
va2spvma41
va2spvma42
va2spvma41
va2spvma42
Y
Y
Y
Y
N
N
N
N
ONLINE
OFFLINE
ONLINE
ONLINE
nbu_group
nbu_group
nics_sg
nics_sg
-- GROUPS FROZEN
hastatus -summary
hagrp -switch <group> to <sys>
hagrp -freeze <group>
hagrp -switch nbu_group -to va2spvma42
************************
********************************************************************************
**********************************************************
--HOST=va2apamt010 USER=root DIR=/
# /home/nbtw9h5/AIX_Tape_Drive_Recfg.ksh ==to recan the tape drives
cfgadm al |grep I tape=solaris
cat /proc/scsi/scsi=linux
lsdev Cc tape=aix
lsattr -El fscsi2|grep -i
# errpt |head
IDENTIFIER TIMESTAMP T C
07A33B6A 0918092811 P H
07A33B6A 0918092711 P H
07A33B6A 0918092611 P H
07A33B6A 0918092511 P H
07A33B6A 0918092411 P H
07A33B6A 0918085411 P H
07A33B6A 0918085311 P H
07A33B6A 0918085211 P H
07A33B6A 0918085111 P H
switch
RESOURCE_NAME
rmt3
rmt3
rmt3
rmt3
rmt3
rmt3
rmt3
rmt3
rmt3
0L-08-01
0L-08
0L-08-02
0L-08-02
0L-08-02
0L-08-02
0L-08-02
DESCRIPTION
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
TAPE DRIVE FAILURE
Fibre Channel Network Protocol Device
FC Adapter
FC SCSI I/O Controller Protocol Device
Other FC SCSI Tape Drive
Other FC SCSI Tape Drive
Other FC SCSI Tape Drive
Other FC SCSI Tape Drive
-s DebugLevel=0 -s DiagnosticLevel=0
examp
********************************************************************************
***************************************************
to modify the volume pool from cli
./bpplinfo ca4ascor030_aix_sys1_sev3 -modify -pool T10K_Offsite
to change the stu via cli
./bpplinfo ca4ascor030_aix_sys1_sev3 -modify -residence ca4ascor020-dlt2-robot-a
cs-1
./vmpool -bx -listall = to view volume pool list from cli
********************************************************************************
****************************************
./bpclient=to change the vnetd port settings (do it from the master server)it is
changed coz it can use random ports for communication
./bpclient -client tx8aiuci00370 -update -connect_options 2 2 2
Windows- <C:\Srvapps\VERITAS\NetBackup\bin>bpcd
That should generate the following log entry and prove the binary is executable
and generates a log entry
Then to test the bpcd port locally on the client server from the command prompt,
run this telnet test using the loopback interfacetelnet localhost 13782 or
telnet 127.0.0.1 13782
********************************************************************************
***************************************
windows client fails with Error 24 try to edit the following parameters
http://support.microsoft.com/kb/170359/
win2008
Windows provides a mechanism to control the initial retransmit time, and then th
e retransmit time is self-tuning. To change the initial retransmit time, modify
the following values in the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters
********************************************************************************
*******************************************
VVS issue for windows system
WWSL3,
Below are the instructions to fix the vssadmin . No reboot is required.
To resolve this issue, follow these steps:
Click Start, click Run, type cmd, and then click OK.
Type the following commands at a command prompt. Press ENTER after you type each
command.
cd /d %windir%\system32
Net stop vss
Net stop swprv
regsvr32 ole32.dll
regsvr32 oleaut32.dll
regsvr32 vss_ps.dll
vssvc /register
regsvr32 /i swprv.dll
regsvr32 /i eventcls.dll
regsvr32 es.dll
regsvr32 stdprov.dll
regsvr32 vssui.dll
regsvr32 msxml.dll
regsvr32 msxml3.dll
regsvr32 msxml4.dll
Note The last command may not run successfully.
Perform a backup operation to verify that the issue is resolved.
********************************************************************************
*******************************************
display drive 11,2,1,11 -f type serial_num
C. Do
12/05/08
B. Harmer
08/31/09
171.201.35.33
mo8spvma30 #mo8spvmv33
C. Do
02/17/10
#########################################################################
# NB master: mo8spvma33
#########################################################################
171.201.35.21 mo8spvma33 #mo8spvma33 C.Jones
04/19/10
171.201.33.85 mo8spvma33 #mo8xbidw01 C.Jones
04/19/10
171.201.33.86 mo8spvma33 #mo8xbwdb01 C.Jones
04/19/10
171.201.34.67 mo8spvma33 #lkcma31367 M. Holbert
06/07/10
171.201.36.24 mo8spvma33 #mo8xcora0001 Ravi.D
07/18/10
171.201.34.169 mo8spvma33 #lkcma35319.bankofamerica.com Ravi.D
07/18/10
171.201.18.51 mo8spvma33 #mo8absap120 R.DaRosa
07/22/10
171.201.18.50 mo8spvma33 #mo8absap110 R.DaRosa
07/22/10
171.201.196.211 mo8spvma33 #mo8abmxo121 S.Meadows
07/22/10
171.201.33.110 mo8spvma33 #mo8xchrs001 C.Jones
09/13/10
171.201.33.111 mo8spvma33 #mo8xchrs002 C.Jones
09/13/10
171.201.2.64
mo8spvma33 #mo8xdhrs001 C.Jones
09/13/10
171.201.2.8
mo8spvma33 #mo8xqhrs001 C.Jones
09/13/10
171.201.36.90 mo8spvma33 #mo8xcora01 J.Lehtela
09/17/10
171.201.34.224 mo8spvma33 #lkcme22168 Ravi.D
10/28/10
171.201.36.143 mo8spvma33 #mo8xccnt05 C.Jones
11/12/10
171.201.34.51 mo8spvma33 #lkcme22791 C.Jones
11/12/10
"internet.addresses" 74 lines, 3758 characters
***********
va2spacs401:/banktools/share/bin# su - acsss
Sun Microsystems Inc. SunOS 5.10
Generic January 2005
$ acsss_config
ACSLS feature configuration
Please enter the number followed by Return for your choice
from the following menu to configure product behavior in that area.
Press ? followed by the Return key for help.
1:
2:
3:
4:
5:
6:
7:
8:
E:
$ acs.menu^C
$ acs_config
ksh: acs_config: not found
type acsss_config
$ acsss_config
1:
2:
3:
4:
5:
6:
7:
8:
E:
Menu choice: 6
Access control tables have been rebuilt.
2011-01-13 02:20:38
2432 I rebuild_ac_lists.c 1 107
rebuild_ac_lists: Access control tables have been rebuilt.
ACSLS feature configuration
Please enter the number followed by Return for your choice
from the following menu to configure product behavior in that area.
Press ? followed by the Return key for help.
1:
2:
3:
4:
5:
6:
7:
8:
E:
Menu choice: E
$ cmd_proc -ql
********************************************************************************
*************************************************
How to configure NetBackup Resource Broker (nbrb) to improve resource allocation
performance
http://www.symantec.com/business/support/index?page=content&id=TECH57942&locale=
en_us
********************************************************************************
*************************************************
linux log messages path=cd /var/log-messages
********************************************************************************
************************************************
Command to check the replaced drive and correcting the drive
root@plaaxmed01:/opt/openv/volmgr/bin # ./tpautoconf -report_disc
======================= Missing Device (Drive) =======================
replace_drive PLA_L180_LTO04
path /dev/rmt0.1
********************************************************
to check avamar grid version
status.dpn
*******************************
check if the below ports exists in /etc/services
Netbackup default ports
# NetBackup services #
bprd
13720/tcp
bprd
13720/udp
bpdbm
13721/tcp
bpdbm
13721/udp
bpcd
13782/tcp
bpcd
13782/udp
vnetd
13724/tcp
#
#
#
#
#
#
#
vnetd
13724/udp
vopied
13783/tcp
vopied
13783/udp
bpjava-msvc
13722/tcp
bpjava-msvc
13722/udp
bpjobd 13723/tcp
bpjobd
nbdb
13785/tcp
nbdb
13785/udp
# End NetBackup services #
#
#
#
#
#
# NetBackup Database
# NetBackup Database
[ OK ]
00:00:00 grep xinetd
[ OK ]
00:00:00 xinetd -stayalive -pidfile /var/
00:00:00 grep xinetd
*:*
LIST
*****************************************************
vxlogcfg settings=http://www.netbackupcommands.com/index.php?option=com_content&
task=view&id=40&Itemid=29
To set the maximum logging level for all daemons run:
# cd /usr/openv/netbackup/bin
# ./vxlogcfg -a -p 51216 -o Default -s DebugLevel=5 -s DiagnosticLevel=5
Note: For servers with high logging levels and lots of activity, the vxlogview c
ommand can take a long time to complete. This delay will be more noticeable the
further back the query has to search.
To return to the default level of logging for all daemons run:
# cd /usr/openv/netbackup/bin
# ./vxlogcfg -a -p 51216 -o Default -s DebugLevel=1 -s DiagnosticLevel=1
To disable logging for all daemons run:
# cd /usr/openv/netbackup/bin
# ./vxlogcfg -a -p 51216 -o Default -s DebugLevel=0 -s DiagnosticLevel=0
After setting these options run vxlogcfg -p 51216 -o Default -l to verify the c
hange is in place. No process restart is needed for changes to Unified Logging
to take affect.
********************************************************
to check the HBA details in solaris
tx8siucd0302:/# luxadm -e port
/devices/pci@9,600000/SUNW,qlc@2/fp@0,0:devctl
/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:devctl
/devices/pci@8,600000/SUNW,qlc@1,1/fp@0,0:devctl
/devices/pci@8,600000/SUNW,qlc@2/fp@0,0:devctl
/devices/pci@8,600000/SUNW,qlc@2,1/fp@0,0:devctl
CONNECTED
CONNECTED
NOT CONNECTED
CONNECTED
NOT CONNECTED
-e dump_map /devices/pci@9,600000/SUNW,qlc@2/fp@0,0:devct
Port WWN
21000014c3caaab4
21000014c3cac743
250000144f1e8bed
Node WWN
20000014c3caaab4
20000014c3cac743
240000144f1e8bed
Type
0x0 (Disk device)
0x0 (Disk device)
0x1f (Unknown Type,Host
R c
***************************************
Oracle backup which log files to be created
dbext under /usr/openv/netbackup/logs/user_ops,
dbclinet, bphdb and make verbose=5
/usr/openv/netbackup/dbclient
/usr/openv/netbackup/dbext/
**********************
NDMP
./tpautoconf -probe CRPKMOFP00
*************************
Tpclean
./tpclean -M STK.T10KB.L0.d8
l s mm/dd/yyyy HH:MM:SS
e mm/dd/yyyy H
*******************
Mail-ID's
DG is - [email protected]
*********************************
Libattach path
\crprdniisl2e\ftproot\Sun\LibAttach\1.4.2\Install\patch\138477-01 (file://crprdn
iisl2e/ftproot/Sun/LibAttach/1.4.2/Install/patch/138477-01
*******************
Linux commands
chkconfig --list ==will chk if servives or on/off
************************************
NDMP COMMANDS to check if volume exists or not
# ssh nkcma00101n2 ndmpd password backup
[root@tx2xpvlxxl ~]# ssh crpwtxu01n2 rdfile /etc/exports|grep -i acx
[root@tx2xpvlxxl ~]# ssh crpwtxu01n2 rdfile /etc/exports|grep -i 17669
[root@tx2xpvlxxl ~]# ssh crpwtxu01n2 rdfile /etc/exports|grep -i vol4
./tpautoconf -probe crprtxfp01.bankofamerica.com |grep -i tape
i just run df -g VOL_NAME
you can run vol status VOL_NAME also
or just df -g then grep the volume name
ssh scsinfnpds03 vol status /vol/dbdump_qar/ ==command to check status of a volu
me
ssh scsinfnpds03 vol status === shows the status of all the volumes
ssh crprtxfp01 storage alias
./set_ndmp_attr -verify <client Name>
./set_ndmp_attr -probe <Client Name>
**command to check tape drives s/n
storage show tape
**commandto show hba adapter on filers
storage show adapter -a
command shows Display all of the sysconfig reports
sysconfig -A
crprvafp03n1> mt -f nrst0a status
Tape drive: STK
T10000B
Status: offline
Format: STK T1 tape 1000GB
fileno = -1 blockno = -1 resid = 0
Usage:
pbxcfg
pbxcfg
pbxcfg
pbxcfg
{ -a
{ -e
-p [
-s {
pbxcfg -v
pbxcfg -h
commands:
-a, --add
--enable
--disable
--print
--set
--user
--securemode
--portno
--sysuser
--debuglevel
--cluster
--cfgfile
--help
--version
Auth User
Secure/Insecure mode
Port Number
Local System user on Windows
Debug Level
Cluster enable/disable
Registry hive
Display help
Display version of the CLI
-r, --remove
-e,
-d,
-p,
-s,
options:
-u,
-m,
-n,
-w,
-l,
-C,
-c,
-h,
-v,
************************************************************
to add a cluster name and a two node name to gets the backups successful
./nbemmcmd -addhost -machinename wkcme25811v01 -machinetype app_cluster
./nbemmcmd -updatehost -add_server_to_app_cluster -machinename wkcme25811n01 -ma
chinetype media -clustername wkcme25811v01 -netbackupversion 6.5.3 -masterserver
mo8spvma33
./nbemmcmd -updatehost -add_server_to_app_cluster -machinename wkcme25811n02 -ma
chinetype media -clustername wkcme25811v01 -netbackupversion 6.5.3 -masterserver
mo8spvma33
*********************************
how to ftp to symantec site from bank laptop
:\Documents and Settings\nbevlui>ftp ftpproxy
Connected to ftpproxy-bc.3dns.bankofamerica.com.
220 Bank of America - bcpxyric3 - FTP proxy
User (ftpproxy-bc.3dns.bankofamerica.comnone)): iosupport@[email protected]
.symantec.com
iosupport@[email protected]
iS*pp8rT1@Anu89sha
iS*pp8rT1@nbkpasswd
331 Enter password.
Password:
230 Virtual user iosupport logged in.
ftp> bin
200 Command okay.
*********************************************
add_media_server_on_clients.exe
to add master server bp.conf to all the clients
http://www.symantec.com/business/support/index?page=content&id=TECH48402
*****************************
backups failing with 49
1)backups fails due to bpbkar file is corrupt
2)http://www.symantec.com/business/support/index?page=content&id=TECH64711 for H
P-UX machines
(sdbe026a:root)# /usr/contrib/bin/show_patches |grep -i PHSS_33946
PHSS_33946
HP aC++ -AA runtime libraries (aCC A.03.85)
*********************
command to compress the db/images or catalog
./bpimage -compress -allclients
********************************************
backups failing with 21
remove the unwanted media servers from client bp.conf and set the client time ou
t=3600
*********************************
Communication with the server has not been initiated or the server status has no
t been retrieved from the serve
Oracle backups failing with error 6
Problem
STATUS CODE 6: NetBackup Oracle RMAN backups are failing with a NetBackup Status
Code 6 (the backup failed to back up the requested files) and an ORA-27028 erro
r message.
Error
the backup failed to back up the requested files
Solution
Overview:
Receiving ORA-27028 and NBU status code 6 when attempting Oracle Recovery Manage
r (RMAN) backup.
Troubleshooting:
Enable the dbclient log file from the Oracle server.
Log Files:
The dbclient log file on the Oracle server shows the following message:
<16> openProgressFile: ERR - can't make directory path: </usr/openv/netbackup/lo
gs/user_ops/dbext/logs>: 13
<16> CreateNewImage: ERR - openProgressFile() failed
<16> VxBSACreateObject: ERR - Could not create new image with file /bk_10_1_6165
80548.
<16> xbsa_CreateObject: ERR - VxBSACreateObject: Failed with error:
Server Status: Communication with the server has not been initiated or the ser
ver status has not been retrieved from the serve
<4> sbtend: INF - --- END of SESSION --The Oracle UNIX user account used for the backup did not have read/write privile
ges to the /usr/openv/netbackup/logs/user_ops/ directory or a subdirectory of th
at path.
Resolution:
Change the file modes of the following directories to 777 - "chmod 777 <path>" w
here <path> is:
/usr/openv/netbackup/logs/user_ops
/usr/openv/netbackup/logs/user_ops/dbext
/usr/openv/netbackup/logs/user_ops/dbext/logs
Read/write/execute permissions by user, group and other for these directories ar
e required for successful user initiated backups including Oracle RMAN backups.
*********************************************************
The netbackup start script S77netbackup is found in /etc/user_initlevels on the
AIX servers.
A ticket needs to be opened to SA group that supports these servers as there mus
t have been error in the server build script because
On both of these servers script is misspelled
_S77_vnetbkup
This is way netbackup is not automatically restarted on reboot
r --HOST=va2apcad010 USER=nbtteq5 DIR=/home/nbtteq5
$ ls -l /etc/user_initlevels|grep vnet
-rwxr--r-1 root
system
529 Oct 11 2008 K77_vnetbkup
-rwxr--r--
1 root
system
***********************************
user id got lokced in linux
root@tx8xufrd10 ~]# pam_tally2 --user nbkupyl
Login
Failures Latest failure
From
nbkupyl
16
07/07/10 05:26:50 B001E4FA7BEF3.asia.bankofamerica.com
[root@tx8xufrd10 ~]# pam_tally2 --user nbkupyl --reset
getent passwd nbkupyl= to know whos id is it in linux
********************************************************
Error code 13
http://www.symantec.com/business/support/index?page=content&id=TECH71821
*************************
Operation/OS type
SOLARIS HP-UX AIX
LINUX WINDOWS
Tape drive visibility at OS end cfgadm -al | grep -i tape
ioscan -fnC tape
lsdev -Cc tape cat /proc/scsi/scsi | grep -i tape
**************************
BPCD
Administration Console:
1. Launch the NetBackup Administration Console, connecting to the master server
2. Expand Host Properties in the left pane
3. Select Master Server in the left pane
4. Click the name of the master server in the right pane
5. Select the Client Attributes section
6. Add the name of the client in question if it isn't listed
7. In the Connect Options tab for the client, make the following changes:
BPCD connect back -> "Random port"
Ports -> "Reserved port"
Daemon connection port -> "Daemon port only"
telnet localhost bpcd
*********************