Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/demo/dtrace/ipaddrsnoop.d
Real path: /usr/demo/dtrace/ipaddrsnoop.d
Zurück
#!/usr/sbin/dtrace -s /* * ipaddrsnoop - snoop IP address add/remove/state change. * Written using DTrace ip Provider. */ /* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * * This D script is used as an example in the Oracle Solaris 11.4 * Dynamic Tracing Guide in the "ip Provider" Chapter. * * On machines that have DTrace installed, this script is available as * ipaddrsnoop.d in /usr/demo/dtrace, a directory that contains all D scripts * used in the Solaris Dynamic Tracing Guide. A table of the scripts and their * corresponding chapters may be found here: * * file:///usr/demo/dtrace/index.html */ #pragma D option quiet #pragma D option switchrate=10hz dtrace:::BEGIN { printf("%-10s %-20s %-6s %-16s %-16s %-16s %-8s\n", "TIME", "EVENT", "IFNAME", "ADDRESS", "NETMASK", "BROADCAST", "FLAGS"); } ip:::address-add, ip:::address-delete, ip:::address-state-change { printf("%-10d %-20s %-6s %-16s %-16s %-16s 0x%-8x\n", timestamp/1000, probename, args[4]->ipaddr_ifname, args[4]->ipaddr_address, args[4]->ipaddr_netmask, args[4]->ipaddr_broadcast, args[4]->ipaddr_ifflags); }