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

Accepted Solutions
JP_Rex
Contributor
Contributor

# 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)
7 Replies
Tal_Paz-Fridman
Employee
Employee
JP_Rex
Contributor
Contributor

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

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

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

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

 

CCSE CCTE CCSM SMB Specialist
(1)
the_rock
Legend
Legend

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

Andy

(1)

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events