07-06-2016
Please tell us if this is what you want:
Block (blacklist) ip address for 15 minutes. Then restore it (remove from blacklist).
How do you intend to trigger this event? In other words, what has to happen to make the program or script blacklist an ip address?
This User Gave Thanks to jim mcnamara For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I would like to more about how csf &apf firewalls work ? how they use iptables right ? why we need to use them when we got iptables ?:confused: (0 Replies)
Discussion started by: nitin09
0 Replies
2. Shell Programming and Scripting
Hi
I need to append the following block of statements in the middle of the file:
#
openpipe tsdbdwn2
set -x
exec >> /tmp/tsdbdwn2.fifo 2>&1
#
This needs to be appended right after another block of statements:
if test $# -eq 0 ;then
echo "Safety check - do you really wish to run" $0 "... (5 Replies)
Discussion started by: aoussenko
5 Replies
3. UNIX for Advanced & Expert Users
I was reading a book on UNIX internals "The design of the UNIX Operating system." There are two memory structures that are confusing me:
1) Buffer cache
2) Inode cache
My questions are
1) Does a process get both buffer cache and Indoe cache allocated when it opens/creates a file?
2) if no,... (1 Reply)
Discussion started by: sreeharshasn
1 Replies
4. Shell Programming and Scripting
Hi ,
Can you pleas help me with below requirement?
There is only one big line in the file. I need to parse block by block(particular tag values, 'Val' in below case) to get different parameters.
Example:-
Portion of the Input string:-
<?xml version="1.1" encoding="UTF-8"?> <Data><Val ... (4 Replies)
Discussion started by: kmajumder
4 Replies
5. Shell Programming and Scripting
Hei buddies,
Need ur help once again.
I have a file which has bunch of lines which starts from a fixed pattern and ends with another fixed pattern.
I want to make use of these fixed starting and ending patterns to select the bunch, one at a time.
The input file is as follows.
Hi welcome... (12 Replies)
Discussion started by: anushree.a
12 Replies
6. UNIX for Advanced & Expert Users
I have a "main" file which has blocks of data for each user defined by tags BEGIN and END.
BEGIN
ID_NUM:24879
USER:abc123
HOW:47M
CMD1:xyz1
CMD2:arp2
STATE:active
PROCESS:id60
END
BEGIN
ID_NUM:24880
USER:def123
HOW:4M
CMD1:xyz1
CMD2:xyz2
STATE:running
PROCESS:id64
END (7 Replies)
Discussion started by: grep_me
7 Replies
7. Shell Programming and Scripting
I want to process a file block by block using sed, and if that block does not contain two patterns, then that complete block has to be printed.
See below for the example data.
................................server 1...............................
running process 1
running... (8 Replies)
Discussion started by: Kesavan
8 Replies
8. Cybersecurity
It appears i cant connect linux VPS server via SSH or i cant SCP any file to it and i cant wget any file TO it (from inside it) while CSF (Config Server Firewall, LFD is running. Just after isntall in default configuration and after changing TESTING mode to LIVE mode.
Trying to wget & install... (1 Reply)
Discussion started by: postcd
1 Replies
9. Shell Programming and Scripting
I have a file say "SAMPLE.txt" with following content,
P1
10,9:6/123456
P2
blah blah
P1
10,9:5/98765
P2
blah
blah
P1
blah blah
P2
I want a output file say "RESULT.txt" as,
Value1:123456
Value2:98765
Value3:NULL (17 Replies)
Discussion started by: garvit184
17 Replies
10. UNIX for Dummies Questions & Answers
I need to search for a block with the starting pattern say
"tabId": "table_1", and ending pattern say "]"
and then add a few lines before "]"
"block1":"block_111"
"tabId": "table_1",
"title":"My title"
.....
....
}]
how do I achieve it using awk and sed.
Thanks,
Lakshmi (3 Replies)
Discussion started by: Lakshmikumari
3 Replies
LEARN ABOUT DEBIAN
gnt-os
gnt-os(8) Version 2.5.2 gnt-os(8)
Name
gnt-os - Instance operating system administration
Synopsis
gnt-os {command} [arguments...]
DESCRIPTION
The gnt-os is used for managing the list of available operating system flavours for the instances in the Ganeti cluster.
COMMANDS
list
Gives the list of available/supported OS to use in the instances. When creating the instance you can give the OS-name as an option.
Note that hidden or blacklisted OSes are not displayed by this command, use diagnose for showing those.
diagnose
This command will help you see why an installed OS is not available in the cluster. The list command shows only the OS-es that the cluster
sees available on all nodes. It could be that some OS is missing from a node, or is only partially installed, and this command will show
the details of all the OSes and the reasons they are or are not valid.
info
This command will list detailed information about each OS available in the cluster, including its validity status, the supported API ver-
sions, the supported parameters (if any) and their documentations, etc.
modify [-H HYPERVISOR:option=value[,...]]
[--hidden=yes|no] [--blacklisted=yes|no]
{OS}
This command will allow you to modify OS parameters.
To modify the per-OS hypervisor parameters (which override the global hypervisor parameters), you can run modify -H with the same syntax as
in gnt-cluster init to override default hypervisor parameters of the cluster for specified OS argument.
To modify the hidden and blacklisted states of an OS, pass the options --hiddenyes|no, or respectively --blacklisted .... The 'hidden'
state means that an OS won't be listed by default in the OS list, but is available for installation. The 'blacklisted' state means that the
OS is not listed and is also not allowed for new instance creations (but can be used for reinstalling old instances).
Note: The given operating system doesn't have to exists. This allows preseeding the settings for operating systems not yet known to gnt-os.
REPORTING BUGS
Report bugs to project website (http://code.google.com/p/ganeti/) or contact the developers using the Ganeti mailing list (ganeti@google-
groups.com).
SEE ALSO
Ganeti overview and specifications: ganeti(7) (general overview), ganeti-os-interface(7) (guest OS definitions).
Ganeti commands: gnt-cluster(8) (cluster-wide commands), gnt-job(8) (job-related commands), gnt-node(8) (node-related commands), gnt-
instance(8) (instance commands), gnt-os(8) (guest OS commands), gnt-group(8) (node group commands), gnt-backup(8) (instance import/export
commands), gnt-debug(8) (debug commands).
Ganeti daemons: ganeti-watcher(8) (automatic instance restarter), ganeti-cleaner(8) (job queue cleaner), ganeti-noded(8) (node daemon),
ganeti-masterd(8) (master daemon), ganeti-rapi(8) (remote API daemon).
Ganeti htools: htools(1) (generic binary), hbal(1) (cluster balancer), hspace(1) (capacity calculation), hail(1) (IAllocator plugin),
hscan(1) (data gatherer from remote clusters).
COPYRIGHT
Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Google Inc. Permission is granted to copy, distribute and/or modify under the terms of
the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
version.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
Ganeti gnt-os(8)