HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

Trapping 'VFP' output

 
SOLVED
Go to solution
Michel PIGUEL
Occasional Advisor

Trapping 'VFP' output

Hello,

On a A or L server, is there any way to trap the LAN Console 'VFP' command output in a script ?

Thanks
8 REPLIES 8
Anu Mathew
Valued Contributor
Solution

Re: Trapping 'VFP' output

Hello Michel,

How about this way?

#! /bin/sh
script -a /tmp/vfp.log
(echo "telnet gsp-port;sleep 2;echo "username";sleep 2;echo "passwordincleartext";sleep 2;echo "^Ecf";sleep 2;echo "^B";sleep 2;echo "VFP";sleep 2;echo "Y";sleep TIME;echo "di";sleep 2;echo "y";sleep 2;echo "y")|sh

# Assuming.
^Ecf is Ctrl-E-C-F
^B is Ctrl-B
TIME is the time length you want to trap VFP to /tmp/vfp.log.

Hope this helps.

Thanks

Anu Mathew
Michel PIGUEL
Occasional Advisor

Re: Trapping 'VFP' output

Hi,

I've made some tests this morning and it works !
I've just commented the first line ("script ...") because I had to make a D to quit the command script. Now I've just to analyze the logfile generated to trap searched informations.

Thanks a lot for your help.

Michel
Frank Slootweg
Honored Contributor

Re: Trapping 'VFP' output

I see that you are a new user. Welcome!

Now that your question has been answered, please assign points. Please see http://us-support.external.hp.com/estaff/bin/doc.pl/screen=estaffAssistance?Page=file0002#forearn for details.

Thanks.

[Please 0 points (or "N/A") for *this* response.]
Michel PIGUEL
Occasional Advisor

Re: Trapping 'VFP' output

Hello ,

To complete my search, when anu writes 'gsp-port', is this the IPname of the LAN Console (what I have tested this morning and works fine) or is there a special port for the GSP which can be acceded directly without using a network link ?

Michel
Anu Mathew
Valued Contributor

Re: Trapping 'VFP' output

Hi Michel,

I meant by gsp-port the IP address of the LAN Console. You can also access the GSP from the internal port of the system itself.

From the GSP's help,

INTERNAL PORT HELP

The GSP internal port can be used to upgrade the GSP firmware from HP-UX
(XU command). It also comes in handy for enabling LAN access. The
internal port needs to be configured in HP-UX before it can be used. The
internal port is password protected and only allows GSP administrator
access. It is not mirrored.

Example of HP-UX setup:
1. On the system, the GSP internal port should be /dev/tty1p0.
2. SAM does not configure the GSP internal port.
3. If the device file is not present, it can be created by root as follows:
#cd/dev
#mknod tty1p0 c 1 0x010000
4. The internal port can be accessed via terminal emulators such as
cu, if configured properly:
cu -l /dev/tty1p0
5. To terminate the cu session, use "~." [return]
6. Kermit can also be used to access the special device file.


You may access the GSP log using the internal port, with a small shell script.

However in our case, we have a server whose sole purpose is monitoring, so it telnets to the IP addresses. This suits us better since we are using NO resource of the server to access its own GSP. (It matters ;> )

I forgot the script -a termination.

Thanks again,

Anu Mathew
Frank Slootweg
Honored Contributor

Re: Trapping 'VFP' output

My response has still "unassigned" in the points field.

Please always assign points to *all* responses, even if you only assign 0 points or label the points filed as "N/A". Do not leave responses "unassigned".

Why? Because only responses with points or N/A count for *your* "This member has assigned points to X of Y responses to his/her questions." score. If your score is low, i.e. X is much less than Y, then people are less likely to help you, because it looks like you are not willing to thank the respondents for their efforts.
Michel PIGUEL
Occasional Advisor

Re: Trapping 'VFP' output

Hi anu,

Now it works without a network link. Your extract explaining how to configure the GSP internal port was a great help for me but it was incomplete. I have to add the line:

Direct tty1p0 - 9600 direct

in /usr/lib/uucp/Devices, otherwise I had an error message "Connect failed: Requested device/system name not known"

Thanks for your quick help
Michel

PS: if your are interested by this script let me know
Pedro Simões
Occasional Contributor

Re: Trapping 'VFP' output

Hi,

Could you send me your script to connect to the GSP internal port?

thanks,
Pedro