I have created the following functions and have added them to .profile: [ksh]
jobsfor () {bpdbjobs | grep "^ *$1"}
driveson () {vmoprcmd -h $1}
errorson () {bperror -U -problems -client $1}
getallservers () {grep "^SERVER " /usr/openv/netbackup/bp.conf |/usr/bin/awk '{print $3}'}
getallclients () {bpclclients -allunique -noheader | awk '{print $3}'}
getallpolicies () {bpcllist -allclasses -L | grep "Policy Name:" | sed 's/Policy Name: //'}
getallpools () {vmpool -listall | grep "pool name:" | awk '{print $3}'}
clientconfig () {bpgetconfig -M $1}
The functions where I have added sed & awk do not work...
When I login I get the following messages:
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
sed: command garbled: s/Policy Name: //}
awk: syntax error near line 1
awk: bailing out near line 1
These commands by themselves work....
Thanks....
Joe Despres
jobsfor () {bpdbjobs | grep "^ *$1"}
driveson () {vmoprcmd -h $1}
errorson () {bperror -U -problems -client $1}
getallservers () {grep "^SERVER " /usr/openv/netbackup/bp.conf |/usr/bin/awk '{print $3}'}
getallclients () {bpclclients -allunique -noheader | awk '{print $3}'}
getallpolicies () {bpcllist -allclasses -L | grep "Policy Name:" | sed 's/Policy Name: //'}
getallpools () {vmpool -listall | grep "pool name:" | awk '{print $3}'}
clientconfig () {bpgetconfig -M $1}
The functions where I have added sed & awk do not work...
When I login I get the following messages:
awk: syntax error near line 1
awk: bailing out near line 1
awk: syntax error near line 1
awk: bailing out near line 1
sed: command garbled: s/Policy Name: //}
awk: syntax error near line 1
awk: bailing out near line 1
These commands by themselves work....
Thanks....
Joe Despres