Difference between revisions of "project - log settings identify"
From cpwiki.net
(Created page with " == Problem: == indentify firewalls configured to log to CMA, or locally... anything except for CLM only. == script name: == ??? == scratch == mdsenv <ip> cpmiquerybi...") |
(→scratch) |
||
Line 12: | Line 12: | ||
mdsenv <ip> | mdsenv <ip> | ||
cpmiquerybin attr "" network_objects "firewall='installed'" -a __name__ ###indentify all firewalls | cpmiquerybin attr "" network_objects "firewall='installed'" -a __name__ ###indentify all firewalls | ||
− | cpmiquerybin object "" network_objects "name='firewall_name'" | sed -n -e '/:send_logs_to/,/:self_log_server/ p' | grep -E ":Name |self_log_server (true)" | + | <p> |
+ | cpmiquerybin object "" network_objects "name='firewall_name'" | sed -n -e '/:send_logs_to/,/:self_log_server/ p' | grep -E ":Name |self_log_server (true)"</p> | ||
+ | <p> | ||
+ | cpmiquerybin object "" network_objects "name='kdallabfw1'" | grep forward_logs | sed -n 's/.*(\([^ ]*\))/\1/p' | grep -v ^$</p> |
Revision as of 16:03, 31 October 2013
Problem:
indentify firewalls configured to log to CMA, or locally... anything except for CLM only.
script name:
???
scratch
mdsenv <ip> cpmiquerybin attr "" network_objects "firewall='installed'" -a __name__ ###indentify all firewalls
cpmiquerybin object "" network_objects "name='firewall_name'" | sed -n -e '/:send_logs_to/,/:self_log_server/ p' | grep -E ":Name |self_log_server (true)"
cpmiquerybin object "" network_objects "name='kdallabfw1'" | grep forward_logs | sed -n 's/.*(\([^ ]*\))/\1/p' | grep -v ^$