Use the sscontrol advisor command to control the advisor.
>>-sscontrol--file--+-delete--filename.ext-----------------------------------+->< +-appendload--filename.ext-------------------------------+ +-report-------------------------------------------------+ +-save--filename.ext-------------------------------------+ +-logsize--name--+-port---------+--+-unlimited---------+-+ | '-cluster@port-' '-number of records-' | +-receivetimeout--name--+-port---------+--seconds--------+ | '-cluster@port-' | +-report--save--filename.ext-----------------------------+ '-force--newload--filename.ext---------------------------'
>>-connecttimeout--name--port--sitename@port--seconds-----------> >--interval--name--port--sitename@port--seconds--list-----------> >--loglevel--name--port--sitename@port--level--logsize--name----> >--port--sitename@port--size | unlimited--bytes-----------------> >--receivetimeout--name--port--sitename@port--seconds--report---> >--name--port--sitename@port--retries--name--port---------------> >--sitename@port--numretries--start--name--port-----------------> >--sitename@port--log file--status--name--port--sitename@port---> >--stop--name--port--sitename@port--timeout--name--port---------> >--sitename@port--version--name--port--sitename@port--seconds--><
The name of the advisor. Possible values include http, https, ftp, sip, ssl, smtp, imap, pop3, ldap, ldaps, nntp, telnet, connect, ping, WLM, and WTE. Names of customized advisors are of the format xxxx, where ADV_xxxx is the name of the class that implements the custom advisor.
The number of the port that the advisor is monitoring.
A positive integer representing the timeout in seconds at which the advisor waits before reporting that a connect to a server fails. The default is 3 times the value specified for the advisor interval.
A positive integer representing the number of seconds between requests to the servers about their current status. The default is 7.
The maximum size in bytes for the advisor log file. You can specify either a positive number greater than zero, or unlimited. The log file may not reach the exact maximum size before being overwritten because the log entries vary in size. The default value is 1 MB.
A positive integer representing the timeout in seconds at which the advisor waits before reporting that a receive from a server fails. The default is 3 times the value specified for the advisor interval.
An integer greater than or equal to zero. This value should be no larger than 3. If retries keyword is not configured, the number of retries defaults to zero.
Advisor name | Protocol | Port |
---|---|---|
connect | n/a | user-defined |
db2 | private | 50000 |
ftp | FTP | 21 |
http | HTTP | 80 |
https | SSL | 443 |
imap | IMAP | 143 |
ldap | LDAP | 389 |
nntp | NNTP | 119 |
ping | PING | n/a |
pop3 | POP3 | 110 |
sip | SIP | 5060 |
smtp | SMTP | 25 |
ssl | SSL | 443 |
telnet | Telnet | 23 |
The advisor name.
The sitename value is optional on the advisor commands; however, the port value is required. If the sitename value is not specified, the advisor starts running on all available site names configured. If you specify a site name, the advisor starts running for only the site name you specify. Additional site names are separated by a plus sign (+).
File name to which the management data is logged. Each record in the log is time–stamped.
The default file is advisorname_port.log, for example, http_80.log. To change the directory where the log files are kept, see the Changing the log file paths topic.
You can start only one advisor for each site name.
A positive number representing the number of seconds, or the word unlimited. The default value is unlimited.
sscontrol advisor connecttimeout http 80 30
sscontrol advisor interval ftp 21 6
sscontrol advisor list
---------------------------------------
| ADVISOR | SITENAME@PORT | TIMEOUT |
---------------------------------------
| http | 80 | unlimited |
| ftp | 21 | unlimited |
---------------------------------------
sscontrol advisor loglevel http mysite@80 0
sscontrol advisor logsize ftp mysite@21 5000
sscontrol advisor receivetimeout http 80 60
sscontrol advisor report ftp 21
Advisor Report:
---------------
Advisor name ............. http
Port number .............. 80
sitename ................. mySite
Server address ........... 9.67.129.230
Load ..................... 8
sscontrol advisor start ftp 21 ftpadv.log
sscontrol advisor status http 80
Advisor Status:
---------------
Interval (seconds) ............ 7
Timeout (seconds) ............. Unlimited
Connect timeout (seconds).......21
Receive timeout (seconds).......21
Advisor log filename .......... Http_80.log
Log level ..................... 1
Maximum log size (bytes) ...... Unlimited
Number of retries ............. 0
sscontrol advisor stop http 80
sscontrol advisor timeout ftp 21 5
sscontrol advisor version ssl 443