📄 check4file.pl
字号:
#!/usr/local/bin/perl# Filename: /opt/local/perl_scripts/check4file.pluse SNMP_util "0.54"; # This will load the BER and SNMP_Session for us$FILENAME = "/etc/passwd";## if the /etc/passwd file does not exist, send a trap!#if(!(-e $FILENAME)) { snmptrap("public\@nms:162", ".1.3.6.1.4.1.2789", "sunserver1", 6, 1547, \ ".1.3.6.1.4.1.2789.1547.1", "string", "File \:$FILENAME\: Could\ NOT Be Found");}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -