Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
PeterH
Participant
Jump to solution

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]

 

0 Kudos
2 Solutions

Accepted Solutions
Tal_Paz-Fridman
Employee
Employee
(1)
JP_Rex
Collaborator
Collaborator

# 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

View solution in original post

(1)
10 Replies
Tal_Paz-Fridman
Employee
Employee
(1)
JP_Rex
Collaborator
Collaborator

# 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

JP_Rex
Collaborator
Collaborator

# 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

(1)
JP_Rex
Collaborator
Collaborator

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

PeterH
Participant

I do understand the -dir <dirname> but not the <env variable>

0 Kudos
G_W_Albrecht
Legend Legend
Legend

<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

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
(1)
PeterH
Participant

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

0 Kudos
G_W_Albrecht
Legend Legend
Legend

https://support.checkpoint.com/results/sk/sk101047

 

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
(1)
the_rock
Legend
Legend

You got all the valid responses...that sk mentioned is definitely great reference.

Andy

(1)
the_rock
Legend
Legend

If there is anything specific you need tested, happy to run in R82 lab I built.

Andy

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events