Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Add flags to display specific interface attribute #11

Closed
robphoenix opened this issue Apr 13, 2017 · 0 comments · Fixed by #12
Closed

Add flags to display specific interface attribute #11

robphoenix opened this issue Apr 13, 2017 · 0 comments · Fixed by #12
Assignees

Comments

@robphoenix
Copy link
Owner

Once #5 is closed it would be good to add flags similar to ifdata to print out specific attributes, for instance just the IPv4 address or Subnet mask or IPv6 address.

$ trawl -pa w*
192.168.0.11
$ trawl -pn w*
255.255.255.0

The ifdata flags:

> ifdata                                                                                                                                      [2]
Usage: ifdata [options] iface
     -e   Reports interface existence via return code
     -p   Print out the whole config of iface
    -pe   Print out yes or no according to existence
    -pa   Print out the address
    -pn   Print netmask
    -pN   Print network address
    -pb   Print broadcast
    -pm   Print mtu
    -ph   Print out the hardware address
    -pf   Print flags
    -si   Print all statistics on input
   -sip   Print # of in packets
   -sib   Print # of in bytes
   -sie   Print # of in errors
   -sid   Print # of in drops
   -sif   Print # of in fifo overruns
   -sic   Print # of in compress
   -sim   Print # of in multicast
    -so   Print all statistics on output
   -sop   Print # of out packets
   -sob   Print # of out bytes
   -soe   Print # of out errors
   -sod   Print # of out drops
   -sof   Print # of out fifo overruns
   -sox   Print # of out collisions
   -soc   Print # of out carrier loss
   -som   Print # of out multicast
  -bips   Print # of incoming bytes per second
  -bops   Print # of outgoing bytes per second
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant