為了解決這個問題:
- 使用root帳號登入IMSVA CLI介面
- 輸入下方指令存取PostgreSQL資料庫:
-
/opt/trend/imss/PostgreSQL/bin/psql imss sa
- Run the commands below in the PostgreSQL:
- DROP VIEW t_blockedip;
- CREATE VIEW t_blockedip AS SELECT t_iprule."domain", t_messagesdropped.scanner_id, t_messagesdropped.upstreammta_ip AS ip, t_messagesdropped.recordtime AS createtime, t_messagesdropped."type", t_messagesdropped.count FROM (t_messagesdropped LEFT JOIN t_iprule ON (((ipint2string(t_messagesdropped.upstreammta_ip))::text = (ipint2string(t_iprule.ip))::text)));
完整輸出畫面如下:
[root@IMSVA ~]# /opt/trend/imss/PostgreSQL/bin/psql imss sa
Welcome to psql 8.1.3, the PostgreSQL interactive terminal.
Welcome to psql 8.1.3, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
imss=# DROP VIEW t_blockedip;
DROP VIEW
DROP VIEW
imss=# CREATE VIEW t_blockedip AS SELECT t_iprule."domain", t_messagesdropped.scanner_id, t_messagesdropped.upstreammta_ip AS ip, t_messagesdropped.recordtime AS createtime, t_messagesdropped."type", t_messagesdropped.count FROM (t_messagesdropped LEFT JOIN t_iprule ON (((ipint2string(t_messagesdropped.upstreammta_ip))::text = (ipint2string(t_iprule.ip))::text)));
CREATE VIEW
imss=# \q
[root@IMSVA85 ~]#
CREATE VIEW
imss=# \q
[root@IMSVA85 ~]#