hit counter script

Cisco 11503 - CSS Content Services Switch Administration Manual page 331

Content services switch
Hide thumbs Also See for 11503 - CSS Content Services Switch:
Table of Contents

Advertisement

Chapter 8
Using the CSS Scripting Language
if ${ARGS}[#] "NEQ" "3"
endbranch
! Defines:
set HostName "${ARGS}[1]"
set UserName "${ARGS}[2]"
set Password "${ARGS}[3]"
!!!!! SMTP !!!!!!
set EXIT_MSG "Connection Failed"
! Connect to the remote host (use default timeout)
socket connect host ${HostName} port 25 tcp
set EXIT_MSG "Waitfor: Failed"
! Receive the incoming status code 220 "welcome message"
socket waitfor ${SOCKET} "220" 200
set EXIT_MSG "Send: Failed"
! Send the hello to the server
socket send ${SOCKET} "helo ${HostName}\n"
set EXIT_MSG "Waitfor: Failed"
! Wait for status code "250" to be returned
socket waitfor ${SOCKET} "250" 200
! We've successfully logged in, the server is up and going.
! The job was done successfully.
socket disconnect ${SOCKET}
!!!!! POP3 !!!!!!
set EXIT_MSG "Connection Failed"
! Connect to the remote host (use default timeout)
socket connect host ${HostName} port 110 tcp
set EXIT_MSG "Waitfor: Failed"
! Wait for the OK welcome message for 200ms
socket waitfor ${SOCKET} "+OK" 200
set EXIT_MSG "Send: Failed"
! Send the username to the host
socket send ${SOCKET} "USER ${UserName}\n"
OL-5647-02
echo "Usage: ap-kal-pop3 \'Hostname UserName Password\'"
echo "(For checking an SMTP and POP3 service)"
exit script 1
Cisco Content Services Switch Administration Guide
Script Keepalive Examples
8-63

Advertisement

Table of Contents
loading

This manual is also suitable for:

11500 series

Table of Contents