BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : RE : RE : RE : RE : {bb} Windows bb script extension question



Hi, 

I tried with the following content (without the ###, which are simply here to 
mark the beginning and end of the file) : 
########
combo 

status eva1.cpu green Mon Jun 27 08:56:21 2005 load=4% 
LOAD AVG on eva1 is 4 
 
CPU Data Ctlr Serial         Node                
  %    %                                         
--- ---- ---- -------------- ------------------- 

  2    2 XXXX ZZZZZZZZZZZZZZ NNNN-NNNN-NNNN-NNNN 
  7    7 YYYY ZZZZZZZZZZZZZZ NNNN-NNNN-NNNN-NNNN 

status eva2.cpu green Mon Jun 27 08:56:21 2005 load=1% 
LOAD AVG on eva2 is 1 
 
CPU Data Ctlr Serial         Node                
  %    %                                         
--- ---- ---- -------------- ------------------- 

  2    1 XXXX ZZZZZZZZZZZZZZ NNNN-NNNN-NNNN-NNNN 
  0    0 YYYY ZZZZZZZZZZZZZZ NNNN-NNNN-NNNN-NNNN 
####

And the log file show : 
#### 
::::::::::::::
logs/eva1.cpu
::::::::::::::
green Mon Jun 27 08:56:21 2005 load=4%


Status unchanged in 2.91 days
Status message received from 99.54.60.25
####

Did I miss something ? 

N F 

-----Message d'origine-----
De : owner-bb@bb4.com [mailto:owner-bb@bb4.com] De la part de Robert-Andre Croteau
Envoyé : vendredi 24 juin 2005 17:00
À : bb@bb4.com
Objet : Re: RE : RE : RE : RE : {bb} Windows bb script extension question


FIGARO Nicolas wrote:
> I tried this (on windows 2000 bb client 1.08d):
> bb bbdisplay_ip "combo status eva1.cpu message_eva1 status eva2.cpu message_eva2", but it doesn't work. 
> 
> Has anyone ever used a combo message on windows 2000 ?

The combo message must be in this format

combo

status eva1.cpu message_eva1
...

status eva2.cpu message_eva2
...


I believe the best way to do it is to write the log to a file then execute bb.exe in the following manner:

type xxx | bb.exe 0.0.0.0 -

where xxx is the temporary log filename. The '-' in the bb.exe command tells it to read from stdin.

try that, let me know if it works.

bye
-- 
Robert-Andre Croteau    BSD,MOTU

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index