home *** CD-ROM | disk | FTP | other *** search
/ ftp.jcu.edu.au / 2014.06.ftp.jcu.edu.au.tar / ftp.jcu.edu.au / v6.3.2b / SWBD63 / fabos-6.3.2b-10.ppc.rpm / fabos-6.3.2b.10.cpio.gz / fabos-6.3.2b.10.cpio / fabos / bin / netstat < prev    next >
Text File  |  2010-11-10  |  470b  |  26 lines

  1. #!/bin/sh
  2. #
  3. #    Copyright (c) 2007 Brocade Communications Systems, Inc.
  4. #    All rights reserved.
  5. #
  6. #    File name:    netstat                
  7. #    Module name: fabos/src/utils/sys
  8. #
  9. #    This script is wrapper to the traditional /bin/netstat command
  10. #    for enforcing the RBAC check on the CLI.
  11. #
  12. PATH=/fabos/libexec:/bin
  13.  
  14. # Check RBAC permission on command.
  15. /fabos/libexec/rbac_check `basename $0`
  16.  
  17. if [ $? -ne 0 ]; then
  18.     exit 127
  19. fi
  20.  
  21. if [ $# -eq 0 ]; then
  22.     /bin/netstat
  23. else
  24.     /bin/netstat $*
  25. fi
  26.