To perform the rollback, do the following:
-
Enter the Admin database:
/opt/trend/imss/PostgreSQL/bin/psql imss sa
-
-
Check the current value:
imss=# select * from tb_global_setting where name='detection_aggressive_level'; section | name | value | inifile | notes ---------+----------------------------+-------+----------+------------------ general | detection_aggressive_level | 3 | imss.ini | (1 row)
-
Update the value to "4":
imss=# update tb_global_setting set value='4' where name = 'detection_aggressive_level'; UPDATE 1
-
Confirm the new value:
imss=# select * from tb_global_setting where name='detection_aggressive_level'; section | name | value | inifile | notes ---------+----------------------------+-------+----------+------------------ general | detection_aggressive_level | 4 | imss.ini | (1 row)
-
Revert to the original value of "3":
imss=# update tb_global_setting set value='3' where name = 'detection_aggressive_level'; UPDATE 1
-
Confirm if the value is reverted to "3":
imss=# select * from tb_global_setting where name='detection_aggressive_level'; section | name | value | inifile | notes ---------+----------------------------+-------+----------+------------------ general | detection_aggressive_level | 3 | imss.ini | (1 row)
-
Check if the following row exists:
imss=# select * from tb_global_setting where name = 'rules_included'; section | name | value | inifile | notes ---------+------+-------+---------+------- (0 rows)
-
Insert new values:
imss=# insert into tb_global_setting values('general','rules_included','HEUR_VBA.O1;HEUR_VBA.O2;HEUR_VBA.D;HEUR_VBA.E;HEUR_VBA.E2;HEUR_VBA.E3', 'imss.ini', NULL); INSERT 0 1
-
Confirm if the new row is added:
imss=# select * from tb_global_setting where name = 'rules_included'; section | name | value | inifile | notes ---------+----------------+-----------------------------------------------------------------------+----------+------- general | rules_included | HEUR_VBA.O1;HEUR_VBA.O2;HEUR_VBA.D;HEUR_VBA.E;HEUR_VBA.E2;HEUR_VBA.E3 | imss.ini | (1 row)
-
Delete the new row:
imss=# delete from tb_global_setting where name = 'rules_included'; DELETE 1
-
Confirm if the new row is deleted:
imss=# select * from tb_global_setting where name = 'rules_included'; section | name | value | inifile | notes ---------+------+-------+---------+------- (0 rows)
-
Quit the database.
imss=# \q
-