- 使用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)));
Welcome to psql 8.1.3, the PostgreSQL interactive terminal.
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
DROP VIEW
CREATE VIEW
imss=# \q
[root@IMSVA85 ~]#
