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

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
4 Replies
Tal_Paz-Fridman
Employee
Employee

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

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

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

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events