Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
elbergfeldt
Explorer

Is it possible to change the temp directory cpinfo uses for generation?

Ran into a weird issue when generating a cpinfo file yesterday, it was failing due to limited amount of space in "/" root directory, although we were trying to generate it and store the output in /var/log/.

I'm assuming but couldn't find anything in the documentation that during the cpinfo file generation /tmp folder is used in the root directory and only the output gets stored in the specified output folder.

I was able to sort out the issue by clearing out some files in root, but was curious for future reference if it is possible to change the temp directory cpinfo uses for it's generation? 

0 Kudos
8 Replies
PhoneBoy
Admin
Admin

The output file (with full path) can be specified with the -o option to cpinfo.

0 Kudos
Lesley
Mentor Mentor
Mentor

Example: cpinfo -d -D -z -o /var/log/<NAME>.cpinfo

-------
If you like this post please give a thumbs up(kudo)! 🙂
0 Kudos
elbergfeldt
Explorer

Yeah, the problem is we did use the -o flag to place the cpinfo in /var/log/, yet got the error message that 
"partitionPath / is critically low"  

0 Kudos
PhoneBoy
Admin
Admin

That doesn't mean the root filesystem isn't used for some operations necessary to gather the output.
TAC might be able to suggest something here as I can't imagine you're the first person to encounter this issue.

0 Kudos
G_W_Albrecht
Legend Legend
Legend

As sk92739 says: The output file will be created in the current working directory

To which directory did you change before calling cpinfo ? Here the collection process starts.

CCSP - CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
elbergfeldt
Explorer

We tried it many ways, using -o flag from /home/ directory, changing to /var/log/ and still using -o flag, and just without any flags at all in /var/log/ - they all generated the same error 

0 Kudos
Elad_Chomsky
Employee
Employee

Hi @elbergfeldt ,

CPinfo for his operation as mentioned @PhoneBoy , is running specific commands to collect information from the machine, some function on the root FS. Unfortunately due to that as a limitation we must make sure to not fill the root partition as well, Please open a ticket to CheckPoint, and we will try to see if we can provide you a workaround to still do the collection. 

0 Kudos
the_rock
Legend
Legend

What I always do is this. If say /var/log has lots of space left, I do below:

cpinfo -o /var/log/cpinfofile.out

Thats it.

Andy

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events