cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
JozkoMrkvicka
Platinum

Re: Common Check Point Commands (ccc)

What about to check if LOM is available and in case yes, what is the version ? Compare the installed version with the latest LOM firmware map and inform user that it would be good idea to upgrade LOM. This check would be better available within Healthcheck script.

Kind regards,
Jozko Mrkvicka

Re: Common Check Point Commands (ccc)

What a great job.

Thanks a lot!

0 Kudos

Re: Common Check Point Commands (ccc)

Great!

Thanks

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

That's already integrated, see: cpca_client lscert | grep -A 2 cp_mgmt

Highlighted

Re: Common Check Point Commands (ccc)

Thanks; I'll check it out 🙂

0 Kudos

Re: Common Check Point Commands (ccc)

Thank you Danny for such a great work.

is it possible to have a Custom commands section where users can easily add most used commands so they can easily access those commands which are used almost everyday in that particular environment.

I know I might be asking too much but it would be great if people can add their custom commands in one section, by following simple instructions editing the script.

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

That's a great idea. The most practical way to organize and run custom commands would probably be the first version of this script.

Just compare version 1 vs. version 2 to see the first version with the basic commands include. It allows for easy modification and customization

Re: Common Check Point Commands (ccc)

Thanks Danny for your prompt response. the above hyperlink did not work as It says I am not authorised. any other place I can get hold of older version please?

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

#!/bin/bash

echo "## Custom Check Point commands ##"
echo "1: cat /etc/cp-release - Show Check Point version"
echo "2: cplic print -x - Show installed CP licenses"
echo "3: df -h - Show available disk space"
echo ""
echo -en "Select a command: "

read i; case $i in
  1) cat /etc/cp-release ;;
  2) cplic print -x ;;
  3) df -h ;;
  *) exit 0
esac
exit 0

Re: Common Check Point Commands (ccc)

Thanks a lot

0 Kudos

Re: Common Check Point Commands (ccc)

Hi Danny,

is version 3.9 live now?

I still see  v3.8 in the script on below URL

http://dannyjung.de/ccc_v3.9.gz

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

Thanks, I just fixed it.

Re: Common Check Point Commands (ccc)

Ok Thanks for that. So the script will ask the user if he wants to update?

also what other user control options have been added please?

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

Correct. For better security and user control all available updates can now be reviewed and installed manually. No auto-update anymore. Other controls added are listed in the changelog above.

Re: Common Check Point Commands (ccc)

Does this need to be installed on all CP nodes, or can it exist on the management server, and use to connect to the managed nodes?

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

Currently it's intended to install the script on each CP system.

Re: Common Check Point Commands (ccc)

I just have found out that using GAiA WebGUI Terminal window or Dashboard > Actions > Open Shell..., ccc navigation will not work - cursor moves one line down, then no more.

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

Exactly. Therefore the alternative t,f,g,h navigation was implemented.😉

Re: Common Check Point Commands (ccc)

Ah, everyday is a day to learn something new 😉

0 Kudos

Re: Common Check Point Commands (ccc)

RFE: in FW Management + GW, we can find

# cpvinfo /opt/CPda/bin/DAService | grep Build

Build Number = 1671

But why not use the full command from sk92449 instead ?

# cpvinfo $DADIR/bin/DAService | grep -E "Build|Minor"

Build Number = 1671
Minor Release = megatron_ms1

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

Improved in version 4.2

0 Kudos

Re: Common Check Point Commands (ccc)

Very nice nu version !  But:

System Firewall Management (with Smart Event)
Type VMware Virtual Platform
Status during initialization
OS Gaia R80.20 JHF (Take 73) @ 64-bit
CPU 2 Cores | Load 8.45%
RAM 18 GB (Free: 11 GB) | Swapping 0 GB
Core dumps - | Crash dumps: -
Disk use / 19390744% | /var/log/ 6555932%

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current 38G 18G 19G 48% /
/dev/sda1 289M 24M 251M 9% /boot
tmpfs 8.8G 4.0K 8.8G 1% /dev/shm
/dev/mapper/vg_splat-lv_log 25G 17G 6.3G 73% /var/log

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

Fixed in version 4.3

0 Kudos
Vladimir
Pearl

Re: Common Check Point Commands (ccc)

Danny,

 

The CCC script is now pretty mature and perhaps it is possible to serve it from HTTPS with hash verification for installation from "Expert mode"?

Something along the lines of solution described here: https://stackoverflow.com/questions/2086424/creating-a-file-downloading-script-with-checksum-verific...

Regards,

Vladimir

0 Kudos
Danny
Pearl

Re: Common Check Point Commands (ccc)

Yes, that's on the roadmap.

0 Kudos

Re: Common Check Point Commands (ccc)

very nice! thanks a lot!

 

 

daniel

0 Kudos

Re: Common Check Point Commands (ccc)

Hi Danny Sir,

 

I am gatting below error

 

[Expert@CP-R80.20:0]# ccc
-bash: /usr/bin/ccc: Permission denied
[Expert@CP-R80.20:0]#

0 Kudos

Re: Common Check Point Commands (ccc)

@suhasbhoir make sure your permissions are set properly:

chmod +x /usr/bin/ccc
0 Kudos
Flo
Ivory

Re: Common Check Point Commands (ccc)

Hey Danny,
great tool. I recommend this to all my customers and use the tool almost every day.
Fantastic work!!!
Greetings Flo

0 Kudos