![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is the best practice to collect stats on sybase 12.5 on HP-UX ? How can I run sp_sysmon? Do you have a small scripts for helping me? |
#3
| |||
| |||
|
|
#!/bin/ksh if [ -z $1 ] then TIMELIMIT="'00:10:00'" else TIMELIMIT="'$1'" fi if [ -z "$SYBASE_OCS" ] then SYBPATH="$SYBASE" else SYBPATH="$SYBASE/$SYBASE_OCS" fi $SYBPATH/bin/isql -Usa -Pxxxxxxxxxx \ -o $SYBASE/statistics/${DSQUERY}_sp_sysmon_`date +%m-%d-%y`_`date +%H:%M:%S`\ -e <<END sp_sysmon $TIMELIMIT go END cd $SYBASE/statistics find . -name ${DSQUERY}_sp_sysmon\* -mtime +30 -exec rm {} \; exit 0 "David McGeorge" <soalvajavab1 (AT) yahoo (DOT) com> wrote in message news:bc907f76.0407181952.4c6f3301 (AT) posting (DOT) google.com... What is the best practice to collect stats on sybase 12.5 on HP-UX ? How can I run sp_sysmon? Do you have a small scripts for helping me? |
#4
| |||
| |||
|
|
How can I redirect the output to a log file. |
|
basically my goal is to create a nice formatted historical trend for our prod database |
#5
| |||
| |||
|
|
How can I redirect the output to a log file. basically my goal is to create a nice formatted historical trend for our prod database |
|
"Willie Kraatz" <wkraatz (AT) csc (DOT) com> wrote in message news:<cdgir8$55t$1 (AT) lore (DOT) csc.com>... #!/bin/ksh if [ -z $1 ] then TIMELIMIT="'00:10:00'" else TIMELIMIT="'$1'" fi if [ -z "$SYBASE_OCS" ] then SYBPATH="$SYBASE" else SYBPATH="$SYBASE/$SYBASE_OCS" fi $SYBPATH/bin/isql -Usa -Pxxxxxxxxxx \ -o $SYBASE/statistics/${DSQUERY}_sp_sysmon_`date +%m-%d-%y`_`date +%H:%M:%S`\ -e <<END sp_sysmon $TIMELIMIT go END cd $SYBASE/statistics find . -name ${DSQUERY}_sp_sysmon\* -mtime +30 -exec rm {} \; exit 0 "David McGeorge" <soalvajavab1 (AT) yahoo (DOT) com> wrote in message news:bc907f76.0407181952.4c6f3301 (AT) posting (DOT) google.com... What is the best practice to collect stats on sybase 12.5 on HP-UX ? How can I run sp_sysmon? Do you have a small scripts for helping me? |
![]() |
| Thread Tools | |
| Display Modes | |
| |