2016年5月27日 星期五

cdp protocol emulator CDP - The Easy Tutorial - OpenManiak.com

https://sourceforge.net/projects/cdp4win/?source=directory

WinPcap: Packet.dll -- Packet Driver API



http://openmaniak.com/cdp.php

The Easy Tutorial - OpenManiak.com


If you like our tutorials, don't hesitate to support us and visit our sponsors!
Si vous aimez nos tutoriaux, n'hésitez pas à nous supporter et visiter nos sponsors!

 The CDP protocol:

The Cisco Discovery Protocol (CDP) is a proprietary layer 2 network protocol developed by Cisco Systems.
It runs on Cisco and some HP equipment devices.

It is useful for two reasons:
-

-
Getting information about the directly connected CDP devices such as the operating system version and IP address.
Checking that the OSI layer 2 connectivity is okay in case of IP (OSI layer 3) connectivity problems
The CDP announcements are sent to the multicast destination address 01-00-0c-cc-cc-cc.


 CDP on Linux:

Linux does not natively support the CDP protocol, so we have to use a tool called "cdp-tools" to activate it.

Enabling CDP on Linux systems can be interesting on routers like Quagga and Vyatta in a Cisco environment.

Download CDP-tools in the /root directory.
If you want to download "cdp-tools" directly from the Linux CLI, proceed as follows:
#wget http://gpl.internetconnection.net/files/cdp-tools.tar.gz
Extract "cdp-tools":
#tar -xvf cdp-tools.tar
This will create the "cdp-tools" directory.

Download and install the "build-essential" meta-package containing the tools to compile programs.
#apt-get install build-essential
Download and install libnet0-dev:
Libnet0 is a generic networking API that provides access to several protocols.
#apt-get install libnet0-dev
The libpcap library (in our example libpcap0.8-dev) is installed at the same time.

Compile "cdp-tools":
#make
cc -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -c -o cdp-listen.o cdp-listen.c
cc cdp-listen.o /usr/lib/libpcap.so -o cdp-listen
cc -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -c -o cdp-send.o cdp-send.c
cdp-send.c:70: warning: 'packed’ attribute ignored for field of type ‘unsigned char[6]'
cdp-send.c:71: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
cdp-send.c:74: warning: 'packed' attribute ignored for field of type 'u_int8_t'
cdp-send.c:75: warning: 'packed' attribute ignored for field of type 'u_int8_t'
cdp-send.c:77: warning: 'packed' attribute ignored for field of type 'u_int8_t'
cdp-send.c:78: warning: 'packed' attribute ignored for field of type 'u_int8_t[3]'
cc cdp-send.o /usr/lib/libnet.so -o cdp-send 


If everything goes as planned, you should have two new files called "cdp-send" and "cdp-listen" which are used to respectively send or receive traffic.


                       1. cdp-send            2. cdp-listen

/root/cdp-tools/cdp-send eth0
Cisco_device>show cdp neighbours
Capability Codes:R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device IDLocal IntrfceHoldtme
Capability
PlatformPort ID
ubuntuFas 1/0/5176
H
i686eth0
Cisco_device>show cdp neighbours details
Device ID: ubuntu
Entry address(es):
    IP address: 10.1.1.1
Platform: i686, Capabilities: Host
Interface: FastEthernet1/0/5, Port ID (outgoing port): eth0
Holdtime : 120 sec

Version :
Linux 2.6.22-10-generic

advertisement version: 2
Management address(es):
#crontab -u root -e
@reboot /root/cdp-send eth0

2016年5月24日 星期二

How do I unjoin and rejoin a domain without reseting user profile?

OverDrive Nov 12, 2014 at 1:16 AM
Reset computer account in AD. Remove computer from domain in computer properties and put it to a workgroup. DO NOT REBOOT. Re add the computer to the domain and reboot.

2016年5月16日 星期一

kindle authentication failure --In the search box, type %LOCALAPPDATA%\Amazon\SendToKindle

). Uninstall the Send to Kindle application using C:\Program Files (x86)\Amazon\SendToKindle\uninstall.exe

2) . Click on the start button 

3). In the search box, type %LOCALAPPDATA%\Amazon\SendToKindle

4). Hit enter 

5). Explorer window should open with the folder containing stk.log and stk.db files.

6). Delete stk.db file. 

7). Re-install the Send to Kindle application and try to register (Go to http://www.amazon.com/sendtokindle to download Send to Kindle application).


http://www.amazon.com/gp/help/customer/forums/kindleqna/ref=kindle_help_forum_tft_tp?ie=UTF8&cdForum=Fx1GLDPZMNR1X53&cdThread=Tx211OGI52VOU9N

2016年5月5日 星期四

Port Conflicts between PRTG Network Monitor and VMware vCenter



Solution #2: Registry Hack

If solution #1 is not possible in your case, you can add a registry entry that disables port 80 redirection for PRTG.
Important: Please make proper backup before editing the registry!
In the registry editor, go to
32bit: HKLM\Software\Paessler\PRTG Network Monitor\Server\Webserver
64bit: HKLM\Software\Wow6432Node\Paessler\PRTG Network Monitor\Server\Webserver
Note: For the deprecated PRTG versions 7 and 8, you might see the values in the additional sub-keyV7 or V8.
There, create a new DWORD value with the name
NoSSLRedirect
Set this value to 1 to disable port 80 redirection. Set it to 0 to enable port 80 redirection again.




Good morning, I found an easier way to do this under Windows Server 2008 R2 by using AH’s method 1.
Go to Registry, under Services, then for those two PRTG services, simply add vpxd vctomcat to DependOnService.
So the next time I restart the server, PRTG will always run after vpxd and vctomcat loaded.
Finally please make sure the service for both PRTG is set to “Delayed Start” as well as for both vpxd vctomcat services.
Hope this helps.




Which ports does PRTG use on my system?


Required ports for VMware vCenter Server 5.5 (2051575)


2016年5月4日 星期三

Creating Hot Spares

http://driveragent.com/c/archive/6230c6cb/image/13-2-966/LSI-Logic-Embedded-MegaRAID

Creating Hot Spares

Hot spares are disk drives that are available to automatically replace failed drives in a virtual disk. There are two kinds of hot spares: 1) dedicated hot spares, which are available one or more specified arrays, and 2) global hot spares, which are available to any array defined on the controller.
To create a global hot spare, follow these steps:

  1. In the left panel of the MegaRAID Storage Manager window, click the icon for any disk drive that is not already part of an array.
  2. Click the Operations tab in the right-hand panel and select Make Global Hotspare.
  3. Select With Affinity (if a disk in the enclosure fails, this hotspare will have the first priority to replace it) or No Affinity (the hotspare will not have a special priority to replace failed disks in this enclosure).