Sponsored Content
Top Forums UNIX for Advanced & Expert Users recognize servers environment Post 302513915 by kalak on Thursday 14th of April 2011 10:15:46 AM
Old 04-14-2011
Some of ideas come to mind.
1. Change the prompt to somehow remind them it's production (like making the hostname bold/red/reverse) How to make custom prompts

2. There could also be a molly-guard for restoring, or copying, etc. So a wrapper script for the worried commands. Say your backup software uses the command "recover", put a script in a directory earlier in the path that will look similar to (meaning I haven't tested this):
Code:
is-production=`hostname|egrep production1|production2|production3`
if [ $is-producation ]
     echo "this is production, what were you thinking?"
else
     $@
fi;

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Doesn't recognize the mv command

I'm nearly finished my program i've got everything in place and than when i run it it comes back with the reply mv: command not found. This is the code that seems to be causing the problem. elif then echo "There are more than one '$1' files in the system." echo "Please... (2 Replies)
Discussion started by: zoolz
2 Replies

2. Programming

How to recognize that the server is currently unavailable?

hi all How to recognize that the server is currently unavailable? by programatically.give some example. am using fedora5 AMD cheers (2 Replies)
Discussion started by: munna_dude
2 Replies

3. Solaris

OS not recognize the new disk while adding

Hi all, I tried to add the new disk into veritas control.but the OS/veritas is not recognize the disk.so how i can know disk status or the disk added or not into veritas?please help me out step by step procedure.i would really thankful to all. regards Krishna (4 Replies)
Discussion started by: murthy76
4 Replies

4. UNIX for Dummies Questions & Answers

Re: How do I recognize a zombie process?

Hey Guys, I am not really new to Unix/Linux however I was never taught how to spot a zombie process. I used top to check out the processes I was running and how the resources were looking and in the upper right it said 1 zombie, I have attached a jpeg of it. Thank you in advance for your... (4 Replies)
Discussion started by: pikecoguy
4 Replies

5. UNIX for Dummies Questions & Answers

how does cups recognize a new driver?

hi there, i am attempting to recognize a network printer on my red hat box. i know the IP, i have procured the correct driver, however, CUPS (nor the add printer utility) doesn't recognize the driver nor the printer type. i am assuming this has to do with the location of the driver. can anyone... (8 Replies)
Discussion started by: vickenyon
8 Replies

6. Solaris

Solaris recognize HW Raid ??

Hardware: HP P2000 HP DL380 G7 with Solaris Software: Solaris 10 05/08 I had made a Hardware raid on P2000 and install solaris on G7, The raid card controller is working fine. How can I make the raid works on OS?? "raidclt" is getting nothing :wall::wall: Thanks (11 Replies)
Discussion started by: stanley1024
11 Replies

7. Debian

CUPS Cannot recognize lp0

I am trying to print from Debian and receive the following message: "Unable to open device file"/dev/lp0": Permission Denied" The permissions for lp0 are 666. Advice and comments, please. :wall: Thanks (0 Replies)
Discussion started by: woofy613
0 Replies

8. Shell Programming and Scripting

Do you recognize this data structure?

I am working with an undocumented feature of a software product (BladeLogic). It is returning the below string in response to a query. It is enclosed with square brackets, "records" are separated with commas and "fields" separated with semicolons. My thought was that this might be some basic... (1 Reply)
Discussion started by: dshcs
1 Replies

9. UNIX for Dummies Questions & Answers

Pipe not recognize with gawk

Hi ! I am a newbie with Unix and I try to remove the "|" FS in this file: 1|2|3|4|5|6 to get: 123456 by using: gawk 'BEGIN{FS=""} {gsub("|","",$0); print $0}' file but nothing changes. Or even when I try to change "|" by "%"with this command: gawk 'BEGIN{FS=""} {gsub("|","%",$0)... (3 Replies)
Discussion started by: beca123456
3 Replies

10. Shell Programming and Scripting

How to recognize the Shell?

Hello All I am working on Red Hat Enterprise Linux Server release 5.1 when I logged on to the shell and then write echo $SHELL it shows me the result /bin/bash and when I write csh, the prompt changes and I feel that I am now working upon C shell but when I do echo $SHELL it shows me the... (9 Replies)
Discussion started by: adisky123
9 Replies
GEOIPLOOKUP6(1) 					      General Commands Manual						   GEOIPLOOKUP6(1)

NAME
geouplookup6 - look up country using IP Address or hostname SYNOPSIS
geouplookup6 [-d directory] [-f filename] [-v] <ipaddress|hostname> DESCRIPTION
geouplookup6 uses the GeoIP library and database to find the Country that an IP address or hostname originates from. You must install a database suitable for geoiplookup6. IE: GeoIPv6.dat For example: geouplookup6 2001:4860:0:1001::68 geoiplookup6 ipv6.google.com will find the Country that 2001:4860:0:1001::68 originates from, in the following format: US, United States OPTIONS
-f Specify a custom path to a single GeoIP datafile. -d Specify a custom directory containing GeoIP datafile(s). By default geouplookup6 looks in /var/lib/GeoIP -v Lists the date and build number for the GeoIP datafile(s). AUTHOR
Written by T.J. Mather REPORTING BUGS
Report bugs to <support@maxmind.com> COPYRIGHT
Copyright (C) 2008 MaxMind LLC This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
geoipupdate(1), nslookup(1). 4th Berkeley Distribution 28 Oct 2008 GEOIPLOOKUP6(1)
All times are GMT -4. The time now is 09:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy