Difference between revisions of "Nighthawk's check point / firewall command scratch pad"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
(misc crap)
(misc crap)
 
Line 17: Line 17:
  
 
== misc crap ==
 
== misc crap ==
 
'''bootmgr upgrade cmds'''
 
 
'''ipso 6.x'''
 
upgrade_bootmgr /var/emhome/admin/nkipflash-6.2-GA029a02.bin
 
 
'''ipso 4.1(needs device parameter)'''
 
 
to check boot device number...
 
  ipsctl kern:bootmgr:bmdev
 
 
upgrade_bootmgr /dev/wd1 /var/emhome/admin/nkipflash-6.2-GA029a02.bin
 
  
 
nokias in /etc/hosts on authric
 
nokias in /etc/hosts on authric

Latest revision as of 04:26, 24 October 2013

Contents

model number

equivalent of linux ip route get

iclid >sh route dest 192.168.1.1


get IP appliance model number (ipso 6.x and above)

clish -c "show asset hardware" | grep Platform | awk '{print $2}'

mds crap

run on p-1 after upgrade w/name change

mdsquerydb NetworkObjects |grep firewall-name

search CLMs for last gzipped log

for CLM in *; do ls -lt $CLM/CPsuite-R75.20/fw1/log/*.log.gz | grep -m 1 log.gz; done

misc crap

nokias in /etc/hosts on authric

cat /etc/hosts | grep -v eth | awk '{print $2}' | grep '^k...' |more

ping test 0 / 1 after waiting 2 seconds

ping -q -c 1 -W 2 host | grep received | awk -F "," '{print $2}' | awk '{print $1}'

get count of sync packets sent on a remote firewall via ssh

ssh -q -l admin firewallhostname "fw ctl pstat | grep -A 1 \"Sync packets sent\" | grep total" | awk '{print $3}' | awk -F , '{print $1}'