What you need
The host name of the POP server (for use in the telnet command)
The POP user name (for use in the USER command)
The user’s POP password (for use in the PASS command)
Encryption
For added security, you can encrypt your POP connection. This requires that your server supports SSL or TLS and that you have access to an SSL/TLS client program, for example OpenSSL, to use instead of telnet.
As the port number normally is 995, an example OpenSSL command would be openssl s_client -connect pop.example.com:995 -quiet.
Read to full article here
Posted by Administrator on Jan 05, 2012
Here are some handy tcsh aliases for the knife shell utility of the opscode chef infrastructure automation solution:
alias knifeshell knife ssh "\!:1" interactive -a hostname -x YourUserName
This will connect to all servers matching a search query so:
knifeshell "hostname:a*" will connect to all servers with a hostname starting with the letter “a”
knifescreen knife ssh "\!:1" screen -a hostname -x -x YourUserName
This will do more or less the same as the previous command but it will use the gnu screen utility
and finaly:
alias kniferun knife ssh "\!:1" "\!:2" -a hostname -x YourUserName
will run a shell command on all servers matching the search query.
example:
to show the directory listing of your home folders for all servers known by chef:
kniferun "hostname:[* TO *]" ls
for more information about the search syntax or the knife utility check the opscode wiki
Continue Reading…
Posted by Administrator on Apr 06, 2011