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]

 

2 Solutions

Accepted Solutions
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

10 Replies
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

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>

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
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

G_W_Albrecht
Legend Legend
Legend

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

 

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

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

Andy

the_rock
Legend
Legend

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

Andy

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events