Displaying 1 result from an estimated 1 matches for "netenv".
Did you mean:
  setenv
  
2009 Jan 15
8
Pattern matching in case statement
Hi all,
 
I need my servers to decide which network they are in (i.e. dmz), and
the only clue is the servers IP-address. I was trying to accomplish it
like this, but it doesn''t work:
 
case $ipaddress {
    "10.1.1.*": {
        $network = "net1"
        }
    "10.2.2.*.*": {
        $network = "net2"
        }
    "10.3.3.*": {