Jan
27
Posted by jbjorkman on January 27, 2011 under
Deprecated: preg_replace() [
function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in
/var/www/myfoto.se/jbits.se/blog/wp-includes/formatting.php on line
82
Cisco
ip route 1.1.1.1 255.255.255.255 192.168.0.2
ip route 2.2.2.2 255.255.255.255 192.168.0.3
track 101 rtr 1 reachability
track 102 rtr 2 reachability
interface vlan1
ip address 192.168.0.1 255.255.255.0
ip policy route-map failover
route-map failover permit 10
set ip next-hop verify-availability 192.168.107.2 10 track 101
set ip next-hop verify-availability 192.168.107.3 20 track 102
rtr 1
type echo protocol ipIcmpEcho 1.1.1.1
rtr schedule 1 life forever start-time now
rtr 2
type echo protocol ipIcmpEcho 2.2.2.2
rtr schedule 2 life forever start-time now
Jan
26
Posted by jbjorkman on January 26, 2011 under
Windows
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">
*[EventData[(Data[@Name="TargetUserName"])="uname"]]
</Select>
</Query>
</QueryList>
Jan
18
Posted by jbjorkman on January 18, 2011 under
Uncategorized
tcpdump -nn -v -s 1500 -c 1 ether[20:2] == 0x2000
Jan
15
Posted by jbjorkman on January 15, 2011 under
Powershell
This example will monitor state transitions for a specific service (Wireless Zero Configuration) and speak the result
Register-WmiEvent -Query "select * from __InstanceModificationEvent within 1 where targetinstance isa 'win32_service' and targetinstance.name = 'WZCSVC' and (targetinstance.state='Running' or targetinstance.state='Stopped')" -sourceIdentifier "WZCSVC Status" -action { $evt=$event.SourceEventArgs.newEvent.TargetInstance ; (new-object -com SAPI.SpVoice).Speak($evt.DisplayName + " " + $evt.State + " on computer " + $evt.Systemname,1)}