Retrieving Juniper core-dump files as non-root user

22 03 2010

Ok, so one of our customers SRXes has just core-dumped, but as a non-root user it seems you can’t do much with the core files.   You can do a ‘show system core-dump’ to see the files listed, but they are owned by root and have rw flags for the root user only.

The way to get around this is to archive the files.  The resulting archive will be read/write for the user that is currently logged in.

1. First, do a ‘show system core-dumps’ to see where the dumps are located.  It should produce something like this:

/var/crash/*core*: No such file or directory
/var/tmp/utmd.core-tarball.0.tgz: No such file or directory
/var/crash/kernel.*: No such file or directory
total 2

2. Find out what your home directory is using ‘file list’:

file list
/cf/var/home/user1/:
.ssh/

3. Archive the core dump:

file archive compress source /var/tmp/utmd.core-tarball.0.tgz destination /cf/var/home/user1/utm-core.tgz

Now you should be able to FTP the file off (logged in as user1) with no probs.

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: