r80 api notes

From cpwiki.net
Revision as of 22:32, 31 January 2018 by Nighthawk (Talk | contribs)

Jump to: navigation, search
Check Point Profressional Services

Contents

examples

logging in

login and redirect session info to a file for reuse

# mgmt_cli login user admin > id.txt

search existing object

search objects by IP

# mgmt_cli -s id.txt show objects filter "10.0.0.0" ip-only true  --format json | jq '.objects[] | {name: .name, subnet: .subnet4, mask: ."mask-length4"}'


links

r80 api reference

parsing json return output [phttps://stedolan.github.io/jq/ jq]