If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > onstat -d -- how to vary the order?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-03, 12:50
SarahBellum SarahBellum is offline
Registered User
 
Join Date: Jul 2003
Location: Seattle
Posts: 8
Question onstat -d -- how to vary the order?

onstat -d sorts the chunks by chunk number. Is there a command that would sort this listing by dbs?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 07-30-03, 04:06
eherber eherber is offline
Registered User
 
Join Date: Aug 2002
Location: Bonn/Germany
Posts: 152
A quick and dirty approach:

onstat -d | sort +2n

However you might also take a look at the appropriate
sysmaster tables (syschunks, sysdbspaces) to access
the same information in a more structured way.

You can also check my website for sysmaster queriers:

http://www.herber-consulting.de/cgi-...action=IfmxSmi
__________________

Best regards

Eric
--
IT-Consulting Herber
WWW: http://www.herber-consulting.de
Email: eric@herber-consulting.de

***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Reply With Quote
  #3 (permalink)  
Old 07-30-03, 15:36
SarahBellum SarahBellum is offline
Registered User
 
Join Date: Jul 2003
Location: Seattle
Posts: 8
Thank you, this is so very helpful!

Can you explain to me what exactly the "sort +2n" means?
Reply With Quote
  #4 (permalink)  
Old 07-31-03, 03:43
eherber eherber is offline
Registered User
 
Join Date: Aug 2002
Location: Bonn/Germany
Posts: 152
numeric sort on the third field (i.e. 0,1,2)

Just execute: 'man sort'
__________________

Best regards

Eric
--
IT-Consulting Herber
WWW: http://www.herber-consulting.de
Email: eric@herber-consulting.de

***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Reply With Quote
  #5 (permalink)  
Old 07-31-03, 20:19
SarahBellum SarahBellum is offline
Registered User
 
Join Date: Jul 2003
Location: Seattle
Posts: 8
Great, thank you once again, your help is much appreciated.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On