SPLAT Expert Mode Tips
SPLAT Expert Mode Tips
SPLAT Expert Mode Tips
0
14th May 2007
Authors: Brian Linder SE Manager, NJ/PA blinder@us.checkpoint.com Jon Paine Professional Services (UK) jonp@checkpoint.com
Table of Contents
Table of Contents ....................................................................................................................... 2 Virtual Consoles During Install.................................................................................................... 3 Find Files.................................................................................................................................... 3 Login Directly to Expert Mode..................................................................................................... 3 See What Traffic Was Dropped But Not Logged......................................................................... 3 Allow admin user to scp files to the SPLAT box: ......................................................................... 3 Run a command from the shell repetitively ................................................................................. 4 Force Interface Speed/Duplex (Not gigabit) ................................................................................ 4 Conflicts Between SNX/VM, SmartPortal and SPLAT WebUI ..................................................... 4 Find out the features of a SKU per whatever cp.macro is on your SPLAT box............................ 5 Some Performance Commands.................................................................................................. 5 About Connecting SPLAT to a Terminal Server .......................................................................... 5 Compute a File Integrity Checksum ............................................................................................ 5 Useful Commands for Identifying Versions ................................................................................. 5 Watch Appended Data to a Log File (or any file) on the Fly ........................................................ 5 Create a Text File from the Command line Quick and Dirty ..................................................... 6 Useful Networking Commands ................................................................................................... 6 View the first (or last) Few Lines in a File.................................................................................... 6 Output a File, Doing a Search-Replace on the Fly ...................................................................... 6 Log a Message in /var/log/messages.......................................................................................... 6 Clever Use of Directory Listings.................................................................................................. 6 Quick and Dirty tar tutorial......................................................................................................... 7 Mount a CD-ROM....................................................................................................................... 7 Mounting an ISO from the local filesystem.................................................................................. 7 Mount a USB drive in SPLAT...................................................................................................... 7 Syntax of the Crontab ................................................................................................................. 8 File Types and Execution Path Checking.................................................................................... 8 Determine the Hardware Compatibility of a particular PCI NIC ................................................... 8 Determine the NIC driver version you are using:......................................................................... 8 See What Files Changed During any Operation ......................................................................... 8 Investigate Check Point Configuration from the Command Line ................................................. 8 Using cpinfo to Re-create a SmartCenter (not supported)........................................................... 9 Recovering a Forgotten SPLAT Password.................................................................................. 9 BONUS: Recovering a Forgotten IPSO Password................................................................... 10
Find Files
find find find find find / -size +10000k (Find any file larger than 10000K) $FWDIR -name '*.elg' -size -500k (Find *.elg files smaller than 500k) /home/david -mtime -2 -name '*.c' (Find files modified less than 2 days ago) /home/david -mmin -10 -name '*.c' (Find files modified less than 10 mins ago) $FWDIR -name *.C -exec grep "pattern" '{}' /dev/null \; -print (Find pattern in *.C files under $FWDIR) du k <directory> | sort nr | head -20 This will display the size of all folders beneath <directory> on the system, sort them in numerical order and display the 20 largest entries. / will show all directories on all filesystems. $FWDIR will only show directories therein. The man page contains more information and there are several very good online tutorials for find available.
Ethtool and mii-tool commands can be put at the end of /etc/rc.local startup script to survive a reboot. Please note the Gigabit Ethernet standard requires the use of autonegotiation to establish the master-slave signal timing control required to make the link operational. Do not use these commands to disable autonegotiation for Gigabit links.
Find out the features of a SKU per whatever cp.macro is on your SPLAT box
cplic resolve_macro ::CPVP-VSI-100-NGX Use this command to compare features of two SKUs: cplic resolve_macro ::CPVP-VSI-100-NGX > VSI cplic resolve_macro ::CPVP-VMC-100-NGX > VMC diff VSI VMC
Watch Appended Data to a Log File (or any file) on the Fly
tail f /var/log/messages
Create a Text File from the Command line Quick and Dirty
cat > myfile (type a line) (type a line) (etc.) EOF (Hit Ctrl-D)
Mount a CD-ROM
mount /dev/cdrom cd /mnt/cdrom When you are done: umount /dev/cdrom Note: You cant eject the CD-ROM until you umount it.
e) move the existing passwd and shadow files to .old f) copy the passwd and shadow files from the floppy to your SecurePlatform machine g) edit passwd and change the user's default shell from cpshell to bash h) boot to SecurePlatform and login using the user you just modified; you get a bash prompt. You may also get an error message if the user doesn't have a home directory - you should still be able to login i) use the passwd command to change the Expert Mode password j) edit /etc/passwd & change the user's default shell back to cpshell I also changed the permissions on passwd & shadow to match their original permissions. For passwd, the original permissions were 644. For shadow, the original permissions were 400. Additonal Notes for HP/Compaq: "The Compaq/HP servers use the Smart Array 5i controller which uses the cciss driver. It was loading, but not seeing any drives. Also, the CD ROM was stalling during load as it was trying to load as a SCSI device, and it was not on the controller. Here is what I had to do: Boot Knoppix by entering boot:knoppix26 atapicd Once the sytem was up: cd /dev MAKEDEV cciss (caps needed) and it created like 100 objects under /dev/cciss Mounted the drive with mount o rw /dev/cciss/c0d0p3 /mnt/tmp It appears that c0d0p1 (partition 1) is the boot partition, c0d0p2 (partition 2) is the swap space, and c0d0p3 (partition 3) is the application drive."
In IPSO 3.1.3 systems and earlier, it will ask you to put a floppy disk into the floppy drive to make sure you have physical access to the box. Put a floppy disk into the floppy drive and press Enter key. IPSO 3.1.4 and later does not ask this question. In IPSO 3.4 and above, /etc/overpw will ask you to set a password. The admin password defaults to no password in earlier versions of IPSO. 4. 5. 6. Continue to boot to multiuser mode. Login as admin. If a password is required, you will be asked for one. Use the dbpasswd command to set a new password:
10
(Note that the "" is necessary to specify (NULL) as the old password.) Then, save this new password to the configuration file so that you can log into Network Voyager: nokia[admin]# dbset :save
11