Here is one way - I'm sure that Charlie B won't like it, but that's ok
#!/bin/sh
#
# Get Variables and Print them out
# This script is public domain / freeware (if anybody cares??)
#
# If you just want to print out the information:
#
/sbin/e-smith/db configuration show ExternalIP | sed 's/^.*=//'
/sbin/e-smith/db configuration show LocalIP | sed 's/^.*=//'
/sbin/e-smith/db configuration show GatewayIP | sed 's/^.*=//'
/sbin/e-smith/db configuration show ExternalNetmask | sed 's/^.*=//'
# If you want to store the information in a variable to use later:
SRV=/sbin/e-smith/db configuration show SambaServerName | sed 's/^.*=//'
echo "The name of your server is: $SRV. How about that?"
The output looks like this:
35.28.234.54
192.168.1.1
192.168.65.1
255.255.255.0
The name of your server is: apollo. How about that?
And to get a list of variables:
cat /home/e-smith/configuration | more
I don't know, like I said this is just a start and I'm sure someone will bitch about it.