Cisco 11503 Administration Guide - Page 309
Socket Administration
UPC - 746320664958
View all Cisco 11503 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 309 highlights
Chapter 8 Using the CSS Scripting Language Using socket Commands • graceful - Closes the connection gracefully by sending a FIN (finished) rather than RST to the remote host. Socket Administration You can have a maximum of 64 open (in use) sockets on a CSS concurrently. If you issue a socket connect command and do not issue a socket disconnect command for that socket's file descriptor (saved in the ${SOCKET} variable), then the socket remains open until you issue a socket disconnect command with that socket's file descriptor as the value for the socket_number argument. If you open sockets within a script, the sockets close automatically when the script ends, unless you passed the session argument in the socket connect command. If you open sockets within a session, the sockets close when the session ends (user logs out). Use the show sockets command to list all the socket file descriptors that are currently in use. Table 8-2 describes the fields in the show sockets output. Table 8-2 Field Descriptions for the show sockets Command Field Description Socket ID Socket file descriptor Remote Host:Port The connected Host address and Port pair Protocol The protocol specified for the connection: either TCP or UDP. User The line identifier as displayed through the show lines command Time How long the descriptor has been open Note If a remote host times out or closes a socket, the socket architecture cleans up the socket and removes it from the list of used sockets. This cleanup occurs only after you attempt another transfer on a socket that the remote host has already closed. Otherwise, the socket remains idle. OL-5647-02 Cisco Content Services Switch Administration Guide 8-41