From 1cb9fecbb8710173615f7a29f7cc82d686d3bf3c Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 31 Mar 2011 16:59:54 +0000 Subject: [PATCH] Limit dump of /tftpboot and make a tftpboot.list git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatsnap | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatsnap b/xCAT-server/sbin/xcatsnap index 5ffc946a9..56fb0da62 100755 --- a/xCAT-server/sbin/xcatsnap +++ b/xCAT-server/sbin/xcatsnap @@ -171,6 +171,9 @@ sub snap_it { chop( $INSTALLDIR = `tabdump site | grep installdir | cut -f2 -d ,` ); $INSTALLDIR =~ s/"//g; + # make a list of all files in /tftpboot + # need to limit what we get due to size + `ls -lR /tftpboot > /tftpboot/tftpboot.list`; if ( $OSname eq "AIX" ) { @files_array = ( @@ -209,7 +212,8 @@ sub snap_it { @Commands_array = ( "uname -a","ifconfig -a","netstat -in","netstat -rn","env", "reventlog -a","lsmod","/sbin/lspci","lssrc -a","rpm -qa", - "ls -lR $installdir","ls -lR /tftpboot","ls -lR $xcatroot", + "ls -lR $installdir", + "find /tftpboot -size -32k","ls -lR $xcatroot", "arp -a","ps -edlf","ps -aux","ulimit -a","df -k","oslevel", "netstat -A","errpt -a","/usr/sbin/instfix -i", "/usr/sbin/lsnim -l","lssrc -l -s dhcpsd","lslpp -hac"); @@ -218,7 +222,8 @@ sub snap_it { @Commands_array = ( "uname -a","ifconfig -a","netstat -in","netstat -rn","env", "reventlog -a","lsmod","/sbin/lspci","lssrc -a","rpm -qa", - "ls $installdir","ls -lR /tftpboot","ls -lR $xcatroot", + "ls $installdir", + "find /tftpboot -size -32k","ls -lR $xcatroot", "arp -a","ps -edlf","ps -aux","ulimit -a","df -k", "cat /etc/issue"); } @@ -247,6 +252,7 @@ sub snap_it { `dumpxCATdb -p $output_dir`; print "xCAT database retrieved.\n"; } + `rm /tftpboot/tftpboot.list`; # remove temp list } ############################# Main Section ####################################