In the management of storage devices, daily event processing is a critical task. The following lists the script for handling trap events of some common devices. The event level can be modified as needed by the enterprise.
Sun Storage Device trap
indicates a task and can contain multiple statements. The first * field: 0 ~ 59 indicates the score
Second * field: 1 ~ 23 indicates the hour
Third * field: 1 ~ 31 indicates the day
Fourth * field: 1 ~ 12 indicates the month.
Fifth * field: 0 ~ 6 indicates the Fifth Command Field in the week (0 indicates Sunday): If you want to execute a command once every 20 minutes, you can write it like this:
To execute a task at, 40 *** command every five minutes, you can write it as follows:
0, 5, 10, 15,
Environment
[Netcool @ inmsc4 ~] $ Uname-Linux inmsc4 2.6.18-194. EL5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux[Netcool @ inmsc4 ~] $
Dual-nic
Symptom description
SSH and FTP are both normal. One day, it suddenly slowed down. However, after logon, the operation is not slow and normal.
According to Baidu, it is related to reverse DNS resolution. This statement is half correct becaus
shown more powerful aspects than twaver Java's swing version.
In addition, we have observed more interesting features in twaver flex.
New alert Rendering Method
I remember that when I first looked at micromuse's Netcool, I was very impressed with its alarm display method: An alarm-colored diamond base, which is both intuitive and beautiful. Now twaver flex also provides this new alarm rendering method, and there are also various shapes of "base"
:
Memory Address No.
Hexadecimal value
Position of pointer P
0xbffeadf7
/0
P + 3
0xbffeadf6
C
P + 2
0xbffeadf5
B
P + 1
0xbffeadf4
A
P
Int main (void) {char s [4] = "abc"; char * p = s; printf ("% 02x, % 02x, % 02x, % 02x, % 02x/n ", s [0], s [1], s [2], s [3]); printf ("% 02x, % 02x, % 02x, % 02x/n ", p, p + 1, p + 2, p + 3); printf (" % c, % c/n ", s [0], s [1], s [2], s [3]); return 0;} output result: [
; the END +/ Note: Writing the DB2 stored procedure in Dbvisualizer, the first line of the--/and the last line/is essential otherwise error. 3. Execute the stored procedure: Click the Execute button of the Dbvisualizer stored procedure edit box, or you can execute call procedure_name on the command line. Step Two : Write script commands that can be executed on Linux systems. #!/bin/SH db2_home=/opt/ibm/tivoli/netcool/platform/linux2x86/DB2 PATH
]ThenEcho${backup_timestamp},${hostname},snmp status , OK, normal >>xunjian.csvElseEcho${backup_timestamp},${hostname},snmp status , need to restart >>xunjian.csvFi################### Verifying BRIDGE process ################Checkbridge= ' Ps-efw|grep Bridge | Awk-f '/' nr==1 {print $7} 'Bridgesh= ' Nco_m_bridge 'if [$CheckBridge = = $BridgeSH]ThenEcho${backup_timestamp},${hostname},bridge status , OK, normal >>xunjian.csvElseEcho${backup_timestamp},${hostname},bridge status , need to restart >>
[4] = "ABC";
A
B
C
/0
S[0]
S[1]
S[2]
S[3]
will be discharged in memory in the following order:
Memory address serial Number
16 in value
Position of the pointer p
0xbffeadf7
/0
P+3
0xbffeadf6
C
P+2
0xbffeadf5
B
P+1
0xbffeadf4
A
P
int main (void) {char s[4] = "ABC"; char *p = s; printf ("%02x,%02x,%02x,%02x/n", s[0], s[1]
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.