Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Cisco PGW 9.6.1 - Make free disk space on MGC Nodes.

login: mgcusr

Password: xxxxxxx

Then become root

is-pgw1% su -

Password: xxxxxxx

For disk usage:

# df -k

Filesystem            kbytes    used   avail capacity  Mounted on

/dev/dsk/c1t0d0s0    4133838 1939970 2152530    48%    /

/dev/dsk/c1t0d0s6    4133838  479572 3612928    12%    /usr

/proc                      0       0       0     0%    /proc

fd                         0       0       0     0%    /dev/fd

mnttab                     0       0       0     0%    /etc/mnttab

/dev/dsk/c1t0d0s5    4133838  909277 3183223    23%    /var

swap                 6321888      24 6321864     1%    /var/run

swap                 6321896      32 6321864     1%    /tmp

/dev/dsk/c1t0d0s4    54010527 37065856 16404566    70%    /opt

du –ks will show you which folder size is the most one under  /opt.
You will find out  measurement and alarm log files  cover disks capacity.

# cd /opt/CiscoMGC/var/spool/

# ls -l | wc -l

  762154

Too many files. You should bacup or erase them. I prefer to erase

# unalias rm

# rm meas_**

/usr/bin/rm: Arg list too long.

Opps.. An error occured. That is cause of  "rm" command not able to erase number of files more than 1500.
Here is the method:

# cd /opt/CiscoMGC/var/spool/

# find . -name "meas_200*" -exec rm {} \;

# find . -name "alm_200*" -exec rm {} \;

Version history
Revision #:
1 of 1
Last update:
‎11-09-2009 05:45 AM
Updated by:
 
Labels (1)
Everyone's tags (5)