mercoledì 26 agosto 2015

Cisco 6509 find the IP of a device connected to a known port

I know CISCO 6509 is an old device,  but as it happened to me to work on it today and I found no useful information in internet to solve my issue, maybe this post could help someone else

I connected a network device to a 6509 , port 4/8 and but then how to connect to it without the IP address? (ok I solved looking into the dhcp server, but then I found the cisco way)

1. show the MAC address connected to the port

sh cam dynamic | include 4/8

this was the result:

1     00-0a-b6-55-56-10             4/8 [ALL]

2. go to the Multilayer module (in my case is the module 15, use: sh module to check it)

session 15

3. display arp table filtering by the mac found at point 1 (pay attention, the format is different!)

sh arp | include 000e.b678.5620

the result:
Protocol Address Age Hardware address Type Interface
Internet          45        000a.b655.5610           ARPA   Vlan1

we just found the IP address of our device  ->

giovedì 13 agosto 2015

Windows 2012 You don't currently have permission to access this folder click continue to permanently get access to this folder

Hi guys,
do you like me installed a W2012 server and put in place a file server to then discover that as machine administrator you don't have the rights to open the folders on your local disk (the folders containing the user file of the file server) ?

The message that appears is:

  You don't currently have permission to access this folder click continue to permanently get access to this folder

the interesting point is that if you check the folder security settings you'll find that Administrators group have rights on it, and your user IS IN THAT GROUP, so why can't you open the folder?

Yes you can click continue and gain access... unfortunately this will change the security settings of that folder and every subfolder (inheritance) inserting explicitly your user with access right, this is not very nice as behavior, also if your folder has thousand of subfolders and files it will take a long time to apply the new settings everywhere

I googled alot, many topics talks about this and many are talking about disabling UAC and so on, but the only setting I saw working fine (and it was not so simple to find around) is this one:

Run regedit
go to here

if not already existing, create this

and set/change it to 0 (disabling LUA)
LUA stay for Limited User Account, and set it to 0 will disable it

this will require a reboot of the server to apply the setting
Once the server is rebooted it will not display that request anymore


mercoledì 10 dicembre 2014

VmWare Player disable beep

Did you try to install something like CentOS onto VmWare player and noticed that every time you are pressing a key in the wrong time you got a really annoying "beep" ? For example you start writing a file name and press TAB key to autocomplete it, but if no file is found you get a beep. I often work during the night on my pc and I really don't want to disturb everybody with all these beeps, so I want to disable it! Luckly I found this is very simple to obtain, you just need to: 1. turn off every VmWare Player virtual machine already running 2. go to "%programdata%\VMware\VMware Player" folder , on Windows7 %programdata% is "C:\ProgramData" so the full path is C:\ProgramData\VMware\VMware Player"" 3. edit (notepad) the file "config.ini" 4. find and change, or add, the line: mks.noBeep = "TRUE" 5. save the file and start the VmWare Player virtual machine, it should be silent now bye Digger

sabato 4 ottobre 2014

Windows 8.1 update doesn't appear in the store

I lost a lot of time trying to understand why on some windows 8 installation the 8.1 updtate didn't appear. There are multiple reasons why this could happen. But I find I nice and automatic way to detect what the issue is, there a tool from microsoft called "Windows 8.1 Update troubleshooter" that analyze the pc and tell you why it is not appearing. Here the link : Download it and run it, then follow the instructions, at the end it should say you WHY you don't see the update. Digger

giovedì 3 luglio 2014

ASUS Memo Pad 8 USB Drivers (Android development , ADB)

Hi all,
if you are trying to develop using a Windows pc connected to a ASUS Memo Pad 8 and like me have problems because ADB doesn't see the device (adb devices return empty list), try to go to device manager and check how many devices you see related to the tablet.
I had 2 :

1.KOOL (microsoft drivers)
2.Another one (I don't remember the name, could be KOOL again) with an exclamation point

The first (kool) it seems it doesn't matter, I had the driver running but ADB was not working.
The problem is the second one.

After many tries I discovered that the correct drivers are (incredibly) automatically loaded by windows online !
Exactly, right click, update software driver, search online and you are done.

I lost a lot of time because it was not working, simply because my Windows update service was disabled :(
Once enabled I solved the issue.

In case the online update is not working for you, I copied the driver folder downloaded by windows for you, please take note it's for windows 7 64bits (maybe it also works for other 64bit W version, Vista and 8 but I dind't tested so at your own risk)

Uncompress it somewhere, then go in device manager, right click on the device with the exclamation point, update drivers, search the driver in the computer, browse to the folder where you uncompressed the file and you should be ok

sabato 10 maggio 2014

Windows 2012 CORE add minimal GUI (management interface)

Hi all,
Windows 2012 permits us to switch between GUI and CORE version of the operating system.
Core is good due to lower resource usage, GUI is good because you don't need to remember a lot of powershell commands to administer the server.

There is also another configuration in the middle, the minimal graphical interface, I mean , server manager for example, but without "explorer" and Internet Explorer...

So in this post we will se how to start from a W2012 CORE installation and add the minimal GUI.

1. insert the W2012 installation CD, let's say in the D: drive
2. check wich index to use from the install.wim file from the cdrom:

dism /get-wiminfo /wimfile:d:\sources\install.wim

this will return a list of w2012 images version available in the wim file, ordered by "index".
We need to find the gui versions (the one without the core label) :

In this case for example I can use the index=2, server standard

3. we need to mount the image from index 2 just found to local disk, let's say to a new folder called c:\mount

md c:\mount
dism /mount-wim /wimfile:d:\source\install.wim /index:2 /mountdir:c:\mount /readonly

4. now we have in c:\mount the windows 2012 installation files available, we can go on adding the gui


Install-WindowsFeature Server-Gui-Mgmt-Infra –Source c:\mountdir\windows\winsxs

in the end you'll be required to reboot the machine (you could add -restart to the command above if you are ok with an automatic restart )

After the reboot and the login what you'll find will be a command prompt and server manager automatically opened and ready to be used:

mercoledì 9 aprile 2014

Create Hotspot for Android devices from Windows 7

I tried to create an adhoc wireless lan on my W7 to be used by my Android device, but I discoverd it was not able to connect to it, while other W7 machine was able..

Searching in internet I discovered this is a known issue.

But there is another way of creating a wifi connection to be used as hotspot:

create the network:
netsh wlan set hostednetwork mode=allow ssid=forandroid key=12345678

this created a new network in the control panel where the device name is something like
Microsoft Virtual WiFi Miniport Adapter

remeber it in case you need to share for example connections or create bridge.

start it:
netsh wlan start hostednetwork

from now on you would be able to connect to the "forandroid" network using password "12345678".
Probably this connection will be good also for iPhone and other devices but I didn't test it.

From the next reboot the network should be still there, you would just need to start it with the last command

if you are not able to configure it, try this command to check if your network device support hosted network:
netsh wlan show drivers

in the results search for "hosted network supported : yes/no"
if you have a "no" probably you'll not be able to configure it