Netbrain
Home NetBrain Product One-Skill-at-a-Time Search Mark Forums Read
Go BackThe Net-BrainerNetBrain Product Login Script Syntax

Reply
 
Thread Tools Search this Thread Display Modes
Old 12-29-2015, 03:01 AM
cafnetmatt cafnetmatt is offline
 
Join Date: Jun 2014
Posts: 8
Default Login Script Syntax

I have a few HP v1910 switches. These are Comware switches that are normally web managed but the full CLI can be enabled via telnet/ssh.

I found the previous post and have setup a device a group for these. My question is about syntax for the custom prompts.

I've setup the login in the unpriveleged area. Where it gets interesting is enabling the full CLI.

This is the process:

1. You enter a command at the prompt.
2. You get a line similiar to this 'All commands can be displayed and executed. Continue? [Y/N]'
3. Enter a the password at the following prompt: 'Please input password:'

My questions:
1. When entering the prompts, does it have to be the entire line or just the end of the line?
2. I see that variables can be used in the prompt (i.e. $(hostname)). Can regex be used? For instance '*' or '^'?
3. This particular device prompt is <hostname>. What would the proper syntax to use hostname as a variable?

Thanks for any help.
Reply With Quote
Old 01-15-2016, 06:04 AM
NetBrainTAC NetBrainTAC is offline
Administrator
 
Join Date: Dec 2012
Posts: 524
Default Re: Login Script Syntax

Here is the answers for your Questions:
1) End of the line
2) Yes
3) ($(username)

Case#00034166
Reply With Quote
Reply

Bookmarks

Tags
Network Discovery

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

All times are GMT -4. The time now is 07:25 PM.
Powered by vBulletin
Copyright 2000-2010 Jelsoft Enterprises Limited.
Copyright 2009 NetBrain, Inc. All rights reserved.