使用表 7-2 作为参考,通过 staresmonadm 命令设置属性值。
您可以在不同的命令中分别提交属性,也可以将其组合在一个命令中提交。例如:
# ./staresmonadm -T 13:00 -i 600 -n on -U sta_dba -P password1 -t 65 -b 65 -d 65 -l 65 -z 70 -x 80 -m 75 -r john.doe@company.com
该实用程序会设置您在命令中包括的每个值,然后显示当前的所有设置。例如:
Contacting daemon...connected.
Setting DB Tablespace HWM..... 65
Setting DB Disk Volume HWM.... 65
Setting Logging Volume HWM.... 65
Setting Backup Volume HWM..... 65
Setting Root Volume HWM....... 70
Setting Temp Volume HWM....... 80
Setting System Memory HWM..... 75
Setting 'To:' addresses....... john.doe@company.com
Setting Send Time............. 13:00
Setting Sleep Interval........ 600
Setting Alert Nag Mode........ ON
Setting DB Username........... sta_dba
Setting DB Password........... *********
Done.
Current STA Resource Monitor Service Settings:
Configured [yes]
Send Reports -T [13:00]
Sleep Interval -i [600 sec]
Alert Nagging -n [on]
DB Username -U [sta_dba]
DB Password -P [*********]
DB Tablespace hwm -t [65%]
DB Backup hwm (/dbbackup) -b [65%]
DB Data hwm (/dbdata) -d [65%]
Log Volume hwm (/var/log/tbi) -l [65%]
Root Volume hwm (/) -z [70%]
Tmp Volume hwm (/tmp) -x [80%]
System Memory hwm -m [75%]
Email 'From:' -f [StaResMon@localhost]
Email 'To:' -r [john.doe@company.com]
Email 'Subject:' -s [STA Resource Monitor Report]
Output File -o [/var/log/tbi/db/staresmon.csv]