Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script??
something like ssh a@b -p password ??? (5 Replies)
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Hello to all...this is my first post (so please go easy). :)
I feel pretty solid at expect scripting, but I'm running into an issue that I'm not able to wrap my head around. I wrote a script that is a little advanced for logging into a remote Linux machine and changing text in a file using sed.... (2 Replies)
I have a real need to telnet into my new Ubuntu 8.10 server and have Googled my eyes out with ideas that don't work. I CAN telnet out of the server, but I CANNOT telnet into it (connection refused error). I have updated my resolv.conf file but its expert time. ANY IDEAS??? THANKS!!! I knew I was... (13 Replies)
I have created a shell script to telnet remote machine. Here is the problem I am not able to pass the login username and password to the telnet session. I have searched forum and got few other methods to achieve this. But I need to know what's wrong in the below script.
username="root"... (2 Replies)
Hi,
I currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit.
At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who... (1 Reply)
Hi
First of all I tried lot of forums to create my first expect script. But I am totally stumped at the last step. I am no Linux Admin or ever trained in Linux. I just tried to create the script logically
History :
I need to to change my password across lot of servers in Linux over ssh
... (4 Replies)
Hi
I am new to using unix and am struggling with a script i am writing. What i am trying to do is get a user to enter a username, check the original file i created with username and pin to see if their is a corresponding entry. Next ask the user to enter the pin and see if this matches... (5 Replies)
Hi
I'm trying to run a script " abc.sh" which triggers "use.sh" .
abc.sh is nothing but a "expect" script which provides username and password automatically to the use.sh script.
Please find below the scripts:
#abc.sh
#!/usr/bin/expect -f
exec /root/use.sh
expect "*name*"
send... (1 Reply)
Discussion started by: baddykam
1 Replies
LEARN ABOUT DEBIAN
fence_brocade
fence_brocade(8) System Manager's Manual fence_brocade(8)NAME
fence_brocade - I/O Fencing agent for Brocade FC switches
SYNOPSIS
fence_brocade [OPTION]...
DESCRIPTION
fence_brocade is an I/O Fencing agent which can be used with Brocade FC switches. It logs into a Brocade switch via telnet and disables a
specified port. Disabling the port which a machine is connected to effectively fences that machine. Lengthy telnet connections to the
switch should be avoided while a GFS cluster is running because the connection will block any necessary fencing actions.
fence_brocade accepts options on the command line as well as from stdin. fenced sends parameters through stdin when it execs the agent.
fence_brocade can be run by itself with command line options which is useful for testing.
After a fence operation has taken place the fenced machine can no longer connect to the Brocade FC switch. When the fenced machine is
ready to be brought back into the GFS cluster (after reboot) the port on the Brocade FC switch needs to be enabled. This can be done by
running fence_brocade and specifying the enable action.
Vendor URL: http://www.brocade.com
OPTIONS -a IPaddress
IP address of the switch.
-h Print out a help message describing available options, then exit.
-l login
Login name for the switch.
-n port
The port number to disable on the switch.
-o action
The action required. disable (default) or enable.
-p password
Password for login.
-S path
Full path to an executable to generate the password for login.
-q Quiet mode: print only error messages.
-V Print out a version message, then exit.
STDIN PARAMETERS
agent = < param >
This option is used by fence_node(8) and is ignored by fence_brocade.
ipaddr = < hostname | ip >
IP address or hostname of the switch.
login = < param >
Login name.
option = < param >
The action required. disable (default) or enable.
passwd = < param >
Password for login.
passwd_script = < param >
Full path to an executable to generate the password for login.
port = < param >
The port number to disable on the switch.
SEE ALSO fence(8), fence_node(8)fence_brocade(8)