- CheckMates
- :
- Products
- :
- General Topics
- :
- Re: cprid_util variables
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
cprid_util variables
Hello community
I would like to know the following commands can be used for. Especially I'm interested to uses variables.
Could someone gives an example for each of the commands to understand the syntax.
Thanks you
cprid_util rexec [-dir <workdir | env variable>]
cprid_util putenv -attr <a> -val <v>
cprid_util getenv -attr <a>
cprid_util mkdir -dir <dirname | env variable>
cprid_util reg_getval -path <path> -val_name <name> [-only_val]
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please see if this helps https://support.checkpoint.com/results/sk/sk101047
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
# cprid_util -server 10.x.y.z -verbose putenv -attr QQQ -val qqq
(NULL BUF)
# cprid_util -server 10.x.y.z -verbose getenv -attr QQQ
(NULL BUF)
qqq
# cprid_util -server 10.x.y.z -verbose getenv -attr FWDIR
(NULL BUF)
/opt/CPsuite-R81.20/fw1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please see if this helps https://support.checkpoint.com/results/sk/sk101047
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
# cprid_util rexec -server 10.x.y.z -verbose -rexec -rcmd bash -c "pwd"
+ pwd
/
# cprid_util rexec -server 10.x.y.z -verbose -dir /var/log/tmp -rexec -rcmd bash -c "pwd"
+ pwd
/var/log/tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
# cprid_util -server 10.x.y.z -verbose putenv -attr QQQ -val qqq
(NULL BUF)
# cprid_util -server 10.x.y.z -verbose getenv -attr QQQ
(NULL BUF)
qqq
# cprid_util -server 10.x.y.z -verbose getenv -attr FWDIR
(NULL BUF)
/opt/CPsuite-R81.20/fw1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
cprid_util mkdir -dir <dirname | env variable>
should be clear
cprid_util reg_getval -path <path> -val_name <name> [-only_val]
CheckPoint Registry Values are so deep down you should not touch them (without TAC)
Which is the reason I could not find a good example.
Regards
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do understand the -dir <dirname> but not the <env variable>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<env variable> is a linux environment variable - see e.g. R81.20 Multi-Domain Security Management Administration Guide - Environment Variables or sk165938: Persistent server environment variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
cprid_util reg_getval -path <path> -val_name <name> [-only_val]
The idea is to get / set something like ther following command do:
ckp_regedit -p SOFTWARE/CheckPoint
Regards Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://support.checkpoint.com/results/sk/sk101047
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You got all the valid responses...that sk mentioned is definitely great reference.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If there is anything specific you need tested, happy to run in R82 lab I built.
Andy
