dbTalk Databases Forums  

sp_sysmon

comp.databases.sybase comp.databases.sybase


Discuss sp_sysmon in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David McGeorge
 
Posts: n/a

Default sp_sysmon - 07-18-2004 , 10:52 PM






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?

Reply With Quote
  #2  
Old   
Willie Kraatz
 
Posts: n/a

Default Re: sp_sysmon - 07-19-2004 , 08:37 AM








#!/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

Quote:
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?



Reply With Quote
  #3  
Old   
David McGeorge
 
Posts: n/a

Default Re: sp_sysmon - 07-21-2004 , 03:40 PM



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

Quote:
#!/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?

Reply With Quote
  #4  
Old   
Larry Coon
 
Posts: n/a

Default Re: sp_sysmon - 07-21-2004 , 10:05 PM



David McGeorge wrote:

Quote:
How can I redirect the output to a log file.
At the Unix shell? With ">" or ">>". See your OS docs.

Quote:
basically my goal is to
create a nice formatted historical trend for our prod database
I ended up hacking the code of sp_sysmon to write the stats
I care about (avg cpu busy, opened connections, committed
transactions) to a file. I then have a cron job that runs
my proc periodically. All my stats are then in a Sybase
table where they can be queried easily.


Larry Coon
University of California


Reply With Quote
  #5  
Old   
Michael Peppler
 
Posts: n/a

Default Re: sp_sysmon - 07-22-2004 , 01:15 AM



On Wed, 21 Jul 2004 13:40:45 -0700, David McGeorge wrote:

Quote:
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
The script below *does* output to a file (see the -o option).

Me I run a perl script to generate the sysmon data, which lets me parse
and reformat the output as necessary.

Michael

Quote:
"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?
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.