"Salvatore D. Tepedino" wrote:
> > For the database file names: Can you do the names in regular dotted
> > quad:port
> > notation? It will make it easier for me to read, or is there some good
> > reason to do it this way?
> The RRD files, you mean? Well, it uses the same notation that the
> /proc/net/ip_vs file uses. It's just easier to parse that way. You
> shouldn't have to worry about the rrd files at all as the update script
> will handle them. Besides, I don't like to use characters that need to
> be escaped in file names if I don't have to (as a : would need to be).
OK, I guess I learn to ignore them. I'm just looking around for familiar
objects to get a handle on what's going on and a filename in hex is out
of my league.
> Here's a quick script to translate a hex IP to a standard dotted quad:
> IP=$(echo $(echo $1 | tr a-z A-Z | sed 's/\(..\)/;\1/g;s/^/ibase=16/' | bc) |
> sed 's/ /./g')
> echo $IP
Joseph Mack PhD, High Performance Computing & Scientific Visualization
SAIC, Supporting the EPA Research Triangle Park, NC 919-541-0007
Federal Contact - John B. Smith 919-541-1087 - smith.johnb@xxxxxxx