I wrote a simple shell script to monitor (with Nagios) a SNX VPN function. Here the Code snippet:
As you could see if the VPN connection is establised I got a simple output text in Nagios. But when the VPN connection isnīt up and running I want to establise a connection with the command "snx -s server -u user".
Than I have to put in a Password manually
And there I run into problems. How could I automate such a login within the script? Any Ideas?
Can anyone help me how to write a shell script which accepts input parameter. My requirement is as follows:
I need to run a shell script with a input parameter, and inside the script i will create a file with this input parameter name.
Please help me out to create such a shell script.
... (1 Reply)
Hi,
I have 10 database instances runnning in one unix box. To connect to each database..i have to set the environment. I am trying to write a shell script to set my environment for database by just tying the oracle instance name
After logging into the unix machine... i want to type the... (3 Replies)
Hi all,
Here is my shell script
#!/bin/sh
echo "What is your name"
read name
echo "What is your surname"
read surname
echo "Your name is:${name} and your surname is:${surname}"
How can I modify this script so that I input those two variables from console?Lets say my name is "first"... (3 Replies)
Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.
which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
i have both linux and windos installed on my pc . i want to take 1st column of excel as in input for my shell script .can anyone tell me how can i achive that. (1 Reply)
Hello!
Need help with the following:
#!/bin/bash
streamripper http://mp3-live.swr.de/swr2_m.m3u -D ~/RadioMitschnitt -l 200 > /dev/null 2>&1
I want to change the script so that it asks for an input for "-l 200" (means length 200sec) and starts then with the new value for "-l".
Can I do this... (2 Replies)
I'm a fairly new AIX admin (disclaimer).
We have SQL scripts written by end users that use a userid and passwd to connect to our DB2 database.
Is it possible to create an "input file" that contains the db2 connect parameters and yet secure the file from the SQL creator?
i.e., they can "use"... (2 Replies)
Hey guys,
This is my situation.
I'm using the script to add a user account, however, i want the same details copied into the htdigest password list. the format is username:virtualservername:hashed/encrypted password.
This is the command :
sudo htdigest /etc/apache2/passwords... (0 Replies)
I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed.
#!/usr/bin/expect -f... (2 Replies)
Hello
Sorry for the question..
i would like to make a script for OS X that allow me to change the password for a user account.
i have to use this script on several iMac with the same user/password.
i want to store the passwords inside the script, no security problems involved.
the... (9 Replies)
Discussion started by: araan87
9 Replies
LEARN ABOUT DEBIAN
racoon-tool
RACOON-TOOL(8) System Manager's Manual RACOON-TOOL(8)NAME
racoon-tool - program to manage the racoon(8) IPSEC IKE daemon.
SYNOPSIS
racoon-tool [-h] reload|restart|force-reload|start|stop
racoon-tool [-h] sadflush|spdflush|saddump|spddump
racoon-tool [-h] vpndown|vdown|vpnup|vup connection-name|all
racoon-tool [-h] vpnreload|vreload connection-name|all
racoon-tool [-h] vpnlist|vlist [connection-name|all]
racoon-tool [-h] vpnmenu|vmenu [connection-name-regexp]
racoon-tool [-h] racoonstart|racoonstop|rstart|rstop
DESCRIPTION
This manual page documents briefly the racoon-tool command. racoon-tool(8) is a perl script that can be used to control the racoon(8) IKE
daemon and the SPD database within the kernel via the setkey(8) command. Various operations that it can do are described below.
You can also optionally choose not to use it via reconfiguring the racoon package using dpkg-reconfigure(8).
OPTIONS
A summary of options are included below.
-h Show summary of options.
COMMANDS
start Start racoon(8), loading any needed modules, configuring the SPD, and generating a configuration from /etc/racoon/racoon-tool.conf
(head) and following up with *.conf files from /etc/racoon/racoon-tool.conf.d/.
stop Stop racoon(8) unloading any crypto/IPSEC modules, flushing the SAD and SPD.
reload Regenerate configuration from /etc/racoon/racoon.conf, and /etc/racoon/racoon.conf.d/, HUP racoon(8) and reinitialise the SPD and
SAD.
restart|force-reload
Perform a stop followed by a start
sadflush
Flush the SAD via setkey(8).
spdflush
Flush the SPD via setkey(8).
saddump|dump
Dump the SAD to screen via setkey(8), paginating via your pager.
spddump
Dump the SPD to screen via setkey(8), paginating via your pager.
vpnup|vup connection-name|all
Bring up the VPN connection(s).
vpndown|vdown connection-name|all
Take down the VPN connection(s).
vpnreload|vreload connection-name|all
Reload the VPN connection(s).
vpnlist|vlist [connection-name|all]
List the known VPN connections in /etc/racoon/racoon-tool.conf, etc. Can be used by a script or administrator to see if a VPN con-
nection exists.
vpnmenu|vmenu [connection-name-regexp]
Start the VPN menu management mode. This displays the SPD, and you can shutdown VPNs from here. Latter on support will be added
for checking status and reloading the chosen connection.
racoonstart|rstart
Start only the racoon(8) daemon.
racoonstop|rstop
Stop only the racoon(8) daemon.
FILES
/etc/racoon/racoon-tool.conf
- configuration file (head).
/etc/racoon/racoon-tool.conf.d
- configuration file segment directory read after the above.
/var/lib/racoon/racoon.conf
- generated racoon.conf
SEE ALSO racoon(8), racoon.conf(5), setkey(8), racoon-tool.conf(5).
AUTHOR
This manual page was written by Matthew Grant <matthewgrant5@gmail.com>, for the Debian GNU/Linux system (but may be used by others).
RACOON-TOOL(8)