RE: Lower case host names - Little Help?
"Huddleston, John" <[email protected]> Thu, 10 Jun 2004 07:27:14 -0600
| Newsgroups | gmane.network.bb4.devel |
|---|---|
| Message-ID | <[email protected]> |
Here is some C code that you could use...
#include <stdio.h>
#define TRUE 1
#define FALSE 0
int ch;
int upper(), lowercase();
main()
{
int iret;
while( (ch = getc(stdin)) != EOF && ch != NULL )
{
if( (iret = lower()) ) lowercase();
putc(ch,stdout);
}
}
int lower()
{
return( ( 65 <= ch && ch <= 90 ) ? TRUE:FALSE );
}
int lowercase()
{
ch += 32;
}
John Huddleston P.E., PhD
Application Engineer
USDA NRCS ITC
2150A Centre Ave, T231
Fort Collins, CO 80526
970-295-5485
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, June 10, 2004 6:46 AM
To: [email protected]
Subject: RE: {bbd} Lower case host names - Little Help?
Does nobody have a clue as to how to do this?
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Larsen,
Stewart
Sent: Tuesday, June 08, 2004 12:38 PM
To: [email protected]
Subject: RE: {bbd} Lower case host names
I was looking for a server-based solution. I am familiar with aliases on
the clients. Surely there is a way that I can have the server convert
the strings to lower case. If someone could point me at the right file
to look at, I have a good deal of programming and scripting experience.
Stewart
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard
Warkent
Sent: Tuesday, June 08, 2004 12:12 PM
To: [email protected]
Subject: Re: {bbd} Lower case host names
At 07:19 AM 6/8/2004, you wrote:
><snipped>
>Is there an easy way that I can set up bbnet so that when it receives a
>report from a host, it makes the name lower case before it logs the
>data and displays the results?
>
>Stewart
1) Make sure the host names in bb-hosts is lower case (so network
tests
are reported to lower case name)
2a) in *nix systems for each client, use the bb syntax "alias" (or
aliasname, close any way) to have that client report in the way you
want.
2b) for windows clients, you are allowed to configure the hostname the
results are reported as.
You should be able to find the exact format by searching the bb
documents for alias.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.