Forum Discussion
Using tmsh::delete to delete a profile created by create_http_comp_accel_profiles
Hello Mitra,
I did try to use tmsh::delete command without the full path in the past, just like you suggested. However the profile is not removed. In /var/log/audit I see the following (I've added numbers to the beginning of the lines for better referrencing): [Note: I've set tmsh::log_level to debug at the top of the implementation code]
1. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-86 - object 0 - obj_delete { pool_member { pool_member_pool_name "/Common/Testing.app/Testing_blah1_pool" } } [Status=Command OK]
2. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-87 - object 0 - create_if { pool_member { pool_member_pool_name "/Common/Testing.app/Testing_blah1_pool" pool_member_node_name "/Common/12.12.12.12" pool_member_port irdmi pool_member_conn_limit 0 } } [Status=Command OK]
3. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-98 - object 0 - obj_delete { virtual_server_httpclass { virtual_server_httpclass_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" } } [Status=Command OK]
4. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-99 - object 0 - obj_delete { virtual_server_persist { virtual_server_persist_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" } } [Status=Command OK]
5. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-100 - object 0 - create { virtual_server_persist { virtual_server_persist_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" virtual_server_persist_profile_name "/Common/Testing.app/Testing_blah1_cookie_persistence_profile" virtual_server_persist_default 1 } } [Status=Command OK]
6. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-101 - object 0 - obj_delete { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" } } [Status=Command OK]
7. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-102 - object 0 - obj_delete { virtual_server_rule { virtual_server_rule_virtual_server_name "/Common/Testing.app/Testing_blah1_http_virtual" } } [Status=Command OK]
8. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-105 - object 0 - obj_delete { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" } } [Status=Command OK]
9. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-106 - object 0 - create_if { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" virtual_server_profile_profile_name "/Common/Testing.app/Testing_blah1_http_profile" } } [Status=Command OK]
10. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-107 - object 0 - create_if { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" virtual_server_profile_profile_name "/Common/Testing.app/Testing_blah1_wan-optimized-compression_profile" } } [Status=Command OK]
11. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-110 - object 0 - create { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" virtual_server_profile_profile_name "/Common/Testing.app/Testing_blah1_lan-optimized_tcp_profile" virtual_server_profile_profile_context 2 } } [Status=Command OK]
12. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-113 - object 0 - create { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" virtual_server_profile_profile_name "/Common/Testing.app/Testing_blah1_wan-optimized_tcp_profile" virtual_server_profile_profile_context 1 } } [Status=Command OK]
13. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-116 - object 0 - obj_delete { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" virtual_server_profile_profile_name "/Common/Testing.app/Testing_blah1_wan-optimized-compression_profile" } } [Status=Command OK]
14. Feb 21 20:41:21 pinky notice mcpd[5859]: 01070417:5: AUDIT - user admin - transaction 106949-119 - object 0 - create { virtual_server_profile { virtual_server_profile_vs_name "/Common/Testing.app/Testing_blah1_http_virtual" virtual_server_profile_profile_name "/Common/Letsima_Compression" } } [Status=Command OK]
15. Feb 21 20:41:22 pinky notice tmsh[11722]: 01420002:5: AUDIT - pid=11722 user=root folder=/Common module=(tmos) status=[Command OK] cmd_data=save / sys config partitions all
Lines 10 to 14 shows the creation of the profile (Testing_blah1_wan-optimized-compression_profile) and the modification to remove the profile from the VS but no where does it show tmsh::delete being run. The profile object is deleted from the VS on line 13.
I've also tried...
tmsh::delete / ltm profile http-compression /Common/$tmsh::app_name.app/$existing_compression_accel_profile
and
tmsh::delete / ltm profile http-compression /Common/Testing.app/$existing_compression_accel_profile
with also no success. It appears from the logs that the tmsh::delete command is never fired or 'overlooked' :(
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com