The svcwatch add smtp command adds an SMTP test to SRM on the specified host.
This command has the following format:
svcwatch [options] -o add index descr smtp destination username password args interval samples timeout winsiz tos limit flags name class contextInfo logLevel
The add command uses the following parameters:
Specifies the possible options for this command.
(Optional) Specifies the SystemEDGE host.
Default: localhost
(Optional) Specifies the SystemEDGE SNMP port.
Default: 161
(Optional) Specifies the SNMP community string for SNMP version 1 and 2c.
Default: public
(Optional) Specifies the SNMP version. Possible values are:
Default: 1
(Optional) Specifies the name of the SNMPv3 secure user.
(Optional) Specifies the level of security for SNMPv3. Possible values are:
(Optional) Specifies the instance name for a MIBMuxed agent.
(Optional) Identifies the authentication password required when SNMPv3 is selected with security AuthNoPriv or AuthPriv.
(Optional) Specifies the authentication protocol. Possible values are:
Default: MD5
(Optional) Specifies the privacy (encryption) password for SNMPv3 with security level 3 (AuthPriv).
(Optional) Specifies the use of encryption protocol for privacy. Possible values are:
(Optional) Specifies the FIPS mode. Possible values are:
Default: 0
(Optional) Specifies the SNMP command timeout.
Default: 10 seconds
(Optional) Specifies the log level for SNMP messages. Possible values are:
Default: 0
(Optional) Specifies the name of the logfile.
Default: sysedge_utility.log
(Optional) Detects the current locale of the console and language catalog if available. If a language catalog is not found, the utility falls back to English as a default language.
Adds a new test to SRM.
Specifies the parameters for the new test.
Specifies the svcRspTable index.
Specifies the description of the test in quotes. An empty string in quotes "" specifies no description.
Specifies the SMTP service type.
Specifies the SMTP server and port (server:port) for the test. Default port: 25
Specifies the user name for authentication in quotes. An empty string in quotes "" specifies no user name.
Specifies the password for authentication in quotes. An empty string in quotes "" specifies no password.
Specifies the service arguments. Each argument is a pair of a keyword and a value (key=value). Multiple arguments are concatenated and delimited by ampersands (&). The complete arguments string is enclosed in quotes.
General syntax for arguments: "key1=value1[&key2=value2& ...]"
to=recipient - Specifies the name of the email recipient.
size=number of bytes - Specifies the size of the test message in bytes. Default 256
shost=senderhost - Specifies the host name which sends the message.
ssl=true|false - Specifies whether SMTP SSL encryption is enabled.
Note: For details of the particular arguments for each service type, see Keywords for Tests.
Specifies the test interval in seconds.
Limits: multiple of 30 seconds
Specifies the samples per interval.
Specifies the timeout in seconds.
Specifies the statistics window size in seconds.
Specifies the IP Type of Service or Differentiated Services Code. Use 0 (zero) for a normal service. See also RFC 1349.
Specifies the acceptable performance limit (or threshold) for the total response time of this test. This value is used in reports.
Specifies the following flags:
0x001 = collect performance cubes
0x100 = execute on request only (run once)
Specifies the unique name per service type. An empty string in quotes "" specifies no test name.
Specifies the class name. An empty string in quotes "" specifies no class name.
Specifies context information. An empty string in quotes "" specifies no context information.
Specifies the log level for the test execution code. Possible values are:
-2 = use SRM-global log level (default)
-1 = do not log
0 = fatal (only the most important messages)
1 = critical
...
7 = debug3 (log all messages)
Example
Adding an SMTP test:
svcwatch -p 161 -c admin -o add 1360755 "SMTP TEST" smtp "mysmtp.com:25" "smtpuser" "zrvr9tx" "to=recipient&size=256&shost=senderhost&smtp_ssl=true" 30 3 30 60 0 0 0x100 "TestSMTP" "ClassName" "ContextName" 7
Copyright © 2013 CA. All rights reserved. |
|