CPUG: The Check Point User Group

Resources for the Check Point Community, by the Check Point Community.


Tim Hall has done it again! He has just released the 2nd edition of "Max Power".
Rather than get into details here, I urge you to check out this announcement post.
It's a massive upgrade, and well worth checking out. -E

 

Results 1 to 5 of 5

Thread: List of Firewalls from the CLI

  1. #1
    Join Date
    2014-11-13
    Posts
    1
    Rep Power
    0

    Default List of Firewalls from the CLI

    Hi guys,
    From the Domain Manager, I can get a list of CMAs from expert mode with the command: mdsstat; but how can I get a list of Firewalls per CMA?

  2. #2
    Join Date
    2006-04-27
    Location
    Twillight zone
    Posts
    1,006
    Rep Power
    14

    Default Re: List of Firewalls from the CLI


  3. #3
    Join Date
    2014-11-14
    Location
    Ottawa Canada
    Posts
    364
    Rep Power
    4

    Default Re: List of Firewalls from the CLI

    Quote Originally Posted by abusharif View Post
    This would be just about your only way... There is no "quick and easy" command like mdsstat to give you that info.

  4. #4
    Join Date
    2012-08-23
    Posts
    16
    Rep Power
    0

    Default Re: List of Firewalls from the CLI

    http://dreezman.wordpress.com/2014/0...grepping-tool/

    Code:
    # Check Point environment variables
    . /opt/CPshared/5.0/tmp/.CPprofile.sh
    # go to MDS context
    mdsenv
    mcd
    # iterate over the customers
    
    for CMA_NAME in $(ls -1 $MDSDIR/customers)
    do
    mdsenv ${CMA_NAME}
    mcd 1>> /dev/null 2>> /dev/null
    echo ” “
    echo “Security Gateways on CMA ${CMA_NAME} :”
    echo “———————-”
    $MDSDIR/bin/cpmiquerybin attr “” network_objects “type=’gateway’|type=’cluster_member’|type=’gateway_cluster’” -a __name__,ipaddr,svn_version_name,appliance_type
    echo
    done
    exit

  5. #5
    Join Date
    2017-10-10
    Posts
    2
    Rep Power
    0

    Default Re: List of Firewalls from the CLI

    How can i put ip_addr in a variable and use it with cprid_util

    Quote Originally Posted by internallamp View Post
    http://dreezman.wordpress.com/2014/0...grepping-tool/

    Code:
    # Check Point environment variables
    . /opt/CPshared/5.0/tmp/.CPprofile.sh
    # go to MDS context
    mdsenv
    mcd
    # iterate over the customers
    
    for CMA_NAME in $(ls -1 $MDSDIR/customers)
    do
    mdsenv ${CMA_NAME}
    mcd 1>> /dev/null 2>> /dev/null
    echo ” “
    echo “Security Gateways on CMA ${CMA_NAME} :”
    echo “———————-”
    $MDSDIR/bin/cpmiquerybin attr “” network_objects “type=’gateway’|type=’cluster_member’|type=’gateway_cluster’” -a __name__,ipaddr,svn_version_name,appliance_type
    echo
    done
    exit

Similar Threads

  1. new IAS firewalls
    By bohus.novak in forum Check Point IAS (Integrated Appliance Solution)
    Replies: 0
    Last Post: 2011-12-13, 13:47
  2. VPN Between three Firewalls
    By Kevin_27 in forum IPsec VPN Blade (Virtual Private Networks)
    Replies: 2
    Last Post: 2010-08-27, 08:39
  3. Two Firewalls and this and that?
    By Spacetrucker in forum Miscellaneous
    Replies: 22
    Last Post: 2009-10-09, 17:22
  4. List all the ATRGs out there
    By danjun in forum Miscellaneous
    Replies: 0
    Last Post: 2008-04-25, 07:24
  5. MAC address list
    By cormic in forum Check Point UTM-1 Edge Appliances
    Replies: 1
    Last Post: 2008-03-28, 12:56

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •