TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:18910] netreport



Carl Wilhelm Soderstrom wrote:
> 
>         what exactly does the 'netreport' utility do; and what scripts
> use it?
>         I've been poking around at my servers, checking setuid and
> setgid files:
> ls -al `find / -perm +2000` > /tmp/sgid.lst;
> ls -al `find / -perm +4000` > /tmp/suid.lst
> 
>  and wondered exactly what this one is used for. (and what, if
> anything, should I do about it).
> 
> just being curious like any good admin. :)

quoth the manpage:

USERNETCTL(1)                                       USERNETCTL(1)

NAME
       netreport  -  request  notification  of  network interface
       changes

SYNOPSIS
       netreport [-r]

DESCRIPTION
       netreport tells the network management scripts to  send  a
       SIGIO  signal  to  the process which called netreport when
       any network interface status changes occur.

OPTIONS
       -r     Remove the current request (if any) for the calling
              process.

NOTES
       If  a  program  does not call netreport with the -r option
       before it exits, and another process is created  with  the
       same  PID  before any changes take place in interface sta­
       tus, it is possible that the new process  will  receive  a
       spurious SIGIO.


-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Make it idiot proof and 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   someone will make a  
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)  better idiot. 
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@tc.umn.edu ]