Web based prompt on HP ProCurve switch

Web based prompt on HP ProCurve switch

avatar

Hi David.
As you might have noticed, I use RDM alot ;)

So, my question is: Is there a way to have the prompt(see pic.) filled with predefined credentials(in some cases would be better with %USERDOMAIN%\%USERNAME%).
I believe this is a native Microsoft security prompt the HP switch is using!

If I cancel the login prompt and view html source for the page, this is the only thing I can see:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>


Any help would be great.
Thank you.
edited by UggaBugga on 6/3/2011

//Brandur

hp_ProCurve_Switch_2610-48-PWR.jpg

All Comments (8)

avatar

Hi,
There is one feature I added recently but not documented that should help but it will only works in external mode. This is the macro typing. It's in the event tab. So you could write something like this:

{Delay}$USER_NAME${Tab}$PASSWORD${Enter}

I'm planing to add another feature that might help for this problem. Can you try to change your url for something like this with the username and password:

http://username:password@yoururl.com

David Hervieux

avatar

Hehe, I had tried using the "http://username:password@yoururl.com" but it didn't work, because I made a spelling mistake ;)
When the string was entered correctly it worked. So far so good.
I sh**it you not, now I'm prompted with a Java popup for the same username and password. Is there any way to get this input made from RDM's side(if not automatically, then a button to press so it is auto-filled into the Java prompt)? :)

Thank you for your time David, as usual ;)

//Brandur

hp_ProCurve_Switch.jpg

avatar

Hi,
Sure I could add a button to execute the macro.

David Hervieux

avatar

Sorry for the late reply, had to work around the clock and then some... all inside RDM ;)

Back to subject:
That would be awesome David :)
As I don't have understanding how the macro function works, I'll just try asking.
Maybe the macro could be used in other circumstances. For example, when one opens a url to a Cisco firewall and chooses to run ADSM, it to emits a prompt(I believe this is java too). Could your macro be used in this example too? Then the macro function could be used by many RDM users and under many other devices witch omit java prompts for username/password. Taking it even further, if the macro could accept a pre-entered username/password or windows credentials(currently logged in user) or even the saved credentials from inside RDM. Just thinking out loud here...
Then the macro would have a even more universal usage for all RDM Enterprise users to enjoy.

Whatever you can come up with, I'll be happy.

Thanks a bunch and have great weekend ;)

//Brandur

avatar

Hi,
I added a button to execute the macro in embedded mode, I hope this will help. It will be in the next minor update.

David Hervieux

avatar

Sounds great, will test as soon as you make it available.

//Brandur

avatar

Is this implementet yet?
If it is, how do I use it

//Brandur

avatar

Hi,
Yes it's implemented and it's called Macro Typing. We use the Microsoft SendKey for that:

http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx

You can also use the {Delay} command to add a 300 ms delay
You will find in the Event tab page.

David Hervieux